Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/DelayedDamage.js
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | DelayedDamage.prototype.MissileHit = function(data, lateness) | ||||
// Do this first in case the direct hit kills the target. | // Do this first in case the direct hit kills the target. | ||||
if (data.splash) | if (data.splash) | ||||
Attacking.CauseDamageOverArea({ | Attacking.CauseDamageOverArea({ | ||||
"type": data.type, | "type": data.type, | ||||
"attackData": data.splash.attackData, | "attackData": data.splash.attackData, | ||||
"attacker": data.attacker, | "attacker": data.attacker, | ||||
"attackerOwner": data.attackerOwner, | "attackerOwner": data.attackerOwner, | ||||
"attackerPosition": data.attackerPosition, | |||||
"attackHeightOffset": data.attackHeightOffset, | |||||
"origin": Vector2D.from3D(data.position), | "origin": Vector2D.from3D(data.position), | ||||
"radius": data.splash.radius, | "radius": data.splash.radius, | ||||
"shape": data.splash.shape, | "shape": data.splash.shape, | ||||
"direction": data.direction, | "direction": data.direction, | ||||
"friendlyFire": data.splash.friendlyFire | "friendlyFire": data.splash.friendlyFire | ||||
}); | }); | ||||
let cmpProjectileManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_ProjectileManager); | let cmpProjectileManager = Engine.QueryInterface(SYSTEM_ENTITY, IID_ProjectileManager); | ||||
Show All 32 Lines |
Wildfire Games · Phabricator