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

Zombie proximity game over trigger

broken avatar :(
Created 8 years ago
by sgtpeppercorn
0 Members and 1 Guest are viewing this topic.
3,162 views
broken avatar :(
×
broken avatar :(
Location: ca
Date Registered: 30 December 2014
Last active: 6 years ago
Posts
27
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
sgtpeppercorn's Groups
sgtpeppercorn's Contact & Social Links
I'm making a map that I feel would benefit from a feature where if a zombie wanders into a certain area of the map, it would trigger a game over. Could somebody help me out with this?
broken avatar :(
×
broken avatar :(
Location: nzChristchurch
Date Registered: 8 June 2014
Last active: 7 years ago
Posts
77
Respect
Forum Rank
Rotting Walker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Can I do this?
Signature
×
IDontEvenKnow's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.


Use that func, then figure out how to get all the zombies using something like:
broken avatar :(
×
broken avatar :(
Location: caCanada, Eh
Date Registered: 24 November 2016
Last active: 6 years ago
Posts
85
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
×
MegaMech43's Groups
MegaMech43's Contact & Social Linksmegamechmegamech.net
You can have a trigger that does 100 damage to all the players. I was about to say, I dunno how to trigger game over. But if all the players are dead it triggers game over anyway.

Here's code from my Gladiator Arena map that slowly kills any players who are touching a trigger_multiple.
You should be able to edit it to do what you want. I don't know how to listen for zombies touching the trigger instead of players but it should be possible. Maybe you can use the KVP from the spawner struct to get zombies.
Code Snippet
Plaintext
function damagebox() {
trigger = GetEnt("damagebox", "targetname");
trigger SetHintString("");
trigger SetCursorHint("HINT_NOICON");
while(1) {
wait(2);
players = getplayers();
for( i=0;i<players.size;i++ )
{
if(players[i] isTouching(trigger))
{
players[i] DoDamage(15,players[i].origin);
}
}
}
}
Last Edit: January 28, 2017, 12:49:21 am by MegaMech43
broken avatar :(
×
broken avatar :(
[UGX] Developer
Location: nlLimburg, Netherlands
Date Registered: 28 October 2013
Last active: 5 months ago
Posts
764
Respect
Forum Rank
The Decider
Primary Group
UGX Team Member
My Groups
More
My Contact & Social Links
More
Personal Quote
[UGX] Developer
×
Lukkie1998's Groups
UGX Team Member
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Box Mappers Elite
Box Mappers Elite
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
UGX Chat Moderator Has the ability to mute, kick, or ban chat members for being abusive or breaking the rules of the forum.
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
2015 Participant
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Please don't create more than one topic with the same question/information. You'll surely get answer with only one topic.
I'll merge the topics.

Lukkie1998
broken avatar :(
×
broken avatar :(
Location: scotland
Date Registered: 2 September 2013
Last active: 4 weeks ago
Posts
379
Respect
Forum Rank
Perk Hacker
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Ping998
Signature
"My maps might not be the best looking, or the most hyped, but I still release them in hopes that they can make others somewhat happy"

- Ping
×
Ping998's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Ping998's Contact & Social LinksZPing998Ping998Ping998CreepersAreAwesome
This is quite simple, create a trigger_multiple and add "end_game" as shown: (MAKE SURE AI_AXIS and NOTPLAYER are CHECKED AS WELL)

broken avatar :(
×
broken avatar :(
Location: ca
Date Registered: 30 December 2014
Last active: 6 years ago
Posts
27
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
sgtpeppercorn's Groups
sgtpeppercorn's Contact & Social Links
This is quite simple, create a trigger_multiple and add "end_game" as shown: (MAKE SURE AI_AXIS and NOTPLAYER are CHECKED AS WELL)

(Image removed from quote.)

Thanks for this, you made my week.

 
Loading ...