CLEO Help Is Player Falling? Has player taken fall damage?

CLEO related
Status
Not open for further replies.

Wreko

Active member
Joined
Dec 13, 2014
Messages
40
Reaction score
0
I want to know if player taken fall damage or hit by bullet/car/explosion.

I want something to happen when player take fall damage, but only fall damage.

There is no that opcode in CLEO....

help?

Thanks!
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
[member=30970]Wreko[/member]
Code:
031D:   actor $PLAYER_ACTOR hit_by_weapon 54 // WEAPON_COLLISION = 54
Opcode.eXe link said:
there's an opcode
srsly :kidding:
rip english
 

Wreko

Active member
Joined
Dec 13, 2014
Messages
40
Reaction score
0
TH3RM4L link said:
[member=30970]Wreko[/member]
Code:
031D:   actor $PLAYER_ACTOR hit_by_weapon 54 // WEAPON_COLLISION = 54
srsly :kidding:
rip english

Sorry, I was sleepy.

Collision is not only fall damage.
Collision is also car ramming and such, as it says, any collision.
I want only fall collision to detect.

:face_palm:
rip cleo knowledge

Something suppose to detect fall damage only; tried by animation and it don't work.


EDIT: I did what ThermaL said and crashes my game
 

Wreko

Active member
Joined
Dec 13, 2014
Messages
40
Reaction score
0
it also cause crash and game bugging cause collision is not valid weapon only kill weapon

it doesn't work

next time before dissing sumone test it first
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
Wreko link said:
Sorry, I was sleepy.

Collision is not only fall damage.
Collision is also car ramming and such, as it says, any collision.
I want car collision.

:face_palm:
rip cleo knowledge

Something suppose to detect fall damage only; tried by animation and it don't work.
:kidding: it detects falling collision only, I also tested it.

Code:
{$CLEO}
0000: NOP

while true
wait 0
    if and
        Player.Defined($PLAYER_CHAR)
        031D:   actor $PLAYER_ACTOR hit_by_weapon 54 // WEAPON_COLLISION = 54
    then
        054E: clear_actor $PLAYER_ACTOR damage
        print "worx" 1000
    end
end
 
Status
Not open for further replies.
Top