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

Script restarts map in co op, but not solo

broken avatar :(
Created 10 years ago
by vinnyz500
0 Members and 1 Guest are viewing this topic.
1,386 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 1 January 2014
Last active: 5 years ago
Posts
397
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
Signature
×
vinnyz500's Groups
vinnyz500's Contact & Social LinksXxMrPotatoxXpsn_hackedlobbies4uvinnyz500

Code Snippet
Plaintext
TZP_TeleportDeathTrigger(){
TeleDeathTrigger = getEntArray( "enter", "targetname" );
array_thread( TeleDeathTrigger, ::TeleportToDeath );
}
TeleportToDeath()
{
while(1)
{
self waittill("trigger", player);
TeleDest = getent(self.target,"targetname");
player linkto(TeleDest);
wait(.3); player unlink(); wait(.2); // leave this wait - tzp
radiusdamage(player.origin, 20, player.health + 100, player.health + 100);
}
}

Why does this restart the map in co op, it uses a trigger_multiple and teleportes the player to a script_struct when they fall into the pit. It is supposed to just down the player

Would there be a way to modify this to just take away 1000 points if they fall into the pit and teleport them without downing them?
Thanks everyone
broken avatar :(
×
broken avatar :(
Location: usNUKETOWN
Date Registered: 19 February 2014
Last active: 9 years ago
Posts
177
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Zombie Specialist
Signature
×
thezombieproject's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
i made this back when i didnt know shit about scripting and posted it on zm.
 ill send you a fixed version soon if someone else doesnt fix it first
also back when i made this i think i was using script origin not script struct as dest position
Last Edit: June 12, 2016, 12:23:13 am by thezombieproject

 
Loading ...