Hello, so im trying to make smoke grenade stick to wall when its on IMPACT mode, someone can help?
I have this code right here
Im using nademodes plugin
PHP Code:
case NADE_IMPACT:
{
if (is_solid(touched))
{
make_explode(toucher)
entity_set_float(toucher, EV_FL_nextthink, get_gametime() + 0.001)
if (NadeRace:get_grenade_race(toucher) == GRENADE_SMOKEGREN)
{
entity_set_int(toucher, EV_INT_flags, entity_get_int(toucher, EV_INT_flags) | FL_ONGROUND)
}
}
}
i changed the
entity_set_int(toucher, EV_INT_flags, entity_get_int(toucher, EV_INT_flags) | FL_ONGROUND)
to
entity_set_int(toucher, EV_INT_movetype, MOVETYPE_NONE)
but it doesnt seem to work, the grenade sticks to the wall, but is like rapidly moving and doesnt explode
but works great when it touches the ground