Page 1 of 2
Help me with a variable plz
Posted: Sat Aug 12, 2006 4:29 am
by SalomoN
hi, I need to know if the name of the last player that I shot is recorded in some variable, like %P
i try with "set variable %P" but its doesn't work... lol
(sorry but my english is a shit xD )
Posted: Sat Aug 12, 2006 9:19 am
by Janner
I've asked Maniac about this, he said it isn't possible. However, you can get the last hit, by doing this:
Code: Select all
trigger "set lasthit head" "You hit*in the head"
trigger "set lasthit stom" "You hit*in the stomach"
trigger "set lasthit legs" "You hit*in the legs"
trigger "set lasthit vest" "*has a kevlar vest*"
trigger "set lasthit chest" "You hit*in the chest"
Posted: Sat Aug 12, 2006 9:25 am
by fuct
Thats all well and good but what the fuck has it got to do with level design and editing?
Posted: Sat Aug 12, 2006 9:42 am
by Clown
Level Design & Editing
Forum for Skins, Maps, Configs etc.
Posted: Sat Aug 12, 2006 10:20 am
by skmz
Clown wrote:Level Design & Editing
Forum for Skins, Maps, Configs etc.
1 point for Clown!
Btw, I can't find this thing useful in any way. Could you explain what exactly you're gonna use this for?
Posted: Sat Aug 12, 2006 10:26 am
by dudemcpek
Use mm3 omglol
Posted: Sat Aug 12, 2006 11:57 am
by Janner
Here's the sniper and knife enemyhit code; just change anything you want.
Code: Select all
trigger "enemyhit_check1;enemyhit_check2" "*in the head"
trigger "enemyhit_check1;enemyhit_check2" "*in the stomach"
trigger "enemyhit_check1;enemyhit_check2" "*in the chest"
trigger "enemyhit_check1;enemyhit_check2" "*has a Kevlar Vest - AIM FOR THE HEAD!"
trigger "enemyhit_check1;enemyhit_check2" "*too bad you have AP rounds..."
trigger "enemyhit_check1;enemyhit_check2" "*in the legs"
alias enemyhit_check1 "if sniper isin $cl_weaponmodel then enemyhit"
alias enemyhit_check2 "if knife isin $cl_weaponmodel then enemyhit"
alias enemyhit "say_team :: [%P] with [%F] hit at [%S] :: [%D] with [%W] ::"
Posted: Sat Aug 12, 2006 5:15 pm
by SalomoN
xD lol
i want the name of the last player that im hit, like "[Drg]SalomoN", not the place of the shoot
Posted: Sat Aug 12, 2006 6:50 pm
by Clement
then %P should do... just like you wrote yourself in the OP?...??
Posted: Sat Aug 12, 2006 7:25 pm
by SalomoN
but i cant set a var
i try with "set variable %P" but its doesn't work... lol
Posted: Sat Aug 12, 2006 8:38 pm
by fuct
Posted: Sun Aug 13, 2006 3:56 pm
by Cnnlngs
??
q wa salomon rq xD
Posted: Sun Aug 13, 2006 11:04 pm
by haohmaru
Salomon want save variable %P to use always and that does not cleaner
How to do?
Posted: Mon Aug 14, 2006 7:13 am
by Clement
haohmaru wrote:Salomon want save variable %P to use always and that does not cleaner
How to do?
Oh now we get it!
Posted: Mon Aug 14, 2006 7:45 am
by Janner
Morpher wrote:haohmaru wrote:Salomon want save variable %P to use always and that does not cleaner
How to do?
Oh now we get it!
I think he means that he can use it several times that way.