Author Topic: Ski Tumble Falling Damage  (Read 740 times)

Is it possible to modify the tumble vehicle in the Item_Skis.cs so while tumbling, falling damage also applies?

Nevermind, it's a vehicle, falling damage does not apply. But Destiny has a script on his site that adds a falling damage type thing for physic vehicles like the Jeep, but does not work with the Ski Tumble Vehicle, is there any way to have a falling damage type thing for tumbling?
« Last Edit: June 10, 2010, 10:12:30 PM by Audax »


Probably could use onCollision

Probably could use onCollision

Wouldn't I use this and add another line of code after this to do damage to the player?

Code: [Select]
function deathVehicle::onImpact(%this,%obj)

I think its: %obj.getMountedPlayer(0).addDamage(10);

I think its: %obj.getMountedPlayer(0).addDamage(10);

So this would not work?

EDIT: Tried this but won't work.

Code: [Select]
function deathVehicle::onImpact(%this,%obj)
{
//%trans = %obj.getMountedObject(0).getWorldBoxCenter();
%trans = %obj.getMountedObject(0).getEyePoint();
%p = new Projectile()
{
dataBlock = tumbleImpactAProjectile;
initialVelocity  = "0 0 0";
initialPosition  = %trans;
sourceObject     = %obj;
sourceSlot       = 0;
client           = %obj.client;
{
%obj.getMountedPlayer(0).addDamage(10);
}
};
MissionCleanup.add(%p);
}
« Last Edit: June 12, 2010, 10:45:27 AM by Audax »