Debriefing > Bug Reports & Fixes

[Bug] Invisible weapon

(1/2) > >>

Troy:
A few times when I've spawned after a round restart, my level 1 weapons was invisible.  When I shot it, the bullets still fired like it was there.  This lasts until I respawn.

killermonkey:
Is this with v4.2.1?

Troy:
Yes

killermonkey:
And 4.2? This is very important information...

Troy:
I'd like to also say that the game mode was AUF.  But how it gives weapons is no different than gun game or arsenal.  I haven't tested it with 4.2.


--- Code: ---
    def GivePlayerWeapons( self, player ):
        if not player or player.IsDead():
            return

        player.StripAllWeapons()
        startArmed = int( GEUtil.GetCVarValue( "ge_startarmed" ) )

        if startArmed == 0:
            player.GiveNamedWeapon( "weapon_slappers", 0 )
        else:
            player.GiveNamedWeapon( "weapon_slappers", 0 )
            player.GiveNamedWeapon( "weapon_knife", 0 )

        if player.GetTeamNumber() == GEGlobal.TEAM_MI6:
            weap = mi6WeaponList[self.MI6Level]
            player.GiveNamedWeapon( weap[0], weap[2] )
            player.WeaponSwitch( weap[0] )
        elif player.GetTeamNumber() == GEGlobal.TEAM_JANUS:
            weap = janusWeaponList[self.JanusLevel]
            player.GiveNamedWeapon( weap[0], weap[2] )
            player.WeaponSwitch( weap[0] )
--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version