new ent = create_entity("func_breakable");
entity_set_float(ent, EV_FL_health, 10.0);
entity_set_float(ent, EV_FL_takedamage, DAMAGE_YES);
entity_set_string(ent, EV_SZ_classname, "predator_ent");
entity_set_model(ent, "models/cod_predator.mdl");
entity_set_origin(ent, Origin);
entity_set_int(ent, EV_INT_solid, SOLID_BBOX);
entity_set_int(ent, EV_INT_movetype, 5);
entity_set_edict(ent, EV_ENT_owner, id);
entity_set_int(ent, EV_INT_iuser2, id);
entity_set_vector(ent, EV_VEC_angles, Float:{0.0, 0.0, 0.0});
entity_set_vector(ent, EV_VEC_velocity, Velocity);
entity_set_vector(ent, EV_VEC_angles, Angle);
Ale gdy strzelam w enta a dokładnie rakiete to ona w ogóle. nie traci HP takjakby jest niezniszczalna. Za pomoc polecą +. Z góry dzięki.


Dodatki SourceMod













