make fleshs/gibs gravity gun-able

some gib/flesh models doesn’t allow you to gravity gun them. I want to make them gravity gun-able for my scripted entity. I tryed to change the mass but it doesnt effect. Is it possible?

Example models;


it is up

Gravity Gun seeks for entities with “MOVETYPE_VPHYSICS”. Try to set gib’s movetype to MOVETYPE_VPHYSICS after they land or created.

The gravity gun has mostly two restrictions for what it won’t pickup, stuff that’s above 250 of mass and physics objects that have the “flesh” material.

Get the entity’s physics object after you spawn it and then call

PhysObj:SetMaterial to set the material to something other than flesh, like “metal” for instance, you can find a better list on the linked wiki article.