Skip to content

VScript that locks doors and buttons when the Tank has spawned so players can't bypass the Tank

License

Notifications You must be signed in to change notification settings

justin-chellah/entity-lock-until-tank-is-dead

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

[L4D2] Entity Lock Until Tank Is Dead

This is a VScript that locks doors and buttons in Versus when the Tank has spawned and unlocks them after the Tank has been killed (or removed from the game). It was intended for scripted Director events so that survivors couldn't bypass them before the Tank was gone.

Installation

  • Drag and drop the scripts folder in your left4dead2 folder

Hammer Editor Example

Screenshot_1

Stripper: Source Example

If you're running a SourceMod server, you'll need to download Stripper: Source.

The following code will prevent survivors from using the generator to start the finale on Crash Course (c9m2_lots.cfg) when the Tank spawns:

modify:
{
	match:
	{
		"targetname" "finaleswitch_initial"
	}

	insert:
	{
		"vscripts" "entity_lock_until_tank_is_dead"
	}
}

Docs

About

VScript that locks doors and buttons when the Tank has spawned so players can't bypass the Tank

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published