Searched refs:weaponchanging (Results 1 – 7 of 7) sorted by relevance
39 if(p->weaponchanging) in calcmove()42 basetime = p->weaponchanging; in calcmove()43 …float progress = clamp((lastmillis - p->weaponchanging)/(float)weapon::weaponchangetime, 0.0f, 1.0… in calcmove()
421 int weaponchanging; variable509 …weaponchanging = lastmillis - weapons[gunselect]->weaponchangetime/2; // 2011jan16:ft: for a littl… in respawn()534 weaponchanging = lastmillis; in weaponswitch()
24 if(!player1->weaponchanging) return; in checkweaponswitch()25 int timeprogress = lastmillis-player1->weaponchanging; in checkweaponswitch()29 player1->weaponchanging = 0; in checkweaponswitch()151 if(!p || p->state!=CS_ALIVE || p->weaponsel->reloading || p->weaponchanging) return; in tryreload()934 …ctable() { return this != owner->weaponsel && owner->state == CS_ALIVE && !owner->weaponchanging; } in selectable()1116 owner->weaponchanging = lastmillis-1-(weaponchangetime/2); in attack()1614 if(p->state!=CS_ALIVE || p->weaponchanging) return; in shoot()
717 player1->weaponchanging -= weapon::weaponchangetime/2; in parsemessages()732 s->weaponchanging = 0; in parsemessages()753 d->weaponchanging = 0; in parsemessages()
738 …player1->weaponchanging -= player1->weapons[player1->gunselect]->weaponchangetime/2; // 2011jan16:… in respawnself()
643 if(m_pMyEnt->nextweaponsel == NULL) m_pMyEnt->weaponchanging = 0; in CheckWeaponSwitch()644 if(!m_pMyEnt->weaponchanging) return; in CheckWeaponSwitch()646 int timeprogress = lastmillis-m_pMyEnt->weaponchanging; in CheckWeaponSwitch()652 m_pMyEnt->weaponchanging = 0; in CheckWeaponSwitch()
288 if(m_pMyEnt->weaponsel->reloading || m_pMyEnt->weaponchanging) return false; in SelectGun()