Hi, I wanted to know if it is possible to make the created sprite remain solid, and can make other players touch it?
PHP Code:
public fireshot(id)
{
// Get position from eyes
new aimvec[3]
get_user_origin(id, aimvec, 3)
// Throw fire
fireEffects(id, aimvec)
}
public fireEffects(id, aimvec[3])
{
// Fire - this way it's just a sprite but it is not solid
message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
write_byte(3)
write_coord(aimvec[0])
write_coord(aimvec[1])
write_coord(aimvec[2])
write_short(gSpriteBurning)
write_byte(22)
write_byte(10)
write_byte(0)
message_end()
// this way is the solid sprite but it is seen with all the black background of the sprite
new Float:vOrigin[3]
vOrigin[0] += aimvec[0]
vOrigin[1] += aimvec[1]
vOrigin[2] += 30.0
new amaterasuaowner = id
new amaterasu = create_entity("info_target")
entity_set_string(amaterasu, EV_SZ_classname, "amaterasu")
entity_set_model(amaterasu, "sprites/shmod/blue_flame.spr")
entity_set_size(amaterasu, Float:{-2.5, -2.5, -1.5}, Float:{2.5, 2.5, 1.5})
entity_set_edict(amaterasu, EV_ENT_owner, amaterasuaowner)
entity_set_int(amaterasu, EV_INT_solid, 2)
entity_set_int(amaterasu, EV_INT_movetype, 6)
entity_set_vector(amaterasu, EV_VEC_origin, vOrigin)
}