Skip to content

Commit

Permalink
Knife arena runtime error
Browse files Browse the repository at this point in the history
- Move the wait before class loadout,
- Updated the attachment logic
- Style update
  • Loading branch information
kristiandz committed Nov 19, 2022
1 parent 8ec17ba commit 01a30d9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions maps/mp/gametypes/_globallogic.gsx
Original file line number Diff line number Diff line change
Expand Up @@ -398,19 +398,21 @@ spawnPlayer()
removeWeapons(visible)
{
self endon("disconnect");
if(isDefined(self.class))
self maps\mp\gametypes\_class::giveLoadout(self.team,self.class); // Check if self.class
wait 0.05;
attachment="";
if(self.pers[self.pers["class"]]["loadout_secondary_attachment"]=="silencer")attachment="_silencer";
sidearmWeapon=self.pers[self.pers["class"]]["loadout_secondary"]+attachment+"_mp";
if(isDefined(self.class))
self maps\mp\gametypes\_class::giveLoadout(self.team, self.class); // Check if self.class
if(self.pers[self.pers["class"]]["loadout_secondary_attachment"] == "silencer")
attachment = "_silencer";
else
attachment = "";
sidearmWeapon = self.pers[self.pers["class"]]["loadout_secondary"] + attachment + "_mp";
self takeAllWeapons();
self giveWeapon(sidearmWeapon,0);
self setweaponammoclip(sidearmWeapon,0);
self setweaponammostock(sidearmWeapon,0);
self GiveWeapon("knife_mp");
self switchtoWeapon(sidearmWeapon);
self setclientdvar("g_compassShowEnemies",visible);
self setclientdvar("g_compassShowEnemies", visible);
}

spawnSpectator(origin,angles)
Expand Down

0 comments on commit 01a30d9

Please sign in to comment.