Page 1 of 2
APRQ2 1.18 Trigger command
Posted: Wed Oct 05, 2005 8:39 pm
by Cnnlngs
hello.
i wrote this in my autoexec (just to try it out):
trigger "screenshot" "ACTION!"
but nothing happened
am i wrong? or the command doenst seems to work at all (like "event" in nocheat, when the sshot was taken before the text appeared on the screen)
thanks for your time
Posted: Wed Oct 05, 2005 11:34 pm
by Maniac-
Triggers doesnt work with centerprints yet.
Posted: Thu Oct 06, 2005 7:21 am
by Cnnlngs
oh so how does it work?
Posted: Thu Oct 06, 2005 8:48 am
by Maniac-
Just like you did, but 'ACTION!' is centerprint msg (msg that shows up at center of the screen), so at this point trigger only works with normal server text except chat.
Autorecord example:
trigger "record $date$_$time$_$mapname" "The round will begin in*"
trigger "stop" "Match is over, waiting for next map*"
Posted: Thu Oct 06, 2005 12:24 pm
by Cnnlngs
thanks a lot
Posted: Fri Oct 07, 2005 3:32 pm
by Cnnlngs
mh finally i wrote this:
trigger "screenshot" "* saw the sniper bullet go through its scope thanks to :@"
& the result was this:
is there a way, so teh sshot wouldn't be taken a few frames before the event happen? (so all the blood & gibs could be seen)
Posted: Fri Oct 07, 2005 5:26 pm
by imeiz
do trigger "wait X;screenshot" "* saw the sniper bullet go through its scope thanks to :@"
X = how many frames to wait. try out for a good period of time for the screenshot :)
Posted: Fri Oct 07, 2005 6:55 pm
by Stric
Simple, RTFM
Posted: Sat Oct 08, 2005 3:23 am
by Janner
maybe a dumb question, what is :@ ? Just like it says or does it mean something like %L
Posted: Sat Oct 08, 2005 7:44 am
by maGro
hu, this is rally nice. So i can embed a trigger for a demo to make a screnshot at a special frame. Reaaally nice.
Posted: Sat Oct 08, 2005 8:25 am
by fuct
Janner wrote:maybe a dumb question, what is :@ ? Just like it says or does it mean something like %L
i have no knowlege of this whatsoever but in the context it is used i would say that :@ is the player who fired the shot.....possibly %me ?
if it wasnt like %me then anyone who hit someone in the head would trigger you to take a screenshot...right or wrong?
Posted: Sun Oct 09, 2005 5:23 am
by imeiz
fuct wrote:Janner wrote:maybe a dumb question, what is :@ ? Just like it says or does it mean something like %L
i have no knowlege of this whatsoever but in the context it is used i would say that :@ is the player who fired the shot.....possibly %me ?
if it wasnt like %me then anyone who hit someone in the head would trigger you to take a screenshot...right or wrong?
well, i don't think :@ has anything to do with those % variables, but is just the players nick in the case.
Posted: Sun Oct 09, 2005 1:39 pm
by Haudrauf
Cheaty skins there. Or does "male/nut" look like this?
Posted: Mon Oct 10, 2005 3:05 am
by NRGizeR
imeiz wrote:X = how many frames to wait. try out for a good period of time for the screenshot
Problem with this would then be that you can't really rely on the number of frames to get a good headshot screenshot with all the blood/gore/gibs and stuff... if you don't use vsync that is because if you have 200 fps at one place in a map, you might very well have only 100 in another, which means that it will wait only half the time at 200fps than what it does at 100fps before the screenshot is taken... still pretty useful though
Posted: Mon Oct 10, 2005 2:36 pm
by imeiz
NRGizeR wrote:if you don't use vsync that is because if you have 200 fps at one place in a map, you might very well have only 100 in another, which means that it will wait only half the time at 200fps than what it does at 100fps before the screenshot is taken... still pretty useful though :)
solution: cl_maxfps 60 :)
anyway, it's still better than alias waits "wait;wait;wait;wait;wait;wait;wait;wait;wait;wait" ;D