if $h_LCA is 3 then the round is running.. if $h_LCA 0, then the round is over..
The script reports enemy down messages as long as the round is running.. afterround is not being counted nor reported anymore.
The enemydown message has a roundfrags counter
Code: Select all
// aprq2 specific commands //////////////////////////
set cl_maxfps 120 // i want the physics :)
set r_maxfps 120 // dont overdrive, keep smooth since...:
set gl_swapinterval 1 // have 120hz on my monitor
set s_ambient 0
set cl_async 0
set gl_celshading 1
bind f12 screenshotjpg
untrigger all
trigger "a_enterlevel" "#cl_enterlevel"
trigger "a_changelevel" "#cl_changelevel"
trigger "a_lights" "LIGHTS..."
trigger "a_camera" "CAMERA..."
trigger "a_action" "ACTION!"
trigger "a_roundend" "The round is over:"
set h_LCA 0
set h_roundfrags 0
// this minimizes abuse by other people randomly telling LIGHTS, CAMERA, ACTION.. whatever
alias a_lights "if $h_LCA == 0 inc h_LCA"
alias a_camera "if $h_LCA == 1 inc h_LCA"
alias a_action "if $h_LCA == 2 a_roundstart"
// if h_LCA is 3 then the round is running
alias a_roundstart "set h_LCA 3; set h_roundfrags 0"
alias a_roundend "set h_LCA 0"
alias a_enterlevel "h_mapstart"
alias a_changelevel "h_mapend"
alias t_1enemydown "if $h_LCA == 3 t_2enemydown"
alias t_2enemydown "inc h_roundfrags; t_enemydown" // routes to real killmessage
alias t_enemydown "radioteam enemyd; say_team :: (ˆ) erased $h_roundfrags (ˆ) (%K - $loc_there$)" // "enemy down"
// ssg killtriggers
trigger "t_1enemydown" "* scope thanks to $name$"
trigger "t_1enemydown" "* between the eyes from $name$"
trigger "t_1enemydown" "* picked off by $name$"
trigger "t_1enemydown" "* sniped in the stomach by $name$"
trigger "t_1enemydown" "* shot in the legs by $name$"
trigger "t_1enemydown" "* was sniped by $name$"
// knife killtriggers
trigger "t_1enemydown" "* throat slit by $name$"
trigger "t_1enemydown" "* surgery, compliments of $name$"
trigger "t_1enemydown" "* was gutted by $name$"
trigger "t_1enemydown" "* was stabbed repeatedly in the legs by $name$"
//kicks
trigger "t_1enemydown" "* ass kicked by $name$"
trigger "t_1enemydown" "* Bruce Lee put on it by $name$ *"
//punches
trigger "t_1enemydown" "* got a free facelift by $name$"
trigger "t_1enemydown" "* was knocked out by $name$"
//flyby :)
trigger "t_1enemydown" "* was taught how to fly by $name$"
// everything else.
trigger "t_1enemydown" "* underestimated $name$'s *"
trigger "t_1enemydown" "* accepts $name$'s *"
trigger "t_1enemydown" "* ate $name$'s *"
trigger "t_1enemydown" "* via $name$'s *"
trigger "t_1enemydown" "* after $name$'s *"
trigger "t_1enemydown" "* from $name$'s *"
trigger "t_1enemydown" "* of $name$'s *"
trigger "t_1enemydown" "* to $name$'s *"
trigger "t_1enemydown" "* by $name$'s *"
trigger "t_1enemydown" "* caught $name$'s *"
trigger "t_1enemydown" "* against $name$'s *"
trigger "t_1enemydown" "* remove $name$'s *"
trigger "t_1enemydown" "* ph34rs $name$ so much he *"
// useful hit-triggers:
// sniper
//trigger "t_hithim" "You hit * in the stomach"
//trigger "t_hithim" "You hit * in the legs"
trigger "t_hithim" "* you have AP rounds..."
//m4
//trigger "t_hithim" "You hit * in the legs"
//