Skip to content

Allows developers to specify spawn direction for tanks separately from other Special Infected through the AI Director

License

Notifications You must be signed in to change notification settings

justin-chellah/preferred-tank-spawn-direction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[L4D/2] Preferred Tank Spawn Direction

This is a SourceMod Plugin that allows developers to specify the tank spawn direction separately from other Special Infected through the AI Director. For example, this can be very handy if you need to have Special Infected spawn close and the Tank far away.

CVar

  • director_preferred_tank_direction (set to -1 by default)
    • This is the default value. If you're specifying it through a Director VScript, it'll be overriden

You can use the values from the MobLocationType enum to change where a Tank should spawn:

enum MobLocationType
{
	SPAWN_NO_PREFERENCE = -1,
	SPAWN_ANYWHERE,
	SPAWN_BEHIND_SURVIVORS,
	SPAWN_NEAR_IT_VICTIM,
	SPAWN_SPECIALS_IN_FRONT_OF_SURVIVORS,
	SPAWN_SPECIALS_ANYWHERE,
	SPAWN_FAR_AWAY_FROM_SURVIVORS,
	SPAWN_ABOVE_SURVIVORS,
	SPAWN_IN_FRONT_OF_SURVIVORS,
	SPAWN_VERSUS_FINALE_DISTANCE,
	SPAWN_LARGE_VOLUME,
	SPAWN_NEAR_POSITION,
};

Example VScript Code

DirectorOptions <-
{
	PreferredTankDirection = SPAWN_BEHIND_SURVIVORS
}

Requirements

Docs

Supported Platforms

  • Windows
  • Linux

Supported Games

  • Left 4 Dead 2
  • Left 4 Dead (soon; requires gamedata)

About

Allows developers to specify spawn direction for tanks separately from other Special Infected through the AI Director

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published