mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
added entity_is_on_ground
This commit is contained in:
parent
32efef099c
commit
8cb40e903e
@ -132,7 +132,7 @@ stock make_deathmsg(killer,victim,headshot,weapon[])
|
||||
write_byte( killer )
|
||||
write_byte( victim )
|
||||
write_byte( headshot )
|
||||
write_string( weapon )
|
||||
write_string( weapon[] )
|
||||
message_end()
|
||||
|
||||
return 1
|
||||
@ -205,12 +205,7 @@ stock get_entity_visibility(entity) {
|
||||
return (entity_get_int(entity, EV_INT_effects) & EF_NODRAW)
|
||||
}
|
||||
|
||||
stock set_user_velocity(entity, Float:vec[3])
|
||||
{
|
||||
return entity_set_vector(entity, EV_SZ_velocity, vec)
|
||||
}
|
||||
|
||||
stock get_user_velocity(entity, Flaot:vec[3])
|
||||
{
|
||||
return entity_get_vector(entity, EV_SZ_velocity, vec)
|
||||
/* Returns true if entity is on ground, else false. */
|
||||
stock entity_is_on_ground(entity) {
|
||||
return entity_get_int(entity, EV_INT_flags) & FL_ONGROUND
|
||||
}
|
Loading…
Reference in New Issue
Block a user