Is there a way to trigger a match to end with a loss? Say I kill a friendly monster or press a button and I lose the game.
"~You have lost the match!"
I thought I saw that in a strange, over-the-top map with nali cows... I don't remember. Can anyone please help?
Even just telling me the name of a map like that is good enough if I can find it in a archive or .uz list or something.
LoseTheMatchTrigger?
Re: LoseTheMatchTrigger?
What a coincidence, I just played MH-LostSouls a couple of days ago, this map contains an actor called AdvancedMonsterEnd that finishes the map with a loss, now this actor only works in MonsterHunt but I think that with a few tweaks it could work on other gametypes.
Link to MH-LostSouls: https://unrealarchive.org/maps/unreal-t ... 63a43.html
Link to MH-LostSouls: https://unrealarchive.org/maps/unreal-t ... 63a43.html
Somewhere in Nevada...
Re: LoseTheMatchTrigger?
Depends from GameType. GameInfo.EndGame("some reason") is a answer. Possible need set some fields before that call.
But you need rely on code of exact GameType. There no general way for do this. All hardcoded.
But you need rely on code of exact GameType. There no general way for do this. All hardcoded.
- sektor2111
- Godlike
- Posts: 6410
- Joined: Sun May 09, 2010 6:15 pm
- Location: On the roof.
Re: LoseTheMatchTrigger?
A small piece of code can set game at "TimeRemaining" 1 second. In MonsterHunt this heads to a Timeout and a game lost - it's what <MH-LostSouls> is using and because it's already compiled these assets can be "copied" in another map suitable for similar conditions - Triggered.
Caves:
MonsterHunt types like MonsterHunt2v3 won't deliver a game lost here, just a normal Successful sudden Ending.
Caves:
MonsterHunt types like MonsterHunt2v3 won't deliver a game lost here, just a normal Successful sudden Ending.
Re: LoseTheMatchTrigger?
Why not just use a barred off area for the monster end, then have some frozen player or pawn walk into it upon orders or something (Nali Bunny ? lol),
Then via an external trigger-mover that says, "end this map" and trigger the bunny.
I never tried to trigger a map to end.
Well, I mean built-in while making a map. but not an existing map.
In Quake 1 we would always have these players rush to exit as soon as they could, pissin everyone off.
Then via an external trigger-mover that says, "end this map" and trigger the bunny.
I never tried to trigger a map to end.
Well, I mean built-in while making a map. but not an existing map.
In Quake 1 we would always have these players rush to exit as soon as they could, pissin everyone off.
Binary Space Partitioning
- sektor2111
- Godlike
- Posts: 6410
- Joined: Sun May 09, 2010 6:15 pm
- Location: On the roof.
Re: LoseTheMatchTrigger?
He mean to have a bad end, a normal end is not hard to trigger. See whatever version of MH-BoomBoomBridge.
Re: LoseTheMatchTrigger?
My brain is just not getting this, what is "LoseMatch" and why, what is the purpose compared to just ending the map. ?.
Binary Space Partitioning
- UnrealGGecko
- Godlike
- Posts: 2904
- Joined: Wed Feb 01, 2012 11:26 am
- Personal rank: GEx the Gecko
- Location: Kaunas, Lithuania
- Contact:
Re: LoseTheMatchTrigger?
Normal end means you actually completed the map (you won), this would trigger a loss.
I like it! Maybe wont have a big purpose, but it would be a nice twist
I like it! Maybe wont have a big purpose, but it would be a nice twist
My work for UT99: Counter-Strike VP, MaleOne+ (now updated), FemaleOne+ and the FemaleTwo220 voicepacks DM-XC-NaliTreeV2 (from the 2012 Xmas Contest mappack), DM/DOM-20AC-CastleGeorgeV3 (from the 20th Anniversary Contest mappack), DM-UFFO, DM-WreckingBall, (NEW!) CTFM-Sundial
my small spec of files at Google Drive
List of console converted maps, models & more!
- Peamole
- Average
- Posts: 76
- Joined: Tue Jan 05, 2021 5:12 pm
- Personal rank: Dinghy-O-Death Cap'n
- Location: Lost at Sea
Re: LoseTheMatchTrigger?
To Red_Fist and anyone else who's unsure: I was looking for an Actor that ends the map in a loss for the player/hunting party. I guess that it would get triggered by a Tag that corresponds with another Class' Event. Thus you would hear the Announcer play, "You have lost the match!"
Thanks, Aspide, I'll look into it.
Thanks, Aspide, I'll look into it.
Re: LoseTheMatchTrigger?
It's not an actor for this, but, there is a Nali that if you kill it, you lose points. I am not sure if it's some server package or SP maps, MH maps. I am pretty sure it's the same for MH.
So if there was a way to make it subtract a high value, then tie it to the team somehow or the one who kills it goes to -100 kills.
I have played maps that you don't want to kill the Nali's, I don't know if this is just stock Nali or some server settings for Nali's.
But then, there would have to be a way to use a trigger to kill the Nali and have it spawn so no one can see it, like a creature monster spawner, but only have the Nali spawn, Maybe have to change the code for those monster spawner mutators only to spawn your own "monster" but only one, new pawn edited Nali
I don't know, just thinking out loud.
So if there was a way to make it subtract a high value, then tie it to the team somehow or the one who kills it goes to -100 kills.
I have played maps that you don't want to kill the Nali's, I don't know if this is just stock Nali or some server settings for Nali's.
But then, there would have to be a way to use a trigger to kill the Nali and have it spawn so no one can see it, like a creature monster spawner, but only have the Nali spawn, Maybe have to change the code for those monster spawner mutators only to spawn your own "monster" but only one, new pawn edited Nali
I don't know, just thinking out loud.
Binary Space Partitioning
- Peamole
- Average
- Posts: 76
- Joined: Tue Jan 05, 2021 5:12 pm
- Personal rank: Dinghy-O-Death Cap'n
- Location: Lost at Sea
Re: LoseTheMatchTrigger?
No no. Aspide showed me exactly what I was looking for. I just needed to find and copy MyLevel.AdvancedMonsterEnd and make a trigger for it. Thanks, Aspide. MH-LostSouls is a funny map; I killed all the "1337 Mercs" and still managed to squeeze in a victory. Don't ask me how I did it... "You have lost the ma—You have won the match!"