UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: BuIlDaLiBlE on August 27, 2016, 12:21:34 pm

Title: Teleporting zombies to a different area of map
Post by: BuIlDaLiBlE on August 27, 2016, 12:21:34 pm
So basically I need a teleporters like in "Five". I know how to make zombies teleport, but what if they are just standing and don't know where to go? How would I make them go to the location of the teleport?
Title: Re: Teleporting zombies to a different area of map
Post by: shinged on August 27, 2016, 12:42:27 pm
This might be what you're looking for https://ugx-mods.com/forum/index.php/topic,2928.15.html (https://ugx-mods.com/forum/index.php/topic,2928.15.html)
Title: Re: Teleporting zombies to a different area of map
Post by: thezombieproject on August 27, 2016, 04:13:01 pm
I made this with respawn a few months ago. I didnt test it that much but i shared the scripts with a few mappers and everyone said it works great.
PM me if you still need this
Title: Re: Teleporting zombies to a different area of map
Post by: BuIlDaLiBlE on August 28, 2016, 10:23:06 am
I made this with respawn a few months ago
Nah, I don't need them to respawn. I need them to go to specific location when, say, player inside trigger_multiple. I know how to make everything work except make zombies go where needed.
create_zombie_point_of_interest() function seems rather glitchy.
Title: Re: Teleporting zombies to a different area of map
Post by: MakeCents on August 28, 2016, 03:47:25 pm
Nah, I don't need them to respawn. I need them to go to specific location when, say, player inside trigger_multiple. I know how to make everything work except make zombies go where needed.
create_zombie_point_of_interest() function seems rather glitchy.

Just create a point of interest at the triggers origin. Set the radius less than the distance you are teleporting them too. If they get inside the distance it will mess them up without a path to it. Then when they trigger the trigger, teleport them.
Title: Re: Teleporting zombies to a different area of map
Post by: BuIlDaLiBlE on August 28, 2016, 06:03:17 pm
Just create a point of interest at the triggers origin. Set the radius less than the distance you are teleporting them too. If they get inside the distance it will mess them up without a path to it. Then when they trigger the trigger, teleport them.
But the effect will be permanent? No way to make them path to players again?
Title: Re: Teleporting zombies to a different area of map
Post by: MakeCents on August 28, 2016, 06:05:57 pm
But the effect will be permanent? No way to make them path to players again?

Nah, if they are out side the radius it's fine. You may have to set up the zombie again. Like setting run cycle and stuff, done in spawner

Double Post Merge: August 28, 2016, 06:43:51 pm
I'll grab what I used in orbit later tonight if you want.


I had this in the zombie teleport function I was using, that was thread after the trigger was triggered and it checked if it were a zombie or a player. I used another function for the player.
Code Snippet
Plaintext
	dest = getstruct(self.target,"targetname");//target of the trigger multiple, self
zombie forceTeleport( dest.origin, dest.angles );
while(distance(zombie.origin,dest.origin)>10){
wait(.01);
}
wait(.5);
zombie.ignoreall = false;
zombie thread maps\_zombiemode_spawner::set_zombie_run_cycle();