/dports/games/libretro-nxengine/nxengine-libretro-10c4381/nxengine/ |
H A D | playerstats.cpp | 157 void GetWeapon(int wpn, int ammo) in GetWeapon() argument 163 player->weapons[wpn].level = 0; in GetWeapon() 164 player->weapons[wpn].xp = 0; in GetWeapon() 166 player->curWeapon = wpn; in GetWeapon() 173 AddAmmo(wpn, ammo); in GetWeapon() 178 void LoseWeapon(int wpn) in LoseWeapon() argument 183 if (wpn == player->curWeapon) in LoseWeapon() 221 void AddAmmo(int wpn, int ammo) in AddAmmo() argument 223 player->weapons[wpn].ammo += ammo; in AddAmmo() 224 if (player->weapons[wpn].ammo > player->weapons[wpn].maxammo) in AddAmmo() [all …]
|
H A D | playerstats.fdh | 20 void GetWeapon(int wpn, int ammo); 21 void LoseWeapon(int wpn); 23 void AddAmmo(int wpn, int ammo);
|
H A D | statusbar.cpp | 190 void DrawWeaponAmmo(int x, int y, int wpn) in DrawWeaponAmmo() argument 198 if (!player->weapons[wpn].maxammo) in DrawWeaponAmmo() 206 DrawNumber(x, y, player->weapons[wpn].ammo); in DrawWeaponAmmo() 207 DrawNumber(x, y+8, player->weapons[wpn].maxammo); in DrawWeaponAmmo() 211 void DrawWeaponLevel(int x, int y, int wpn) in DrawWeaponLevel() argument 213 int level = (player->weapons[wpn].level + 1); in DrawWeaponLevel() 214 if (wpn == WPN_NONE) level = 0; in DrawWeaponLevel()
|
/dports/games/nxengine/nxengine-evo-2.6.5-1/src/ |
H A D | playerstats.cpp | 172 void GetWeapon(int wpn, int ammo) in GetWeapon() argument 174 if (!player->weapons[wpn].hasWeapon) in GetWeapon() 178 player->weapons[wpn].level = 0; in GetWeapon() 183 player->wpnOrder.push_back(wpn); in GetWeapon() 190 AddAmmo(wpn, ammo); in GetWeapon() 195 void LoseWeapon(int wpn) in LoseWeapon() argument 201 if (player->wpnOrder[idx] == wpn) in LoseWeapon() 259 void AddAmmo(int wpn, int ammo) in AddAmmo() argument 261 player->weapons[wpn].ammo += ammo; in AddAmmo() 262 if (player->weapons[wpn].ammo > player->weapons[wpn].maxammo) in AddAmmo() [all …]
|
H A D | playerstats.h | 11 void GetWeapon(int wpn, int ammo); 12 void LoseWeapon(int wpn); 14 void AddAmmo(int wpn, int ammo);
|
/dports/games/wesnoth/wesnoth-1.14.17/data/ai/lua/ |
H A D | patrol.lua | 13 local wpn = 1 --WayPoint Number - we have to remember which waypoint we are heading to 16 wpn = wpn + 1 28 if (x == wp[wpn].x and y == wp[wpn].y) then 29 … wpn = wpn % wpcount + 1 -- advance by one waypoint(this construct loops in range [1, wpcount]) 31 ai.move_full(unit, wp[wpn].x, wp[wpn].y) -- @note: should we change this to ai.move()?
|
/dports/games/openlierox/OpenLieroX/src/common/ |
H A D | CGameScript.cpp | 109 weapon_t *wpn = Weapons; in Save() local 153 if(wpn->UseSound) in Save() 163 if(wpn->UseSound) in Save() 529 weapon_t *wpn; in Load() local 531 wpn = &Weapons[n]; in Load() 533 wpn->ID = n; in Load() 595 if(wpn->UseSound) in Load() 604 if(wpn->UseSound) in Load() 612 wpn->smpSample = LoadGSSample(dir,wpn->SndFilename); in Load() 619 wpn->ROF /= 1000.0f; in Load() [all …]
|
/dports/games/xonotic/Xonotic/source/qcsrc/server/weapons/ |
H A D | spawning.qc | 27 Weapon wpn = e; 68 wpn = WEP_Null; 72 wpn = it; 77 if (wpn == WEP_Null) 99 if (wpn.spawnflags & WEP_FLAG_SUPERWEAPON) 104 if (!this.(wpn.ammo_field)) 106 switch (wpn.ammo_field) 118 if (wpn.items) 122 if (wpn.items & j) 136 GameItem def = wpn.m_pickup; [all …]
|
H A D | selection.qc | 19 WriteByte(MSG_ONE, wpn); 52 if (wpn == WEP_HOOK && !((this.weapons | weaponsInMap) & WepSet_FromWeapon(wpn))) 58 if (wpn == WEP_Null) 66 if (this.weapons & WepSet_FromWeapon(wpn)) 76 f = wpn.wr_checkammo1(wpn, this, weaponentity) + wpn.wr_checkammo2(wpn, this, weaponentity); 79 if(wpn == WEP_MINE_LAYER) 92 Send_WeaponComplain (this, wpn.m_id, 0); 103 if (weaponsInMap & WepSet_FromWeapon(wpn)) 105 Send_WeaponComplain(this, wpn.m_id, 1); 107 Weapon_whereis(wpn, this); [all …]
|
/dports/games/dungeoncrawl/dc400b26-src/source/ |
H A D | it_use3.cc | 57 const int wpn = you.equip[EQ_WEAPON]; in special_wielded() local 120 do_uncurse_item( you.inv[wpn] ); in special_wielded() 128 if (you.inv[wpn].plus < -4) in special_wielded() 129 you.inv[wpn].plus = -4; in special_wielded() 131 you.inv[wpn].plus = 16; in special_wielded() 133 if (you.inv[wpn].plus2 < -4) in special_wielded() 134 you.inv[wpn].plus2 = -4; in special_wielded() 136 you.inv[wpn].plus2 = 16; in special_wielded() 165 you.inv[wpn].plus2 = you.inv[wpn].plus; in special_wielded() 174 you.inv[wpn].plus2 = you.inv[wpn].plus; in special_wielded() [all …]
|
H A D | spells3.cc | 431 const int wpn = you.equip[EQ_WEAPON]; in dancing_weapon() local 434 if (wpn == -1 in dancing_weapon() 435 || you.inv[wpn].base_type != OBJ_WEAPONS in dancing_weapon() 436 || launches_things( you.inv[wpn].sub_type ) in dancing_weapon() 437 || is_fixed_artefact( you.inv[wpn] )) in dancing_weapon() 448 if (item_cursed( you.inv[wpn] ) || force_hostile) in dancing_weapon() 463 unwield_item( wpn ); // remove wield effects in dancing_weapon() 466 mitm[i] = you.inv[wpn]; in dancing_weapon() 472 in_name( wpn, DESC_CAP_YOUR, str_pass ); in dancing_weapon() 477 you.inv[ wpn ].quantity = 0; in dancing_weapon()
|
H A D | makefile.lnx | 92 acr.o: view.h wpn-misc.h 118 command.o: wpn-misc.h 184 files.o: stuff.h tags.h wpn-misc.h 234 item_use.o: wpn-misc.h 383 skills2.o: wpn-misc.h view.h 398 spells1.o: stuff.h view.h wpn-misc.h 405 spells2.o: view.h wpn-misc.h 468 wpn-misc.o: AppHdr.h libutil.h wpn-misc.h externs.h 469 wpn-misc.o: defines.h 471 wpn-misc.o: debug.h [all …]
|
/dports/games/scummvm/scummvm-2.5.1/engines/ultima/ultima8/world/actors/ |
H A D | auto_firer_process.cpp | 54 const Item *wpn = getItem(weaponno); in run() local 55 if (wpn && wpn->getShape() == 0x38d && wpn->getShapeInfo()->_weaponInfo) { in run() 56 const WeaponInfo *info = wpn->getShapeInfo()->_weaponInfo; in run() 59 shotsleft = wpn->getQuality(); in run()
|
H A D | cru_avatar_mover_process.cpp | 524 Item *wpn = getItem(avatar->getActiveWeapon()); in tryAttack() local 525 if (!wpn || !wpn->getShapeInfo() || !wpn->getShapeInfo()->_weaponInfo) in tryAttack() 537 const WeaponInfo *wpninfo = wpn->getShapeInfo()->_weaponInfo; in tryAttack() 549 shotsleft = wpn->getQuality(); in tryAttack() 561 if (wpn->getShape() == 0x332) in tryAttack() 564 wpn->setQuality(wpninfo->_clipSize); in tryAttack() 584 if (wpn->getShape() == 0x332 && !avatar->isKneeling() && !_SGA1Loaded) { in tryAttack() 599 if (wpn->getShape() == 0x332) in tryAttack() 604 wpn->setQuality(shotsleft - 1); in tryAttack()
|
/dports/games/stonesoup/crawl-0.27.1/crawl-ref/source/ |
H A D | ng-restr.cc | 81 char_choice_restriction weapon_restriction(weapon_type wpn, in weapon_restriction() argument 89 if (species::mutation_level(ng.species, MUT_NO_GRASPING) && wpn != WPN_UNARMED) in weapon_restriction() 95 && ng.job == JOB_FIGHTER && wpn == WPN_RAPIER) in weapon_restriction() 100 if (wpn == WPN_QUARTERSTAFF && ng.job != JOB_GLADIATOR in weapon_restriction() 109 if (wpn == WPN_THROWN) in weapon_restriction() 115 if (species::recommends_weapon(ng.species, wpn)) in weapon_restriction()
|
H A D | god-blessing.cc | 88 static bool _upgrade_orc_weapon(monster* mon, item_def& wpn) in _upgrade_orc_weapon() argument 90 const int old_weapon_type = wpn.sub_type; in _upgrade_orc_weapon() 96 wpn.sub_type = _upgrade_weapon_type(wpn.sub_type, in _upgrade_orc_weapon() 100 return wpn.sub_type != old_weapon_type; in _upgrade_orc_weapon() 200 item_def& wpn = *wpn_ptr; in _beogh_bless_melee_weapon() local 203 if (!is_artefact(wpn) in _beogh_bless_melee_weapon() 205 && _upgrade_orc_weapon(mon, wpn)) in _beogh_bless_melee_weapon() 210 if (!x_chance_in_y(wpn.plus, MAX_WPN_ENCHANT) in _beogh_bless_melee_weapon() 211 && enchant_weapon(wpn, true)) in _beogh_bless_melee_weapon() 213 set_ident_flags(wpn, ISFLAG_KNOW_PLUSES); in _beogh_bless_melee_weapon() [all …]
|
H A D | item-use.cc | 2423 end_weapon_brand(wpn); in _rebrand_weapon() 2433 if (is_range_weapon(wpn)) in _rebrand_weapon() 2460 convert2bad(wpn); in _rebrand_weapon() 2474 _rebrand_weapon(wpn); in _brand_weapon() 2479 switch (get_weapon_brand(wpn)) in _brand_weapon() 2543 item_set_appearance(wpn); in _brand_weapon() 2621 string iname = _item_name(wpn); in enchant_weapon() 2623 if (is_weapon(wpn) in enchant_weapon() 2624 && !is_artefact(wpn) in enchant_weapon() 2626 && wpn.plus < MAX_WPN_ENCHANT) in enchant_weapon() [all …]
|
/dports/games/openlierox/OpenLieroX/src/client/ |
H A D | OLXG15.cpp | 222 wpnslot_t *wpn = worm->getWeapon(slotID); in updateWeapon() local 225 if (!wpn->Weapon) in updateWeapon() 227 if (Weapons[slotID].name != wpn->Weapon->Name) in updateWeapon() 229 Weapons[slotID].name = wpn->Weapon->Name; in updateWeapon() 233 if (Weapons[slotID].charge != (int)(wpn->Charge * 100)) in updateWeapon() 235 Weapons[slotID].charge = (int)(wpn->Charge * 100); in updateWeapon() 239 if (Weapons[slotID].reloading != wpn->Reloading) in updateWeapon() 241 Weapons[slotID].reloading = wpn->Reloading; in updateWeapon()
|
H A D | CClient_Game.cpp | 992 if(wpn->Type == WPN_BEAM) { in ProcessShot() 997 if(wpn->Proj.Proj == NULL) { in ProcessShot() 1004 if(wpn->UseSound) { in ProcessShot() 1024 wpn->Proj.apply(shot, fSpawnTime); in ProcessShot() 1075 for(int i=0; i<wpn->Bm.Length; ++i) { in ProcessShot_Beam() 1077 int newWidth = int(float(wpn->Bm.InitWidth) + wpn->Bm.WidthIncrease * i); in ProcessShot_Beam() 1100 if (wpn->Bm.Damage != -1) { in ProcessShot_Beam() 1119 if(wpn->Bm.Damage != -1) { in ProcessShot_Beam() 1121 int damage = wpn->Bm.Damage; in ProcessShot_Beam() 1122 …if(wpn->Bm.DistributeDamageOverWidth) { damage /= width; if(damage == 0) damage = SIGN(wpn->Bm.Dam… in ProcessShot_Beam() [all …]
|
/dports/games/valyriatear/ValyriaTear-1.1.0/src/modes/menu/ |
H A D | menu_mode.cpp | 388 std::shared_ptr<vt_global::GlobalWeapon> wpn = nullptr; in UpdateEquipmentInfo() local 391 wpn = _character ? _character->GetEquippedWeapon() : nullptr; in UpdateEquipmentInfo() 393 wpn = std::dynamic_pointer_cast<vt_global::GlobalWeapon>(_object); in UpdateEquipmentInfo() 395 _spirit_number = wpn ? wpn->GetSpiritSlots().size() : 0; in UpdateEquipmentInfo() 396 equip_phys_stat = wpn ? wpn->GetPhysicalAttack() : 0; in UpdateEquipmentInfo() 397 equip_mag_stat = wpn ? wpn->GetMagicalAttack() : 0; in UpdateEquipmentInfo() 399 const std::vector<uint32_t>& equip_skills = wpn->GetEquipmentSkills(); in UpdateEquipmentInfo() 479 std::shared_ptr<vt_global::GlobalWeapon> wpn = _character->GetEquippedWeapon(); in UpdateEquipmentInfo() local 483 char_phys_stat = (wpn ? wpn->GetPhysicalAttack() : 0); in UpdateEquipmentInfo() 484 char_mag_stat = (wpn ? wpn->GetMagicalAttack() : 0); in UpdateEquipmentInfo()
|
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.platform.ui/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/ |
H A D | PreferencePageRegistryReader.java | 120 WorkbenchPreferenceNode wpn = (WorkbenchPreferenceNode) categoryNode.getNode(); in invalidCategoryNodeMessage() local 121 …return "Invalid preference category path: " + wpn.getCategory() + " (bundle: " + wpn.getPluginId()… in invalidCategoryNodeMessage() 122 + wpn.getLocalId() + ")"; //$NON-NLS-1$ in invalidCategoryNodeMessage()
|
/dports/games/sdb/sdb-1.0.2/src/ |
H A D | objects.cpp | 1321 wpn[currWeapon].draw(); in draw() 1391 wpn[currWeapon].update(); in update() 1401 wpn[0].update(); in update() 1404 wpn[1].update(); in update() 1475 if (wpn[currWeapon].Ready() && !throwGrenade) in update() 1532 wpn[WPN_GRENADE].releaseTrigger(0, 0, 0, 0); in update() 1552 wpn[currWeapon].reload(); in update() 1578 wpn[0].releaseTrigger(0,0,0,0); in update() 1581 wpn[0].reload(); in update() 1594 wpn[1].releaseTrigger(0,0,0,0); in update() [all …]
|
/dports/games/valyriatear/ValyriaTear-1.1.0/src/modes/menu/menu_windows/ |
H A D | menu_equip_window.cpp | 286 … std::shared_ptr<GlobalWeapon> wpn = inventory_handler.GetInventoryWeapons().at(inventory_id); in _Equip() local 287 if(wpn->GetUsableBy() & _character->GetID()) { in _Equip() 288 uint32_t weapon_id = wpn->GetID(); in _Equip() 415 std::shared_ptr<GlobalWeapon> wpn = _character->GetEquippedWeapon(); in _UpdateEquipList() local 416 i.Load(wpn ? wpn->GetIconImage().GetFilename() in _UpdateEquipList() 437 options.push_back(wpn ? wpn->GetName() : UTranslate("No weapon")); in _UpdateEquipList()
|
/dports/games/fs2open/fs2open.github.com-release_21_4_1/code/scripting/api/objs/ |
H A D | ship_bank.h | 21 ship_banktype_h(object *objp_in, ship_weapon *wpn, int in_type); 32 ship_bank_h(object *objp_in, ship_weapon *wpn, int in_type, int in_bank);
|
/dports/games/xoids/xoids-1.5/ |
H A D | oids.c | 228 …if (Slrb->wpn != GUN && Slrb->shots < Weapon[Slrb->wpn].max_shots && !shot_clock) create_new_shot(… in main() 322 P->wpn = GUN; in main() 323 if (P->next) P->next->wpn = GUN; in main() 393 shot_clock = Weapon[player->wpn].inhibit_time; in check_input() 443 shot_clock = Weapon[player->wpn].inhibit_time; in check_input() 511 obj->wpn = GUN; 1367 if (obj->wpn != LASER) erase_shot(obj, i); 1487 obj->S[i]->clock = Weapon[obj->wpn].shot_life; 1498 …obj->S[i]->pts_x[j] = Weapon[obj->wpn].pts_x[j] * cos_table[obj->curr_map] - Weapon[obj->wpn].pts_… 1514 if (obj->wpn != LASER) { [all …]
|