Animation-CobHitByWeaponID: Difference between revisions

From Spring
Jump to navigationJump to search
Someone else can feel free to clean this up and/or give an example, I'm tired...
 
No edit summary
Line 4: Line 4:


The weapon_id is the "id=xxx" from the weapon information in the weapon tdf.
The weapon_id is the "id=xxx" from the weapon information in the weapon tdf.
The shot_power is the damage of the weapon.


Always return(100); or the weapon won't deal full damage.
Always return(100); or the weapon won't deal full damage.

Revision as of 08:09, 9 June 2008

HitByWeaponId(z,x,weapon_id,shot_power)

The z and x angles are not returned unless the impulse of the weapon is high enough to move the unit.

The weapon_id is the "id=xxx" from the weapon information in the weapon tdf.

Always return(100); or the weapon won't deal full damage.