CLEO Help Damage check

CLEO related
Status
Not open for further replies.

renko

Active member
Joined
Jul 8, 2014
Messages
58
Reaction score
0
How can i check if i'm taking damage from other player with a weapon ?
 

renko

Active member
Joined
Jul 8, 2014
Messages
58
Reaction score
0
TH3RM4L link said:
[quote author=Vennom link=topic=8310.msg47814#msg47814 date=1405328982]
Ok, but how can i play a sound if someone hit me
03CF: load_wav 17802 as 1
03D1: play_wav 1
Btw that's the *ding* sound
[/quote]
I know how to load and play that sound but I need the script that checks it. If i put
Code:
051A:   actor 1@ damaged_by_actor $PLAYER_ACTOR
how can i get 1@ ?
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
{$CLEO .cs}

0000: NOP

:SOUND
wait 0
if or
031D:  actor $PLAYER_ACTOR hit_by_weapon 49
031D:  actor $PLAYER_ACTOR hit_by_weapon 50
031D:  actor $PLAYER_ACTOR hit_by_weapon 51
031D:  actor $PLAYER_ACTOR hit_by_weapon 52
031D:  actor $PLAYER_ACTOR hit_by_weapon 53
031D:  actor $PLAYER_ACTOR hit_by_weapon 54
031D:  actor $PLAYER_ACTOR hit_by_weapon 56
031D:  actor $PLAYER_ACTOR hit_by_weapon 57
jf @SOUND
054E: clear_actor $PLAYER_ACTOR damage
03CF: load_wav 17802 as 1
03D1: play_wav 1
goto @SOUND
 

renko

Active member
Joined
Jul 8, 2014
Messages
58
Reaction score
0
TH3RM4L link said:
{$CLEO .cs}

0000: NOP

:SOUND
wait 0
if or
031D:  actor $PLAYER_ACTOR hit_by_weapon 49
031D:  actor $PLAYER_ACTOR hit_by_weapon 50
031D:  actor $PLAYER_ACTOR hit_by_weapon 51
031D:  actor $PLAYER_ACTOR hit_by_weapon 52
031D:  actor $PLAYER_ACTOR hit_by_weapon 53
031D:  actor $PLAYER_ACTOR hit_by_weapon 54
031D:  actor $PLAYER_ACTOR hit_by_weapon 56
031D:  actor $PLAYER_ACTOR hit_by_weapon 57
jf @SOUND
054E: clear_actor $PLAYER_ACTOR damage
03CF: load_wav 17802 as 1
03D1: play_wav 1
goto @SOUND
Thank you
 
Status
Not open for further replies.
Top