Searched refs:curweapon (Results 1 – 12 of 12) sorted by relevance
/dports/games/jfk/jfk-0.1.1/src/server/ |
H A D | person_s.cc | 48 if (curweapon != o->curweapon) in diffstring() 49 oss << "curweapon=" << curweapon << ' '; in diffstring() 53 if (ammo[curweapon] != o->ammo[o->curweapon]) in diffstring() 73 if (reload_time <= 0.0 && firing && ammo[curweapon] > 0) in action() 80 ret = new bullet(curweapon, this); in action() 81 ret->x = x + (r + bulletdata[curweapon].r + 2) * dx; in action() 82 ret->y = y + (r + bulletdata[curweapon].r + 2) * dy; in action() 86 reload_time = bulletdata[curweapon].reload_time; in action() 87 ammo[curweapon]--; in action() 145 ammo[curweapon] += 50 / bulletdata[curweapon].ammo_cost; in collide_with_item() [all …]
|
H A D | server.cc | 365 p->curweapon = (p->curweapon + 1) % JFK::MAX_WEAPON; in handle_requests() 367 while (!p->hasweapon[p->curweapon]); in handle_requests()
|
/dports/games/libretro-nxengine/nxengine-libretro-10c4381/nxengine/ |
H A D | p_arms.cpp | 131 int level = curweapon->level; in FireWeapon() 134 if (curweapon->firerate[level] != 0) in FireWeapon() 137 if (curweapon->firetimer) in FireWeapon() 143 curweapon->firetimer = curweapon->firerate[level]; in FireWeapon() 153 if (curweapon->maxammo > 0 && curweapon->ammo <= 0) in FireWeapon() 166 if (curweapon->ammo) in FireWeapon() 167 curweapon->ammo--; in FireWeapon() 223 int level = curweapon->level; in RunWeapon() 232 (curweapon->ammo < curweapon->maxammo) && \ in RunWeapon() 246 curweapon->rechargetimer = 0; in RunWeapon() [all …]
|
/dports/games/nxengine/nxengine-evo-2.6.5-1/src/ |
H A D | p_arms.cpp | 582 int level = curweapon->level; in FireWeapon() 585 if (curweapon->firerate[level] != 0) in FireWeapon() 608 if (curweapon->maxammo > 0 && curweapon->ammo <= 0) in FireWeapon() 621 if (curweapon->ammo) in FireWeapon() 622 curweapon->ammo--; in FireWeapon() 679 int level = curweapon->level; in RunWeapon() 689 if ((curweapon->rechargerate[level]) && (curweapon->ammo < curweapon->maxammo) && !firing) in RunWeapon() 692 int rate = curweapon->rechargerate[level]; in RunWeapon() 700 if (++curweapon->rechargetimer >= rate) in RunWeapon() 702 curweapon->rechargetimer = 0; in RunWeapon() [all …]
|
/dports/games/jfk/jfk-0.1.1/src/lib/ |
H A D | person.cc | 13 : name(iname), health(100), curweapon(WATERGUN), in person() 36 << " curweapon=" << curweapon << " weapons=" << weapons in tostring() 38 << " health=" << health << " ammo=" << ammo[curweapon] in tostring() 61 else if (id == "curweapon") curweapon = strtoint(value(arg)); in fromstring()
|
H A D | person.h | 28 int curweapon; variable
|
/dports/games/jfk/jfk-0.1.1/src/client/ |
H A D | panel.cc | 73 (pers->curweapon != last_weapon)) in draw() 77 last_weapon = pers->curweapon; in draw() 113 if ( pers->curweapon == i) in draw()
|
/dports/games/assaultcube/AssaultCube_v1.2.0.2/source/src/ |
H A D | weapon.cpp | 73 weapon *curweapon = player1->weaponsel; in shiftweapon() local 82 if(w->selectable() || w==curweapon || (w->type==GUN_PISTOL && player1->akimbo)) in shiftweapon() 94 if(curweapon->type==GUN_PISTOL) curweapon = akimbo; // fix selection in shiftweapon() 99 int curidx = availweapons.find(curweapon); in shiftweapon() 135 void curweapon() { intret(player1->weaponsel->type); } in curweapon() function 145 COMMAND(curweapon, "");
|
H A D | clientgame.cpp | 274 ATTR_INT(curweapon, p->weaponsel->type); in playerinfo()
|
/dports/games/assaultcube/AssaultCube_v1.2.0.2/config/ |
H A D | scripts.cfg | 158 const hasprimary [ result (= (curweapon) (currentprimary)) ] 168 const altaction [ (concatword altaction_ (curweapon)) ] 175 if (!= (curweapon) $CPISTOL) grenades 178 // onrelease [ sleep 1 [ if (= (curweapon) $CPISTOL) [ weapon (prevweapon) ] ] ]
|
H A D | docs.cfg | 692 docremark [This is not the same as curweapon - which could be a grenade or the knife.]; 708 docident [curweapon] [Returns the weapon-index the local player is currently holding.];
|
/dports/games/SRB2/SRB2-SRB2_release_2.2.9/src/ |
H A D | st_stuff.c | 83 static patch_t *curweapon; variable 278 curweapon = W_CachePatchName("CURWEAP", PU_HUDGFX); in ST_LoadGraphics() 2119 V_DrawScaledPatch(6 + xoffs, y-2 - del/2, V_PERPLAYER|V_SNAPTOBOTTOM, curweapon); in ST_drawWeaponSelect()
|