JK and MotS Editing >> Cog, AI, and Templates >> Complete Invulnerability?     (Moderator: Admins) Previous Topic | Next Topic
Page 1 of 1
 Author 
 Post 
Post 20-May-2012 21:25        

How would I go about creating a mod that prevents getting killed by high impacts? Such examples would be velocity to a wall or falling in a pit.
Post 21-May-2012 00:53        

To not fall in a pit, turn off the PIT flag in all sectors, or turn off gravity.

For impact damage, turn on "No Falling Damage" flag on the surfaces. However, this does not work with objects (3DOs).

Best way is to open kyle.cog, find damaged: and add

if(GetParam(1) & 0x40) // If damage type is surface collision
ReturnEx(0); // Don't forward the damage.

Though, a cog on its own that Captures the player could also work...
I think inside the Rolling Rev mod there is this modification set, though first it checks if a certain Inv is set. Some levels like to turn this collision thing on and off during certain stages.

/Edward
*** Post commands are unavailable for guests. ***