Map Deploy Points and their configuration - Subject9x/battleMETAL GitHub Wiki
info_player_start was old-hat.
battleMETAL adjusts the game-flow of how Quake lets the player spawn onto any given map slightly. Rather than converting info_player_start
expectations, I've added a layer on top to handle player spawn locations - the map_deploy_point
entity.
note if no deploy points have been defined in the .map
then the code will have the player spawn at the first info_player_start
that it finds. This can be useful for initial map testing and blockout walkthroughs.
Choose your point.
To get a map_deploy_point
to work correctly, the following fields must be filled out:
faction
- required faction ID can be 1, 2, or 3 or 255 for 'ALL'. in Team Deathmatch games, the non-255 value takes priority.angle
- recommended the player will face this direction when they spawn onto this deploy point.spawnflags
- optional you can filter this entity bygamemode
type, removing it if the entity is not supposed to be available in a game mode.isActive
- optional a value of0
will hide this point from the faction-matched players, and they cannot spawn to it.targetname
- optional if you have the deploy point start isisActive == FALSE
, this is the way to activate it (isActive becomestrue
).
Once you have configured these fields, make sure the position of the entity is good:
- The bounding-box size of the entity is a little larger than the Monitor mech size, this helps you understand where a player can fit when spawning to the deploy point.
- Players will be centered on the
origin
of the spawn point initially, and drop to the ground after their powerup sequence. - recommend you make sure the bottom of the deploy point is always clear-and-above any terrain/floor.
- another consideration: be careful not to place points too close to each other, the 2D map-draw system isn't very precise. Spawn points that are too close together will be hard for the player to see and understand.
That about sums it up, if you've mumbled the right spells, your map should have functioning deploy points for players to start the map on.