GoldenEye: Source Forums

Editing and Customization => Modding Help => Topic started by: Joe on May 16, 2013, 04:47:55 pm

Title: Maps where players can fall into inaccessible areas?
Post by: Joe on May 16, 2013, 04:47:55 pm
Hi,

I want to make DAD mode's (http://forums.geshl2.com/index.php/topic,7378.0.html) resurrection entities appear at player death locations, except when players die by falling into inaccessible map areas, when this happens a RE will be appear at a player spawn point instead.

I will make this mode detect when players have fallen into inaccessible areas by giving it a list of "fall vectors", when players fall into inaccessible areas they will fall beneath these vectors. This list will be implemented as a dictionary, linking a map name to one or more "fall vectors".

If you can think of a way of detecting this without using a "fall vector" list, which would need to be updated when new maps (with inaccessible areas player can fall into) are made, then please let me know.

Maps where players can fall into inaccessible areas:
Title: Re: Maps where players can fall into inaccessible areas?
Post by: Rick Astley on May 17, 2013, 05:08:47 am
The Old Aztec map- you can jump off the bridge into the abyss and well die there
Title: Re: Maps where players can fall into inaccessible areas?
Post by: major on May 17, 2013, 05:32:24 am
Complex as well.
Title: Re: Maps where players can fall into inaccessible areas?
Post by: kraid on May 17, 2013, 03:29:53 pm
If this mode were an official one, i'd say there could be a brush entity that occludes certain areas from spawning resurection entities, so it would be up to the mappers to prevent these bugs and you wouldn't have to edit the mode everytime a new map is made.
Also we cannot (or rather we don't want to) control the usage of custom maps with GES.

BTT: caves has also a decent that would cause trouble with your mode.

Maybe another solution:

in most cases you die mid air with a trigger hurt.
If it's possible to detect this circumstance, maybe you could spawn the resurrection entity right there where the player touched solid ground last time before he died.

So the only thing needed would be a trigger hurt (which is an allready existing brush entity) added to the decents of every map official and custom.

Maybe you should also considder to do the same thing for players that died from fall demage.

Now if your spawn script also looks for the nearest spawn entity to the death location, it would be just a matter of adding a few additional spawn points in some maps, if the next spawn is to far away from the decent.
Title: Re: Maps where players can fall into inaccessible areas?
Post by: Joe on May 21, 2013, 12:56:42 pm
Thanks for your help guys.

Having read Kraid’s helpful suggestions, I’ve decided that I won’t make this mode use a “fall vector” list to detect when players have fallen into inaccessible areas.

Instead I will prevent REs from spawning in inaccessible areas by making this mode respond to mid-air hurt trigger kills and by making it spawn REs at player spawn points when players fall to their death.

Quote from: kraid
Now if your spawn script also looks for the nearest spawn entity to the death location...
In GE:S 4.2.3 I think it will be possible for scripts to move capture areas from spawn points to anywhere, so this is how I intend to make REs appear at player death locations.

Quote from: kraid
...maybe you could spawn the resurrection entity right there where the player touched solid ground last time before he died.
...
Maybe you should also consider to do the same thing for players that died from fall damage.
To make a RE spawn on the ground where a player was before falling to their death, I think I would need to make this mode’s script track the movement of players. This would require a server to do a lot of work in order to respond to the rare event of a player falling into an inaccessible area. So I think REs should just be spawned at player spawn points when players fall to their death.

I would ideally like REs to always spawn at player death locations (or the ground beneath them when they are killed in mid-air) when players die in accessible areas.

However, if REs always appear at player spawn points when players fall to their death, even in accessible areas, there would be no need for map makers to use the hurt trigger brush to prevent this mode’s REs from spawning in inaccessible areas. So I think this compromise would be worth making to ensure that REs never spawn in inaccessible areas.