For on-boarding
Video: [Source 1] Hammer Tutorial V2 Series #29 "Introduction to VScripting" Visual Studio Code Configuration Guide | Guides on setting up the VScript dev environment. The video is made for CSGO, but works for TF2 as well. |
CompilePal | Like any custom resources, vscript files will need to be packed into the map itself. |
TF2 VScript Examples |
For day-to-day work
A bunch of links I always keep open when doing VScript stuff.List of TF2 Script Functions TF2 Script Functions Constants List of TF2 console commands and variables | |
List of NetProps List of DataMaps | For VScript purposes, NetProps and DataMaps are entity variables accessible via NetProps methods. |
TF2-Specific Game Events Generic Source Events Generic Source Server Events | VScript has the capacity to listen to in-game events, such as a player spawning or dying, a flag being captured, uber being activated, etc |
List of Item Attributes List of Player Conditions List of Item IDs List of Taunt IDs | A lot of stuff can be done via applying the right condition (mark for death, uber-charge) or an attribute (extra firing speed, damage resistance, no ability to attack) to a player. Note: you can apply some item attributes directly to players via player.AddCustomAttribute(...) |
SoundScripts List of entities which get preserved between rounds |
Last edited: