I created one two years ago, maybe this helps: Weapon is invisible cause it does not move with the camera and destroys the effect.
;Artificial Intelligence Script
;Created by Corno
;Header
desc = broken leg
;Triggers
:state=0,plrwithinzone=1:runkey=0,plrcamoffseton=1,state=1
:state=1,keypressed=17 1:hideplrweapon,state=2
:state=1,keypressed=30 1:hideplrweapon,state=2
:state=1,keypressed=31 1:hideplrweapon,state=2
:state=1,keypressed=32 1:hideplrweapon,state=2
;plr stand
;:state=1,keypressed=17 0,keypressed=30 0,keypressed=31 0,keypressed=32 0:showplrweapon
:state=2:etimerstart,state=3
:state=3,etimergreater=40:plrcamoffsety=0,etimerstart,state=4
:state=4,etimergreater=40:plrcamoffsety=-2,etimerstart,state=5
:state=5,etimergreater=40:plrcamoffsety=-4,etimerstart,state=6
:state=6,etimergreater=40:plrcamoffsety=-6,etimerstart,state=7
:state=7,etimergreater=40:plrcamoffsety=-8,etimerstart,state=8
:state=8,etimergreater=40:plrcamoffsety=-6,etimerstart,state=9
:state=9,etimergreater=40:plrcamoffsety=-4,etimerstart,state=10
:state=10,etimergreater=40:plrcamoffsety=-2,etimerstart,state=11
:state=11,etimergreater=40:plrcamoffsety=0,etimerstart,state=12
:state=12,etimergreater=200:state=1
;End of Script
Have fun.
PredicateC - FPSC to GameGuru FPE converter
https://forum.game-guru.com/thread/211068