UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: PositiveGamerz on February 13, 2020, 09:38:21 pm

Title: my custom perks dont work immediately
Post by: PositiveGamerz on February 13, 2020, 09:38:21 pm
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");    }
Title: Re: my custom perks dont work immediately
Post by: gympie6 on February 16, 2020, 12:41:33 pm
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/ (https://www.ugx-mods.com/forum/scripts/55/map-add-on-4-black-ops-perks-update-available/2630/)
Title: Re: my custom perks dont work immediately
Post by: PositiveGamerz on February 16, 2020, 11:07:34 pm
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)
Title: Re: my custom perks dont work immediately
Post by: PositiveGamerz on February 17, 2020, 01:00:00 am
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/ (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 :)