aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts
diff options
context:
space:
mode:
authorWill Castro <39478251+VITALISED@users.noreply.github.com>2022-01-10 20:41:01 +1100
committerWill Castro <39478251+VITALISED@users.noreply.github.com>2022-01-10 20:41:01 +1100
commit2bd7c48cf6677559e4f89fe9ccfd0ea04bea8aa4 (patch)
tree8110963bdb09da59ccecc7e5167df32e1fd365ad /Northstar.CustomServers/mod/scripts/vscripts
parentaf2f675a13c1e82fc4900bd61aadc88facd4775a (diff)
downloadNorthstarMods-2bd7c48cf6677559e4f89fe9ccfd0ea04bea8aa4.tar.gz
NorthstarMods-2bd7c48cf6677559e4f89fe9ccfd0ea04bea8aa4.zip
Fix formatting
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut8
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_tdm.nut8
2 files changed, 8 insertions, 8 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut
index 965557b6..30dbdd89 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut
@@ -34,18 +34,18 @@ void function GiveScoreForPlayerKill( entity victim, entity attacker, var damage
AddTeamScore( attacker.GetTeam(), 1 )
var existingAttackers = []
- foreach(DamageHistoryStruct attackerInfo in victim.e.recentDamageHistory)
+ foreach( DamageHistoryStruct attackerInfo in victim.e.recentDamageHistory )
{
- if( attackerInfo.attacker != attacker && !(attackerInfo.attacker in existingAttackers) )
+ if( attackerInfo.attacker != attacker && !( attackerInfo.attacker in existingAttackers ) )
attackerInfo.attacker.AddToPlayerGameStat( PGS_ASSISTS, 1 )
}
}
int function CheckScoreForDraw()
{
- if (GameRules_GetTeamScore(TEAM_IMC) > GameRules_GetTeamScore(TEAM_MILITIA))
+ if (GameRules_GetTeamScore(TEAM_IMC) > GameRules_GetTeamScore( TEAM_MILITIA ))
return TEAM_IMC
- else if (GameRules_GetTeamScore(TEAM_MILITIA) > GameRules_GetTeamScore(TEAM_IMC))
+ else if (GameRules_GetTeamScore(TEAM_MILITIA) > GameRules_GetTeamScore( TEAM_IMC ))
return TEAM_MILITIA
return TEAM_UNASSIGNED
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_tdm.nut b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_tdm.nut
index 3248d72e..c8643e42 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_tdm.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_tdm.nut
@@ -14,9 +14,9 @@ void function GiveScoreForPlayerKill( entity victim, entity attacker, var damage
AddTeamScore( attacker.GetTeam(), 1 )
var existingAttackers = []
- foreach(DamageHistoryStruct attackerInfo in victim.e.recentDamageHistory)
+ foreach( DamageHistoryStruct attackerInfo in victim.e.recentDamageHistory )
{
- if( attackerInfo.attacker != attacker && !(attackerInfo.attacker in existingAttackers) )
+ if( attackerInfo.attacker != attacker && !( attackerInfo.attacker in existingAttackers ) )
attackerInfo.attacker.AddToPlayerGameStat( PGS_ASSISTS, 1 )
}
}
@@ -29,9 +29,9 @@ void function RateSpawnpoints_Directional( int checkclass, array<entity> spawnpo
int function CheckScoreForDraw()
{
- if (GameRules_GetTeamScore(TEAM_IMC) > GameRules_GetTeamScore(TEAM_MILITIA))
+ if (GameRules_GetTeamScore(TEAM_IMC) > GameRules_GetTeamScore( TEAM_MILITIA ))
return TEAM_IMC
- else if (GameRules_GetTeamScore(TEAM_MILITIA) > GameRules_GetTeamScore(TEAM_IMC))
+ else if (GameRules_GetTeamScore(TEAM_MILITIA) > GameRules_GetTeamScore( TEAM_IMC ))
return TEAM_MILITIA
return TEAM_UNASSIGNED