aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoyalBlue1 <malte.hoermeyer@web.de>2022-05-11 14:09:41 +0200
committerRoyalBlue1 <malte.hoermeyer@web.de>2022-05-11 14:09:41 +0200
commit0c6ff1343083731618d48ff3f1f32e09f35243c3 (patch)
treed8da2b1361223e99a6e4e993371822c2180ac568
parentdb9778a64c1e9e6e8e3112a4d8077f78f868ab68 (diff)
downloadNorthstarMods-0c6ff1343083731618d48ff3f1f32e09f35243c3.tar.gz
NorthstarMods-0c6ff1343083731618d48ff3f1f32e09f35243c3.zip
Indent fix
Replaced spaces for indentation with tabs in the few places it was done
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut28
1 files changed, 14 insertions, 14 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut
index 95428281..fac1de81 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_fd.nut
@@ -481,15 +481,15 @@ bool function runWave(int waveIndex,bool shouldDoBuyTime)
void function OnHarvesterDamaged(entity harvester, var damageInfo)
{
if ( !IsValid( harvester ) )
- return
+ return
if( fd_harvester.harvester != harvester )
return
if ( GetGlobalNetTime( "FD_harvesterInvulTime" ) > Time() )
{
- harvester.SetShieldHealth( harvester.GetShieldHealthMax() )
- return
+ harvester.SetShieldHealth( harvester.GetShieldHealthMax() )
+ return
}
int damageSourceID = DamageInfo_GetDamageSourceIdentifier( damageInfo )
@@ -497,27 +497,27 @@ void function OnHarvesterDamaged(entity harvester, var damageInfo)
float damageAmount = DamageInfo_GetDamage( damageInfo )
if ( !damageSourceID && !damageAmount && !attacker )
- return
+ return
fd_harvester.lastDamage = Time()
if ( harvester.GetShieldHealth() == 0 )
{
- float newHealth = harvester.GetHealth() - damageAmount
- if( newHealth <= 0 )
- {
- EmitSoundAtPosition(TEAM_UNASSIGNED,fd_harvester.harvester.GetOrigin(),"coop_generator_destroyed")
- newHealth = 0
- fd_harvester.rings.Destroy()
- }
- harvester.SetHealth( newHealth )
+ float newHealth = harvester.GetHealth() - damageAmount
+ if( newHealth <= 0 )
+ {
+ EmitSoundAtPosition(TEAM_UNASSIGNED,fd_harvester.harvester.GetOrigin(),"coop_generator_destroyed")
+ newHealth = 0
+ fd_harvester.rings.Destroy()
+ }
+ harvester.SetHealth( newHealth )
}
if ( DamageInfo_GetDamageSourceIdentifier( damageInfo ) == eDamageSourceId.mp_titancore_laser_cannon )
DamageInfo_SetDamage( damageInfo, DamageInfo_GetDamage( damageInfo )/10 ) // laser core shreds super well for some reason
if ( attacker.IsPlayer() )
- attacker.NotifyDidDamage( harvester, DamageInfo_GetHitBox( damageInfo ), DamageInfo_GetDamagePosition( damageInfo ), DamageInfo_GetCustomDamageType( damageInfo ), DamageInfo_GetDamage( damageInfo ), DamageInfo_GetDamageFlags( damageInfo ), DamageInfo_GetHitGroup( damageInfo ), DamageInfo_GetWeapon( damageInfo ), DamageInfo_GetDistFromAttackOrigin( damageInfo ) )
+ attacker.NotifyDidDamage( harvester, DamageInfo_GetHitBox( damageInfo ), DamageInfo_GetDamagePosition( damageInfo ), DamageInfo_GetCustomDamageType( damageInfo ), DamageInfo_GetDamage( damageInfo ), DamageInfo_GetDamageFlags( damageInfo ), DamageInfo_GetHitGroup( damageInfo ), DamageInfo_GetWeapon( damageInfo ), DamageInfo_GetDistFromAttackOrigin( damageInfo ) )
}
void function FD_NPCCleanup()
@@ -577,7 +577,7 @@ void function HarvesterThink()
if (!isRegening)
{
- EmitSoundOnEntity( harvester,"coop_generator_shieldrecharge_resume" )
+ EmitSoundOnEntity( harvester,"coop_generator_shieldrecharge_resume" )
isRegening = true
}