Hello there!
It's easy to make it, if just using a flag or a skill.
(replace all
phent_setmass(...); by
phent_settype(...);my.FLAG7 = on;// or off when setting off.
Alternative is adding yours:
Code:
ph_settype(ENTITY* ent,var type,var hulltype)
{
if (type!=0) {ent.flag7=on;} else {ent.flag7=off;}
phent_settype(ent,mass,hulltype);
}
That's all.
(You can repeat same by making same for all phent_*)