diff --git a/source/src/cube.h b/source/src/cube.h index 1545e977..75ceffb8 100644 --- a/source/src/cube.h +++ b/source/src/cube.h @@ -406,7 +406,7 @@ struct playerent : dynent gunwait = 0; attacking = false; weaponchanging = false; - akimbo = 1; + akimbo = 0; loopi(NUMGUNS) ammo[i] = mag[i] = 0; }; }; diff --git a/source/src/entities.cpp b/source/src/entities.cpp index 59af4571..2d41c463 100644 --- a/source/src/entities.cpp +++ b/source/src/entities.cpp @@ -264,19 +264,21 @@ void setspawn(int i, bool on) { if(i=0) ents[i].spawned = on void equip(playerent *d) { - loopi(NUMGUNS) if(d->nextprimary!=i) d->ammo[i] = 0; - + if(m_pistol) d->primary = GUN_PISTOL; + else if(m_osok) d->primary = GUN_SNIPER; + else if(m_lss) d->primary = GUN_KNIFE; + else d->primary = d->nextprimary; + d->mag[GUN_KNIFE] = d->ammo[GUN_KNIFE] = 1; d->mag[GUN_GRENADE] = d->ammo[GUN_GRENADE] = 0; - if(m_pistol || d->primary==GUN_PISTOL) // pistol only mode + if(m_pistol) // pistol only mode { d->ammo[GUN_PISTOL] = itemstats[GUN_PISTOL].max; - }; - if(m_lss) + } + else if(m_lss) { d->mag[d->primary] = d->mag[GUN_PISTOL] = 0; - d->primary = GUN_KNIFE; } else if(!m_noguns) {