Left 4 Dead 2

Left 4 Dead 2

60 ratings
Custom Scripted Weapon Example
   
Award
Favorite
Favorited
Unfavorite
Game Content: Weapons
File Size
Posted
Updated
199.303 KB
5 Mar, 2016 @ 1:10pm
5 Mar, 2016 @ 1:22pm
2 Change Notes ( view )

Subscribe to download
Custom Scripted Weapon Example

Description
A simple template and example for a custom scripted weapon. A staff that shoots exploding fireballs.

Note: this is not designed for gameplay, only as an example for mod authors.

The script code is licensed with the MIT license. Have fun.

See the guide here:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=634628292
10 Comments
Roshiro 17 Jan, 2018 @ 11:54am 
Thanks! You're awesome!
Rectus  [author] 30 Jun, 2017 @ 1:05am 
Nope. You would need to change the game code for that.
Gonk 29 Jun, 2017 @ 8:55pm 
Is there a simple solution to adding an additional regular gun to the game so that it can spawn regularly without replacing another weapon? I'm not quite sure how to do it, but I figure people here might help.
Rectus  [author] 27 Mar, 2017 @ 2:28pm 
Sure. It won't work with my other weapons though.
Jimmy Bob 27 Mar, 2017 @ 2:17pm 
could we just use it for fun?
Pegasis-Vera (She/They) 14 Aug, 2016 @ 12:19am 
I will try this tool out and give you credit for the base code.
Ktreus 10 Aug, 2016 @ 12:19pm 
thanks bro
Coach473 7 Mar, 2016 @ 7:32pm 
If people start doing this, 2016 will be a good year
Rectus  [author] 5 Mar, 2016 @ 3:48pm 
Yeah a lot of the fetures are L4D2 only. You probably could track weapons in all games with VScript, but making new weapons, finding out when players fire the weapon and spawning entities wouldn't work.
Mad Filter 5 Mar, 2016 @ 3:06pm 
WoW! Looks kinda complicated :S Does it only work for L4d2?