Left 4 Dead 2

Left 4 Dead 2

149 ratings
Turret System [Prefab]
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts, Miscellaneous
File Size
Posted
59.306 MB
1 Sep, 2015 @ 12:12pm
1 Change Note ( view )

Subscribe to download
Turret System [Prefab]

Description
Automated spawnable sentry turret system.

Note: This add-on is intended for mod authors to incorporate into other mods. It does not have any gameplay effect on its own. You will need to unpack the VPK to use it.

To play with the turrets, please see this Mutation:
Gnome Guardians

This is a VScript driven turret system. The turrets will automatically engage targets (infected only by default). The turrets are highly customizable, and feature a target priority system and an overheating system.

Includes the four turrets from the Gnome Guardians mutation and a demonstration map (turretsystem_demo).

The turrets can be added to custom maps and mutations or be spawned from scripts. Both .vmf instances and entity groups are included. Creative Commons licensed source files (Blender) for all original turret model parts are also included.

To add spawn points for the turrets for mutations, the Entity Placement Tool can be used.

Please see this guide on how to place the included turrets:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=514139097

Please do not hesitate to make a discussion thread if you have any questions.
44 Comments
华裔小A 21 Feb @ 9:41pm 
It would be nice if a turret that can automate the original M2/M134 could be developed.
Fares 16 Jul, 2023 @ 8:50am 
as you know friendly turret fire still can damage survivors and incapacitate them.

easy solution: ( no scripting needed ):

1 open the turret instance with hammer editor
2 edit the "point_hurt" properties, set the Radius to 1
and the Damage to 1. (that way the point_hurt will do no damage)
3 create a "trigger_hurt" and parent it to the point_hurt.
4 filter your trigger_hurt with "filter_activator_team"
and that's it
Rectus  [author] 17 May, 2023 @ 8:01am 
Somewhere inside the TrackTarget() function inside the checks for a valid target I guess. It's been years though, so can't remember how everything is set up. You would probably have to keep track of whether the sound is playing though, so it doesn't keep restarting.
Fares 17 May, 2023 @ 7:48am 
@Rectus i want the turret to play a sound when it move while tracking players, can you tell me where i can put the line "EmitSoundOn("Forklift.Move", self);"
Rectus  [author] 17 Jan, 2022 @ 12:44am 
Nope. This is just a prefab to make new mods with. Someone would have to make a mod that does that.
Male18 16 Jan, 2022 @ 9:23pm 
Any way to spawn this in campaign with admin system?
Rectus  [author] 27 Jul, 2021 @ 11:55am 
Sorry, I'm not planning on updating it. You would have to do any work yourself.
Fares 27 Jul, 2021 @ 11:25am 
i hope you will got time to update this Turret System and remove friendly fire, right now when i add it on my custom map it always incapacitate the survivals
Rectus  [author] 27 Jul, 2021 @ 11:17am 
Good point, it should be possible to use the same way as in there.
Fares 27 Jul, 2021 @ 11:13am 
didn't you make the Homemade Sentry Turret https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1742953520
damage only zombies, so isn't possible to make this one damage only zombies too?