From: Mario Date: Mon, 2 Jul 2018 10:59:41 +0000 (+1000) Subject: Run impulse commands on spawn prior to running the weapon frame, so the selected... X-Git-Tag: xonotic-v0.8.5~1965 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6c3c66fc33bdc66054660c4a038b183681157cd2;p=xonotic%2Fxonotic-data.pk3dir.git Run impulse commands on spawn prior to running the weapon frame, so the selected weapon is updated at spawn --- diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index 43174dd55..9214900f3 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -754,6 +754,8 @@ void PutPlayerInServer(entity this) MUTATOR_CALLHOOK(PlayerWeaponSelect, this); + if (CS(this).impulse) ImpulseCommands(this); + for(int slot = 0; slot < MAX_WEAPONSLOTS; ++slot) { .entity weaponentity = weaponentities[slot];