
Posts
2,789
Respect
230Add +1
Forum Rank
King of the Zombies
Primary Group
Community Daedra
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!
power_switch_doubletap()
{
doubletap_trig = getent("power_switch_doubletap", "targetname");
doubletap_cost = 2000;
doubletap_trig sethintstring("Press & hold &&1 to turn Doubletap on [cost: 1000]");
while(1)
{
doubletap_trig waittill( "trigger", who );
{
if( is_player_valid( who ) )
{
if( who.score >= doubletap_cost )
{
// level notify("juggernog_on");
// level notify("sleight_on");
level notify("doubletap_on");
// level notify( "Pack_A_Punch_on" );
// level notify( "revive_on" );
level thread revive_switch_init();
doubletap_trig delete();
who maps\_zombiemode_score::minus_to_player_score( doubletap_cost );
}
}
}
}
}
doubletap_switch_init()
{
sub_switch_doubletap = getent("doubletap_lever","targetname");
sub_switch_doubletap notsolid();
sub_switch_doubletap rotateroll(-90,.3);
sub_switch_doubletap playsound("switch_flip");
playfx(level._effect["switch_sparks"] ,getstruct("doubletap_fx","targetname").origin);
}