aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorx3Karma <juliuslimck@gmail.com>2022-01-04 00:48:45 +0800
committerGitHub <noreply@github.com>2022-01-04 00:48:45 +0800
commit8f3f0cfc089f0388862865e4758a130201aca1ce (patch)
treeee2cf735b5e995a0e5e98cd3ceb0f3a1bedf6618
parent22bb30829471a78ff2a805b2fb6145d6f600e281 (diff)
downloadNorthstarMods-8f3f0cfc089f0388862865e4758a130201aca1ce.tar.gz
NorthstarMods-8f3f0cfc089f0388862865e4758a130201aca1ce.zip
Fix indentations in _gamemode_chamber.nut
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_chamber.nut57
1 files changed, 26 insertions, 31 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_chamber.nut b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_chamber.nut
index 4ee47aaf..bbd669cd 100644
--- a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_chamber.nut
+++ b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_chamber.nut
@@ -1,12 +1,8 @@
global function GamemodeChamber_Init
-struct {
-
-} file
-
void function GamemodeChamber_Init()
{
- SetSpawnpointGamemodeOverride( FFA )
+ SetSpawnpointGamemodeOverride( FFA )
SetShouldUseRoundWinningKillReplay( true )
SetLoadoutGracePeriodEnabled( false ) // prevent modifying loadouts with grace period
@@ -32,7 +28,7 @@ void function ChamberOnPlayerKilled( entity victim, entity attacker, var damageI
return
if ( attacker.IsPlayer() )
- {
+ {
attacker.SetPlayerGameStat( PGS_ASSAULT_SCORE, attacker.GetPlayerGameStat( PGS_ASSAULT_SCORE ) + 1 )
AddTeamScore( attacker.GetTeam(), 1 )
if ( DamageInfo_GetDamageSourceIdentifier( damageInfo ) == eDamageSourceId.human_execution )
@@ -42,59 +38,58 @@ void function ChamberOnPlayerKilled( entity victim, entity attacker, var damageI
SendHudMessage( player, message, -1, 0.4, 255, 0, 0, 0, 0, 3, 0.15 )
foreach ( entity weapon in attacker.GetMainWeapons() )
- {
- weapon.SetWeaponPrimaryAmmoCount(0)
+ {
+ weapon.SetWeaponPrimaryAmmoCount(0)
int clip = weapon.GetWeaponPrimaryClipCount() + 4
if (weapon.GetWeaponPrimaryClipCountMax() < clip)
weapon.SetWeaponPrimaryClipCount(weapon.GetWeaponPrimaryClipCountMax())
else
weapon.SetWeaponPrimaryClipCount(weapon.GetWeaponPrimaryClipCount() + 4)
- }
+ }
} else
{
- foreach ( entity weapon in attacker.GetMainWeapons() )
- {
- weapon.SetWeaponPrimaryAmmoCount(0)
+ foreach ( entity weapon in attacker.GetMainWeapons() )
+ {
+ weapon.SetWeaponPrimaryAmmoCount(0)
int clip = weapon.GetWeaponPrimaryClipCount() + 1
if (weapon.GetWeaponPrimaryClipCountMax() < clip)
weapon.SetWeaponPrimaryClipCount(weapon.GetWeaponPrimaryClipCountMax())
else
weapon.SetWeaponPrimaryClipCount(weapon.GetWeaponPrimaryClipCount() + 1)
- }
+ }
}
SetRoundWinningKillReplayAttacker(attacker)
- }
+ }
}
void function UpdateLoadout( entity player )
{
- // set health to 1 to allow one shot kills
- if (IsAlive(player) && player != null)
+ if (IsAlive(player) && player != null)
{
- // set loadout
- foreach ( entity weapon in player.GetMainWeapons() )
- player.TakeWeaponNow( weapon.GetWeaponClassName() )
+ // set loadout
+ foreach ( entity weapon in player.GetMainWeapons() )
+ player.TakeWeaponNow( weapon.GetWeaponClassName() )
- foreach ( entity weapon in player.GetOffhandWeapons() )
- player.TakeWeaponNow( weapon.GetWeaponClassName() )
+ foreach ( entity weapon in player.GetOffhandWeapons() )
+ player.TakeWeaponNow( weapon.GetWeaponClassName() )
- array<string> mods = ["one_in_the_chamber"]
- player.GiveWeapon( "mp_weapon_wingman", mods)
- player.GiveOffhandWeapon( "melee_pilot_emptyhanded", OFFHAND_MELEE )
+ array<string> mods = ["one_in_the_chamber"]
+ player.GiveWeapon( "mp_weapon_wingman", mods)
+ player.GiveOffhandWeapon( "melee_pilot_emptyhanded", OFFHAND_MELEE )
- thread SetAmmo( player )
- }
+ thread SetAmmo( player )
+ }
}
void function SetAmmo( entity player )
{
foreach ( entity weapon in player.GetMainWeapons() )
- {
- weapon.SetWeaponPrimaryAmmoCount(0)
- weapon.SetWeaponPrimaryClipCount(1)
- }
- WaitFrame()
+ {
+ weapon.SetWeaponPrimaryAmmoCount(0)
+ weapon.SetWeaponPrimaryClipCount(1)
+ }
+ WaitFrame()
if ( IsValid( player ) )
PlayerEarnMeter_SetMode( player, eEarnMeterMode.DISABLED )
}