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

How do I add Stamina-Up to my map?

broken avatar :(
Created 7 years ago
by ItsLowrider5
0 Members and 1 Guest are viewing this topic.
2,312 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 28 January 2016
Last active: 3 years ago
Posts
25
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
ItsLowrider5's Groups
ItsLowrider5's Contact & Social LinksItsLowrider5ItsLowrider5ItsLowrider5
I have the sounds and model for the machine, and the perk bottle I could care less for and will probably reuse Double tap's, but how would I script Stamina-up into my map? I know there's a variable you can change in the console to give unlimited sprint, and Extreme Conditioning from MP, but idk how to script that so could someone lend some help? It would be very much appreciated and thank you in advance to anyone that helps.
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.
I have the sounds and model for the machine, and the perk bottle I could care less for and will probably reuse Double tap's, but how would I script Stamina-up into my map? I know there's a variable you can change in the console to give unlimited sprint, and Extreme Conditioning from MP, but idk how to script that so could someone lend some help? It would be very much appreciated and thank you in advance to anyone that helps.

id recommend harrys perks, or even jai's ones, but if you want your own heres my script for it, pretty sure it wasnt mine originally but no idea where it came from (probably a script placer)

Code Snippet
Plaintext

staminup()
{
players = GetPlayers();
while(1)
{
for(i=0;i<players.size;i++)
{
if(players[i] hasperk("specialty_longersprint"))
{
players[i] setmovespeedscale(1.07);
players[i] SetClientDVar("perk_sprintMultiplier", "2");
}
else
{
players[i] setmovespeedscale(1);
players[i] SetClientDVar("perk_sprintMultiplier", "1");
}
}
wait(0.1);
}
}

this doubles sprint distance and 7% speed boost (stats of bo1 staminup, not sure if bo2-3 uses the same)
broken avatar :(
×
broken avatar :(
Location: br
Date Registered: 7 May 2015
Last active: 1 month ago
Posts
312
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Signature
×
EmpGeneral's Groups
EmpGeneral's Contact & Social LinksldraweEletricStorm
May I suggest you to use Harry's perks or the Sniperbolt's prefabs(that include staminup,deadshot and PHD Flopper).But you can use  death_reaper() script of course if you want

Double Post Merge: November 17, 2016, 12:23:48 am
May I suggest you to use Harry's perks or the bamskater's prefabs(that include staminup,deadshot and PHD Flopper).But you can use  death_reaper() script of course if you want
Last Edit: November 17, 2016, 12:23:48 am by EmpGeneral
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 28 January 2016
Last active: 3 years ago
Posts
25
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
ItsLowrider5's Groups
ItsLowrider5's Contact & Social LinksItsLowrider5ItsLowrider5ItsLowrider5
id recommend harrys perks, or even jai's ones, but if you want your own heres my script for it, pretty sure it wasnt mine originally but no idea where it came from (probably a script placer)

Code Snippet
Plaintext

staminup()
{
players = GetPlayers();
while(1)
{
for(i=0;i<players.size;i++)
{
if(players[i] hasperk("specialty_longersprint"))
{
players[i] setmovespeedscale(1.07);
players[i] SetClientDVar("perk_sprintMultiplier", "2");
}
else
{
players[i] setmovespeedscale(1);
players[i] SetClientDVar("perk_sprintMultiplier", "1");
}
}
wait(0.1);
}
}

this doubles sprint distance and 7% speed boost (stats of bo1 staminup, not sure if bo2-3 uses the same)
what file does this go into
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
×
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.
what file does this go into
it'll work anywhere, i'd recommend _zombiemode_perks since that'll have all the other perk scripts in it, just make sure its called somewhere first

 
Loading ...