UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

I need help making a perk, and its a simple one.

broken avatar :(
Created 7 years ago
by ecoin123
0 Members and 1 Guest are viewing this topic.
1,179 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 6 December 2016
Last active: 7 years ago
Posts
6
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
ecoin123's Groups
ecoin123's Contact & Social Links
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!
broken avatar :(
×
broken avatar :(
Location: aupotato
Date Registered: 27 September 2013
Last active: 3 years ago
Posts
588
Respect
Forum Rank
Zombie Enslaver
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
respect the dead

donates greatly appreciated :) paypal.me/F3ARxReaper666
discord server:
https://discord.gg/tsGHW99
×
death_reaper0's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Code Snippet
Plaintext

extra_bleedout_init()
{
flag_wait( "all_players_connected" );
players = Get_Players();
for(i=0;i<players.size;i++)
{
players[i] thread extra_bleedout_perk();
}
}

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
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 6 December 2016
Last active: 7 years ago
Posts
6
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
ecoin123's Groups
ecoin123's Contact & Social Links
Code Snippet
Plaintext

extra_bleedout_init()
{
flag_wait( "all_players_connected" );
players = Get_Players();
for(i=0;i<players.size;i++)
{
players[i] thread extra_bleedout_perk();
}
}

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

Thank you so much!

 
Loading ...