Modify weapon order based on vote for 1,2,3 rounds
Posted: Sun Mar 25, 2012 1:54 am
I'd like to have a script that would allow me to modify the weapon order following a player vote to a custom weapon list for a few rounds..
Note: i'm using elimination and Turbo and this is the only way i can thing of getting the end result.
The end result is having 1, 2 or n rounds of knife only...except for nade level. To get around turbo giving someone an other weapon i can't just strip weapons and give everyone a knife as they will get the next weapon after they get a kill. Hence the idea of modifying the weapon order on the run....then setting it back to normal..the list could come from a second weapon file or from a config file...or even hardcoded would be fine...
I've looked at how this is managed internally in gungame and it's part of the core/weapons.. The weapon order seems to be stored in a dictionary item..but if i use the
set_weapon_order(name)
the actual script for that in the _init_.py includes a game restart command...which would not be what i want..
Nice little menu vote with ajustable rate of success and feeback who has voted what with a timeout..
Load existing weapon list into a variable...
Change the existing list as required..
Run this for a few rounds...
Reload existing list back into the weapon order when done..
If someone has anything close to this i'd love to see what you have and work from there..I've done some basic scripting in eventscript and am willing to contribute to this..just that what i'm seing is a little over
Note: i'm using elimination and Turbo and this is the only way i can thing of getting the end result.
The end result is having 1, 2 or n rounds of knife only...except for nade level. To get around turbo giving someone an other weapon i can't just strip weapons and give everyone a knife as they will get the next weapon after they get a kill. Hence the idea of modifying the weapon order on the run....then setting it back to normal..the list could come from a second weapon file or from a config file...or even hardcoded would be fine...
I've looked at how this is managed internally in gungame and it's part of the core/weapons.. The weapon order seems to be stored in a dictionary item..but if i use the
set_weapon_order(name)
the actual script for that in the _init_.py includes a game restart command...which would not be what i want..
Nice little menu vote with ajustable rate of success and feeback who has voted what with a timeout..
Load existing weapon list into a variable...
Change the existing list as required..
Run this for a few rounds...
Reload existing list back into the weapon order when done..
If someone has anything close to this i'd love to see what you have and work from there..I've done some basic scripting in eventscript and am willing to contribute to this..just that what i'm seing is a little over