In Hexen, if a DamageType parameter of any inventory item, like weapon, is set to "Ice" (I wanted to use this parameter to determine melee damage type), item is being removed from inventory and destroyed in less than a second.
That is because engine thinks it hits the floor all the time for some reason (it calls EntityEx::HitFloor), and since DamageType is "Ice", it thinks item is freezed and so sets StateTime = 0.1 to make it break in pieces after short time. But inventory item is usually in state Held:
- Code: Select all
TNT1 A -1
So, basically, inventory item waits for 0.1 seconds and Stops (dies).
You can think it's breaking in ice shards