ok or just here
Code:
public pfn_touch(ptr, ptd)
{
if(pev_valid(ptr))
{
new classname[32];
pev(ptr, pev_classname, classname, 31);
if(equal(classname, nail_classname))
{
new Float:fOrigin[3];
new iOrigin[3];
pev(ptr, pev_origin, fOrigin);
FVecIVec(fOrigin,iOrigin);
nail_radius_damage(ptr);
message_begin(MSG_BROADCAST,SVC_TEMPENTITY,iOrigin);
write_byte(TE_EXPLOSION);
write_coord(iOrigin[0]);
write_coord(iOrigin[1]);
write_coord(iOrigin[2]);
write_short(explode2);
write_byte(30);
write_byte(15);
write_byte(0);
message_end();
emit_sound(0, CHAN_WEAPON, snd_hitwall[random_num(0, sizeof snd_hitwall - 1)], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
How to determine if Entity touches (only) THE WALL & FLOOR
engfunc(EngFunc_RemoveEntity, ptr);
}
}
}
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc