diff options
author | Will Castro <39478251+VITALISED@users.noreply.github.com> | 2022-01-10 20:41:01 +1100 |
---|---|---|
committer | Will Castro <39478251+VITALISED@users.noreply.github.com> | 2022-01-10 20:41:01 +1100 |
commit | 2bd7c48cf6677559e4f89fe9ccfd0ea04bea8aa4 (patch) | |
tree | 8110963bdb09da59ccecc7e5167df32e1fd365ad /Northstar.CustomServers | |
parent | af2f675a13c1e82fc4900bd61aadc88facd4775a (diff) | |
download | NorthstarMods-2bd7c48cf6677559e4f89fe9ccfd0ea04bea8aa4.tar.gz NorthstarMods-2bd7c48cf6677559e4f89fe9ccfd0ea04bea8aa4.zip |
Fix formatting
Diffstat (limited to 'Northstar.CustomServers')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_ps.nut | 8 | ||||
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/gamemodes/_gamemode_tdm.nut | 8 |
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
|