Home
last modified time | relevance | path

Searched refs:weaponchanging (Results 1 – 7 of 7) sorted by relevance

/dports/games/assaultcube/AssaultCube_v1.2.0.2/source/src/
H A Dhudgun.h39 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()
H A Dentity.h421 int weaponchanging; variable
509weaponchanging = lastmillis - weapons[gunselect]->weaponchangetime/2; // 2011jan16:ft: for a littl… in respawn()
534 weaponchanging = lastmillis; in weaponswitch()
H A Dweapon.cpp24 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()
H A Dclients2c.cpp717 player1->weaponchanging -= weapon::weaponchangetime/2; in parsemessages()
732 s->weaponchanging = 0; in parsemessages()
753 d->weaponchanging = 0; in parsemessages()
H A Dclientgame.cpp738 …player1->weaponchanging -= player1->weapons[player1->gunselect]->weaponchangetime/2; // 2011jan16:… in respawnself()
/dports/games/assaultcube/AssaultCube_v1.2.0.2/source/src/bot/
H A Dbot_ai.cpp643 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()
H A Dbot.cpp288 if(m_pMyEnt->weaponsel->reloading || m_pMyEnt->weaponchanging) return false; in SelectGun()