Hi there! I am relatively new to modding and me and my friends are trying to make a zombie map for World at War and its going great so far! Hopefully to be released at the end of this week! But, there is one thing holding us back and it is a perk idea that we wanted, I was wondering if someone could help me out in the scripting of a perk that would increase the time of bleedout in zombies, now I would take care of the models and name and etc. I just need help with the scripting portion of it, thank you very much!
extra_bleedout_perk() { while(1) { if(self hasperk("perk_specialty"))// <- change that { while(!( self maps\_laststand::player_is_in_laststand() )) { wait .1; } wait .3;//be sure anything else modifying it happens first self.bleedout_time += 30; //change 30 to extra second you wish to use } wait .1; } }
call
Code Snippet
Plaintext
level thread extra_bleedout_init();
from the main/init of the script your using this in (best to be _zombiemode_perks.gsc) and change the specialty to the one your perk is using
extra_bleedout_perk() { while(1) { if(self hasperk("perk_specialty"))// <- change that { while(!( self maps\_laststand::player_is_in_laststand() )) { wait .1; } wait .3;//be sure anything else modifying it happens first self.bleedout_time += 30; //change 30 to extra second you wish to use } wait .1; } }
call
Code Snippet
Plaintext
level thread extra_bleedout_init();
from the main/init of the script your using this in (best to be _zombiemode_perks.gsc) and change the specialty to the one your perk is using