my custom perks dont work immediately

broken avatar :(
Created 55 days ago
by PositiveGamerz
0 Members and 1 Guest are viewing this topic.
115 views
broken avatar :(
×
broken avatar :(
Location: usNotil
Date Registered: 1 January 2020
Last active: 33 days ago
Posts
12
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
PositiveGamerz's Contact & Social Links
So i'm pretty new to waw scripting/map making and i have watched some videos that show me how to make custom perks so i have added stamina and deadshot but they
dont activate immediately like if i buy it nothing happens unless i buy another perk (not sure if that made any sense) please help, thank you! (also if i dont reply quickly sorry)

this is my little script for stamina

    if( self hasperk("specialty_longersprint"))    {        self setMoveSpeedScale( 1.07 );        self SetClientDVar("perk_sprintMultiplier", "2");    }    else    {        self setMoveSpeedScale( 1 );        self SetClientDVar("perk_sprintMultiplier", "1");    }
Marked as best answer by PositiveGamerz on Today at 01:00:11 am
broken avatar :(
×
broken avatar :(
Location: nl
Date Registered: 20 September 2013
Last active: 10 hours ago
Posts
390
Respect
Forum Rank
Perk Hacker
Primary Group
Community Scripter
×
gympie6's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
gympie6's Contact & Social LinksDistenc5TeffrieTeffrie
So i'm pretty new to waw scripting/map making and i have watched some videos that show me how to make custom perks so i have added stamina and deadshot but they
dont activate immediately like if i buy it nothing happens unless i buy another perk (not sure if that made any sense) please help, thank you! (also if i dont reply quickly sorry)

this is my little script for stamina

    if( self hasperk("specialty_longersprint"))    {        self setMoveSpeedScale( 1.07 );        self SetClientDVar("perk_sprintMultiplier", "2");    }    else    {        self setMoveSpeedScale( 1 );        self SetClientDVar("perk_sprintMultiplier", "1");    }
I think you forget to set the perk but why paying so much time if the bo perks are already released:
https://www.ugx-mods.com/forum/scripts/55/map-add-on-4-black-ops-perks-update-available/2630/
broken avatar :(
×
broken avatar :(
Location: usNotil
Date Registered: 1 January 2020
Last active: 33 days ago
Posts
12
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
PositiveGamerz's Contact & Social Links
Sorry it took a bit to reply but i wanted to set myself with a challenge and see if i can set up some perks myself (or ask ppl for help)
broken avatar :(
×
broken avatar :(
Location: usNotil
Date Registered: 1 January 2020
Last active: 33 days ago
Posts
12
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
PositiveGamerz's Contact & Social Links
I think you forget to set the perk but why paying so much time if the bo perks are already released:
https://www.ugx-mods.com/forum/scripts/55/map-add-on-4-black-ops-perks-update-available/2630/
 THANK YOU SO MUCH I HAVE BEEN STUCK ON THIS FOR DAYS :)

 

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
Loading ...