aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Custom
diff options
context:
space:
mode:
authorx3Karma <juliuslimck@gmail.com>2022-01-04 00:46:00 +0800
committerGitHub <noreply@github.com>2022-01-04 00:46:00 +0800
commit22bb30829471a78ff2a805b2fb6145d6f600e281 (patch)
treee6b0726961425fe0c6edc5762ac27b0f66ddc854 /Northstar.Custom
parent8a9859da2a38c3267148cbb55670276049f81c87 (diff)
downloadNorthstarMods-22bb30829471a78ff2a805b2fb6145d6f600e281.tar.gz
NorthstarMods-22bb30829471a78ff2a805b2fb6145d6f600e281.zip
Fix indentations in _gamemode_hidden.nut
Diffstat (limited to 'Northstar.Custom')
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_hidden.nut68
1 files changed, 34 insertions, 34 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_hidden.nut b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_hidden.nut
index 6043ab355..4d52835b3 100644
--- a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_hidden.nut
+++ b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_hidden.nut
@@ -121,11 +121,10 @@ void function HiddenOnPlayerKilled( entity victim, entity attacker, var damageIn
return
if ( attacker.IsPlayer() )
- {
+ {
// increase kills by 1
attacker.SetPlayerGameStat( PGS_ASSAULT_SCORE, attacker.GetPlayerGameStat( PGS_ASSAULT_SCORE ) + 1 )
- }
-
+ }
}
@@ -133,14 +132,14 @@ void function UpdateLoadout( entity player )
{
string p2016 = "mp_weapon_wingman_n"
foreach ( entity weapon in player.GetMainWeapons() )
- {
+ {
if (weapon.GetWeaponClassName() == p2016)
{
weapon.SetWeaponPrimaryAmmoCount(0)
weapon.SetWeaponPrimaryClipCount(weapon.GetWeaponPrimaryClipCountMax())
}
- }
- WaitFrame()
+ }
+ WaitFrame()
if ( IsValid( player ) )
PlayerEarnMeter_SetMode( player, eEarnMeterMode.DISABLED )
}
@@ -156,34 +155,35 @@ void function RemoveHidden()
void function PredatorMain()
{
- while (true) {
- WaitFrame()
- if(!IsLobby())
- {
- foreach (entity player in GetPlayerArray())
- {
- if (player == null || !IsValid(player) || !IsAlive(player) || player.GetTeam() != TEAM_IMC)
- continue
- vector playerVelV = player.GetVelocity()
- float playerVel
- playerVel = sqrt(playerVelV.x * playerVelV.x + playerVelV.y * playerVelV.y + playerVelV.z * playerVelV.z)
- float playerVelNormal = playerVel * 0.068544
- if (playerVel/300 < 1.3)
- {
- player.SetCloakFlicker(0, 0)
- player.kv.VisibilityFlags = 0
- }
- else
- {
- player.SetCloakFlicker(0.2 , 1 )
- player.kv.VisibilityFlags = 0
- float waittime = RandomFloat(0.5)
- wait waittime
- player.kv.VisibilityFlags = ENTITY_VISIBLE_TO_EVERYONE
- }
- }
- }
- }
+ while (true)
+ {
+ WaitFrame()
+ if(!IsLobby())
+ {
+ foreach (entity player in GetPlayerArray())
+ {
+ if (player == null || !IsValid(player) || !IsAlive(player) || player.GetTeam() != TEAM_IMC)
+ continue
+ vector playerVelV = player.GetVelocity()
+ float playerVel
+ playerVel = sqrt(playerVelV.x * playerVelV.x + playerVelV.y * playerVelV.y + playerVelV.z * playerVelV.z)
+ float playerVelNormal = playerVel * 0.068544
+ if (playerVel/300 < 1.3)
+ {
+ player.SetCloakFlicker(0, 0)
+ player.kv.VisibilityFlags = 0
+ }
+ else
+ {
+ player.SetCloakFlicker(0.2 , 1 )
+ player.kv.VisibilityFlags = 0
+ float waittime = RandomFloat(0.5)
+ wait waittime
+ player.kv.VisibilityFlags = ENTITY_VISIBLE_TO_EVERYONE
+ }
+ }
+ }
+ }
}
int function TimeoutCheckSurvivors()