Merge pull request #17 from diamante0018/patch-3

more fixes for gun
This commit is contained in:
Louve authored and GitHub committed 2024-01-11 23:40:43 +01:00
commit d310691343
1 file changed
+9 -2
+9 -2
View File
@@ -115,7 +115,7 @@ onStartGameType()
allowed = [];
maps\mp\gametypes\_gameobjects::main(allowed);
// Prevent class and team change
// Prevent class and team change. TODO: Must be disabled in _menus.gsc as well
setDvar( "ui_allow_classchange", 0 );
setdvar( "ui_allow_teamchange", 0 );
@@ -382,6 +382,8 @@ refillSingleCountAmmo()
initGunHUD()
{
if ( self isTestClient() ) return;
self.gun_progressDisplay[0] = self createFontString( "small", 1.6 );
self.gun_progressDisplay[0] setPoint( "TOP LEFT", "TOP LEFT", 115, 5 );
self.gun_progressDisplay[0] setText( &"MP_WEAPON" );
@@ -402,11 +404,14 @@ initGunHUD()
updateGunHUD()
{
if ( self isTestClient() ) return;
self.gun_progressDisplay[1] setText( (self.gunGameGunIndex+1) + " / " + level.gun_guns.size );
}
hideInKillCam()
{
if ( self isTestClient() ) return;
self endon( "disconnect" );
var_0 = 1;
@@ -431,6 +436,8 @@ hideInKillCam()
hideOnGameEnd()
{
if ( self isTestClient() ) return;
self endon( "disconnect" );
level waittill( "game_ended" );
@@ -574,4 +581,4 @@ setSpecialLoadout()
// FFA games don't have teams, but players are allowed to choose team on the way in
// just for character model and announcer voice variety. Same loadout for both.
level.gun_loadouts["allies"] = level.gun_loadouts["axis"];
}
}