aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut
diff options
context:
space:
mode:
authorConnie Price <contact@connieprice.co.uk>2022-01-20 05:56:07 +0000
committerBarichello <artur@barichello.me>2022-01-20 17:30:02 -0300
commitf63ca08e4d820192b9a753d1badbe48e9671aae7 (patch)
treef604db9a169c9076d9d528319a39df6c775853f7 /Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut
parent8036197f7d7b74b3a9b88465106874e1a2edf48d (diff)
downloadNorthstarMods-f63ca08e4d820192b9a753d1badbe48e9671aae7.tar.gz
NorthstarMods-f63ca08e4d820192b9a753d1badbe48e9671aae7.zip
GunGame PlaylistVar Enhancements
- Define GunGame weapons using playlist vars: e.g. `+setplaylistvaroverrides scorelimit 4 gg_weapon_0 -1|mp_weapon_r97|pas_run_and_gun gg_weapon_1 -1|mp_titanweapon_xo16_vanguard|arc_rounds gg_weapon_2 -1|mp_weapon_car|pas_run_and_gun gg_weapon_3 1|mp_weapon_grenade_sonar|pas_power_cell,amped_tacticals` - Now that any custom weapon lists can be synchronised using playlist vars, server callback icon handling has been removed, and icons are now handled purely clientside. - Cleaned up default weapons. Approximate structure of custom weapon list: `+setplaylistvaroverrides scorelimit <weaponCount> gg_weapon_<index> <offhandSlotOr-1>|<weaponClassName>|<weaponMods>`
Diffstat (limited to 'Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut')
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut12
1 files changed, 1 insertions, 11 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut
index 5943b8048..14f5f15d1 100644
--- a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut
+++ b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_gg.gnut
@@ -133,7 +133,7 @@ void function UpdateLoadout( entity player )
if ( currentWeaponIndex >= weapons.len() )
currentWeaponIndex = weapons.len() - 1
- if ( currentWeaponIndex > 18 ) // play end of game music for special weapons
+ if ( currentWeaponIndex > weapons.len() - 3 ) // play end of game music for special or last few weapons
PlayMusicToAll( eMusicPieceID.LEVEL_LAST_MINUTE ) // this *shouldn't* overlap if done multiple times
GunGameWeapon weapon = weapons[ currentWeaponIndex ]
@@ -157,16 +157,6 @@ void function UpdateLoadout( entity player )
player.GiveOffhandWeapon( "melee_pilot_emptyhanded", OFFHAND_MELEE )
}
-
- if ( currentWeaponIndex == weapons.len() - 1 )
- {
- Sv_GGEarnMeter_SetFinalIcon( player )
-
- return
- }
-
- GunGameWeapon nextWeapon = weapons[ currentWeaponIndex + 1 ]
- Sv_GGEarnMeter_SetWeaponIcon( player, nextWeapon.weapon )
}
void function OnWinnerDetermined()