14 LOG_TRACE(
"Warning: Physical items are enabled but no physics engine can be used. Reverting to old items.");
26 LOG_INFO(
"This cannot be removed at runtime");
68 if(!this.
owner.modelindex)
98 if (item.spawnflags & 1)
104 _setmodel(wep, item.model);
105 setsize(wep, item.mins, item.maxs);
107 wep.angles = item.angles;
108 wep.velocity = item.velocity;
115 wep.colormap = item.owner.colormap;
116 wep.glowmod = item.owner.glowmod;
118 wep.dphitcontentsmask = item.dphitcontentsmask;
119 wep.cnt = (item.owner !=
NULL);
122 wep.nextthink =
time;
133 wep.spawn_origin = wep.origin;
134 wep.spawn_angles = item.angles;
const float MOVETYPE_PHYSICS
REGISTER_MUTATOR(physical_items, autocvar_g_physical_items)
#define MUTATOR_ONROLLBACK_OR_REMOVE
int autocvar_g_physical_items
#define setSendEntity(e, f)
vector(float skel, float bonenum) _skel_get_boneabs_hidden
#define ITEM_DAMAGE_NEEDKILL(dt)
#define ITEM_TOUCH_NEEDKILL()
void physical_item_think(entity this)
float autocvar_g_physical_items_damageforcescale
MUTATOR_HOOKFUNCTION(physical_items, Item_Spawn)
void physical_item_touch(entity this, entity toucher)
void physical_item_damage(entity this, entity inflictor, entity attacker, float damage, int deathtype,.entity weaponentity, vector hitloc, vector force)
void set_movetype(entity this, int mt)
float autocvar_g_physical_items_reset