mirror of
https://github.com/Ragora/TribesReplay.git
synced 2026-04-23 00:35:03 +00:00
v22002: No patch notes.
This commit is contained in:
parent
adad8c0787
commit
63560d110c
110 changed files with 5518 additions and 2403 deletions
|
|
@ -11,7 +11,18 @@ function StaticShapeData::onGainPowerEnabled(%data, %obj)
|
|||
%obj.schedule(750, "playThread", $PowerThread, "Power");
|
||||
else
|
||||
%obj.playThread($PowerThread,"Power");
|
||||
%obj.setRechargeRate(%data.rechargeRate);
|
||||
// deployable objects get their recharge rate set right away -- don't set it again unless
|
||||
// the object has just been re-enabled
|
||||
if(%obj.initDeploy)
|
||||
%obj.initDeploy = false;
|
||||
else
|
||||
{
|
||||
if(%obj.getRechargeRate() <= 0)
|
||||
{
|
||||
%oldERate = %obj.getRechargeRate();
|
||||
%obj.setRechargeRate(%oldERate + %data.rechargeRate);
|
||||
}
|
||||
}
|
||||
if(%data.humSound !$= "")
|
||||
%obj.playAudio($HumSound, %data.humSound);
|
||||
%obj.setPoweredState(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue