FinishVehicleDamage
Does damage to an vehicle - usually as part of the damage callback
Example:
self FinishVehicleDamage( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime, damageUnderneathVehicle, modelindex, partname, damageteammates )
Returns: entity
Parameters
| Parameter | Summary |
|---|---|
| *Inflictor | The entity that causes the damage.(e.g. a turret) |
| *Attacker | The entity that is attacking. |
| *Damage | Integer specifying the amount of damage done |
| *Damage Flags | Integer specifying flags that are to be applied to the damage |
| *Means Of Death | Integer specifying the method of death |
| *Weapon | The weapon number of the weapon used to inflict the damage |
| *Point | Point of damage |
| *Direction | (vector) The direction of the damage |
| *Hit Loc | The location of the hit |
| *Offset Time | The time offset for the damage |
| *DamageFromUnderneath | If the hit is underneath the vehicle |
| *modelIndex | which model in the dobj was hit |
| *partIndex | which bone was hit |
| *damageteammates | Whether to damage teammates or not |
* = mandatory