Weapon scripting
Scripting quick reference
See Scripting basics , script objects and Finite State Machines
iddevnet has an article describing the Doom3 pistol script: https://iddevnet.dhewm3.org/doom3/script_weapon.html
This page is a Stub. You can help us by expanding it.