mirror of
https://github.com/Ragora/TribesReplay.git
synced 2026-03-26 07:09:09 +00:00
v22002: No patch notes.
This commit is contained in:
parent
adad8c0787
commit
63560d110c
110 changed files with 5518 additions and 2403 deletions
|
|
@ -111,6 +111,7 @@ function TurretDeployedCamera::onAdd(%this, %obj)
|
|||
{
|
||||
Parent::onAdd(%this, %obj);
|
||||
%obj.mountImage(DeployableCameraBarrel, 0, true);
|
||||
%obj.setRechargeRate(%this.rechargeRate);
|
||||
}
|
||||
|
||||
function TurretDeployedCamera::onDestroyed(%this, %obj, %prevState)
|
||||
|
|
@ -397,8 +398,9 @@ function MobileTurretBase::onDamage()
|
|||
function MobileTurretBase::damageObject(%this, %targetObject, %sourceObject, %position, %amount, %damageType)
|
||||
{
|
||||
//If vehicle turret is hit then apply damage to the vehicle
|
||||
%vehicle = %damageObj.getObjectMount();
|
||||
%vehicle.getDataBlock().damageObject(%vehicle, %sourceObject, %position, %amount, %damageType);
|
||||
%vehicle = %targetObject.getObjectMount();
|
||||
if(%vehicle)
|
||||
%vehicle.getDataBlock().damageObject(%vehicle, %sourceObject, %position, %amount, %damageType);
|
||||
}
|
||||
|
||||
function MobileTurretBase::onEndSequence(%data, %obj, %thread)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue