/dports/games/cataclysm-dda-tiles/Cataclysm-DDA-0.F/tests/ |
H A D | mondefense_test.cpp | 16 int prev_hp = attacker.get_hp(); in test_zapback() 29 test_zapback( attacker, true ); 36 attacker.wield( rock ); 37 test_zapback( attacker, false ); 45 attacker.wield( knuckle_nail ); 46 test_zapback( attacker, false ); 53 attacker.wield( pike ); 54 test_zapback( attacker, false ); 61 attacker.wield( gun ); 88 test_zapback( attacker, true ); [all …]
|
/dports/games/cataclysm-dda/Cataclysm-DDA-0.F/tests/ |
H A D | mondefense_test.cpp | 16 int prev_hp = attacker.get_hp(); in test_zapback() 29 test_zapback( attacker, true ); 36 attacker.wield( rock ); 37 test_zapback( attacker, false ); 45 attacker.wield( knuckle_nail ); 46 test_zapback( attacker, false ); 53 attacker.wield( pike ); 54 test_zapback( attacker, false ); 61 attacker.wield( gun ); 88 test_zapback( attacker, true ); [all …]
|
/dports/games/quake2-matrix/matrix/MatrixFixSource/ |
H A D | g_combat.c | 78 targ->enemy = attacker; in Killed() 107 if (attacker->client && level.framenum < attacker->LastKill + 50) in Killed() 109 if(attacker != targ) in Killed() 117 if(attacker->client) in Killed() 122 if(attacker->KillStreak && attacker->client && killstreakmessage->value) in Killed() 329 if (!(attacker->client) && !(attacker->svflags & SVF_MONSTER)) in M_ReactToDamage() 332 if (attacker == targ || attacker == targ->enemy) in M_ReactToDamage() 339 if (attacker->client || (attacker->monsterinfo.aiflags & AI_GOOD_GUY)) in M_ReactToDamage() 346 if (attacker->client) in M_ReactToDamage() 392 else if (attacker->enemy && attacker->enemy != targ) in M_ReactToDamage() [all …]
|
/dports/games/stonesoup/crawl-0.27.1/crawl-ref/source/ |
H A D | melee-attack.cc | 98 || attacker->is_monster() && attacker->mid == MID_PLAYER)) in handle_phase_attempted() 202 if (attacker->is_player()) in handle_phase_attempted() 266 else if (attacker == defender && attacker->confused()) in handle_phase_attempted() 336 && attacker->alive() && defender->can_see(*attacker) in handle_phase_dodged() 384 if (attacker->is_player() in apply_black_mark_effects() 642 if (attacker->alive() in handle_phase_end() 682 if (attacker != defender && attacker->is_monster() in attack() 710 if (!attacker->alive()) in attack() 733 if (attacker->is_player() && attacker != defender) in attack() 2376 attacker, in mons_do_napalm() [all …]
|
H A D | art-func.h | 151 if (you.can_see(*attacker)) in _CEREBOV_melee_effects() 175 if (attacker->is_player()) in _CURSES_melee_effects() 434 if (attacker->is_player()) in _SINGING_SWORD_melee_effects() 440 if (silenced(attacker->pos())) in _SINGING_SWORD_melee_effects() 504 torment(attacker, TORMENT_SCEPTRE, attacker->pos()); in _TORMENT_melee_effects() 546 if (you.can_see(*attacker)) in _VARIABILITY_melee_effects() 564 if (attacker->is_player()) in _ZONGULDROK_melee_effects() 829 if (attacker->is_player()) in _PLUTONIUM_SWORD_melee_effects() 1011 if (you.can_see(*attacker)) in _ARC_BLADE_melee_effects() 1151 attacker, in _FLAMING_DEATH_melee_effects() [all …]
|
H A D | attack.cc | 81 if (attacker->is_player()) in handle_phase_blocked() 110 if (attacker->is_player()) in handle_phase_damaged() 183 if (attacker->is_player()) in calc_pre_roll_to_hit() 272 if (attacker->confused()) in post_roll_to_hit_modifiers() 316 if (attacker->is_player()) in calc_to_hit() 397 ASSERT(attacker); in init_attack() 537 defender->banish(attacker, attacker->name(DESC_PLAIN, true), in distortion_affects_defender() 558 return attacker; in _pain_weapon_user() 562 return attacker; in _pain_weapon_user() 566 return attacker; in _pain_weapon_user() [all …]
|
/dports/games/valyriatear/ValyriaTear-1.1.0/src/modes/battle/ |
H A D | battle_damage.cpp | 74 uint32_t RndPhysicalDamage(BattleActor* attacker, BattleTarget* target_actor) in RndPhysicalDamage() argument 95 uint32_t RndPhysicalDamage(BattleActor* attacker, BattleActor* target_actor) in RndPhysicalDamage() argument 97 return RndPhysicalDamage(attacker, target_actor, 0, 1.0f, -1); in RndPhysicalDamage() 100 uint32_t RndPhysicalDamage(BattleActor* attacker, BattleActor* target_actor, in RndPhysicalDamage() argument 103 return RndPhysicalDamage(attacker, target_actor, add_atk, 1.0f, -1); in RndPhysicalDamage() 106 uint32_t RndPhysicalDamage(BattleActor* attacker, BattleActor* target_actor, in RndPhysicalDamage() argument 109 return RndPhysicalDamage(attacker, target_actor, add_atk, mul_atk, -1); in RndPhysicalDamage() 115 if(attacker == nullptr) { in RndPhysicalDamage() 125 int32_t total_phys_atk = attacker->GetTotalPhysicalAttack() + add_atk; in RndPhysicalDamage() 157 return RndMagicalDamage(attacker, target_actor, element, 0, 1.0f, -1); in RndMagicalDamage() [all …]
|
/dports/games/tomenet/tomenet-4.6.0/src/server/ |
H A D | cmd5.c | 350 sprintf(p_ptr->attacker, " casts a nether bolt for"); in do_cmd_ghost_power_aux() 354 sprintf(p_ptr->attacker, " casts a nether ball for"); in do_cmd_ghost_power_aux() 802 sprintf(p_ptr->attacker, " fires a rocket for"); in do_mimic_power_aux() 811 sprintf(p_ptr->attacker, " fires an arrow for"); in do_mimic_power_aux() 819 sprintf(p_ptr->attacker, " fires a shot for"); in do_mimic_power_aux() 825 sprintf(p_ptr->attacker, " fires a bolt for"); in do_mimic_power_aux() 861 sprintf(p_ptr->attacker, " breathes gas for"); in do_mimic_power_aux() 1017 sprintf(p_ptr->attacker, " casts a water ball for"); in do_mimic_power_aux() 1055 sprintf(p_ptr->attacker, " invokes radiation for"); in do_mimic_power_aux() 1061 sprintf(p_ptr->attacker, " invokes raw chaos for"); in do_mimic_power_aux() [all …]
|
/dports/games/openclonk/openclonk-release-8.1-src/planet/Objects.ocd/Goals.ocd/Defense.ocd/System.ocd/System.ocg/ |
H A D | AttackTarget.c | 3 global func GetRandomAttackTarget(object attacker) in GetRandomAttackTarget() argument 6 var target = GameCall("GiveRandomAttackTarget", attacker); in GetRandomAttackTarget() 10 var controller = attacker->GetController(); in GetRandomAttackTarget() 11 …for (var target in attacker->FindObjects(Find_Category(C4D_Structure), Find_Hostile(controller), a… in GetRandomAttackTarget() 12 if (target && PathFree(attacker->GetX(), attacker->GetY(), target->GetX(), target->GetY())) in GetRandomAttackTarget() 18 global func GetRandomSiegeTarget(object attacker) in GetRandomSiegeTarget() argument 21 var target = GameCall("GiveRandomSiegeTarget", attacker); in GetRandomSiegeTarget() 25 var controller = attacker->GetController(); in GetRandomSiegeTarget() 26 …for (var target in attacker->FindObjects(Find_Category(C4D_Structure), Find_Hostile(controller), a… in GetRandomSiegeTarget() 27 if (target && PathFree(attacker->GetX(), attacker->GetY(), target->GetX(), target->GetY())) in GetRandomSiegeTarget() [all …]
|
/dports/games/quake2-source/quake2-r0.16.2/src/ctf/ |
H A D | g_combat.c | 97 targ->enemy = attacker; in Killed() 109 targ->owner = attacker; in Killed() 298 if (!(attacker->client) && !(attacker->svflags & SVF_MONSTER)) in M_ReactToDamage() 301 if (attacker == targ || attacker == targ->enemy) in M_ReactToDamage() 308 if (attacker->client || (attacker->monsterinfo.aiflags & AI_GOOD_GUY)) in M_ReactToDamage() 315 if (attacker->client) in M_ReactToDamage() 323 targ->oldenemy = attacker; in M_ReactToDamage() 328 targ->enemy = attacker; in M_ReactToDamage() 346 targ->enemy = attacker; in M_ReactToDamage() 366 targ != attacker) in CheckTeamDamage() [all …]
|
/dports/games/q2p/Q2P-0.2-2006-12-31/ctf/ |
H A D | g_combat.c | 97 targ->enemy = attacker; in Killed() 109 targ->owner = attacker; in Killed() 297 if (!(attacker->client) && !(attacker->svflags & SVF_MONSTER)) in M_ReactToDamage() 300 if (attacker == targ || attacker == targ->enemy) in M_ReactToDamage() 307 if (attacker->client || (attacker->monsterinfo.aiflags & AI_GOOD_GUY)) in M_ReactToDamage() 314 if (attacker->client) in M_ReactToDamage() 322 targ->oldenemy = attacker; in M_ReactToDamage() 327 targ->enemy = attacker; in M_ReactToDamage() 345 targ->enemy = attacker; in M_ReactToDamage() 365 targ != attacker) in CheckTeamDamage() [all …]
|
/dports/games/quake2-ctf/quake2-r0.16.2/src/ctf/ |
H A D | g_combat.c | 97 targ->enemy = attacker; in Killed() 109 targ->owner = attacker; in Killed() 298 if (!(attacker->client) && !(attacker->svflags & SVF_MONSTER)) in M_ReactToDamage() 301 if (attacker == targ || attacker == targ->enemy) in M_ReactToDamage() 308 if (attacker->client || (attacker->monsterinfo.aiflags & AI_GOOD_GUY)) in M_ReactToDamage() 315 if (attacker->client) in M_ReactToDamage() 323 targ->oldenemy = attacker; in M_ReactToDamage() 328 targ->enemy = attacker; in M_ReactToDamage() 346 targ->enemy = attacker; in M_ReactToDamage() 366 targ != attacker) in CheckTeamDamage() [all …]
|
/dports/games/quake2lnx/quake2-r0.16.2/src/ctf/ |
H A D | g_combat.c | 97 targ->enemy = attacker; in Killed() 109 targ->owner = attacker; in Killed() 298 if (!(attacker->client) && !(attacker->svflags & SVF_MONSTER)) in M_ReactToDamage() 301 if (attacker == targ || attacker == targ->enemy) in M_ReactToDamage() 308 if (attacker->client || (attacker->monsterinfo.aiflags & AI_GOOD_GUY)) in M_ReactToDamage() 315 if (attacker->client) in M_ReactToDamage() 323 targ->oldenemy = attacker; in M_ReactToDamage() 328 targ->enemy = attacker; in M_ReactToDamage() 346 targ->enemy = attacker; in M_ReactToDamage() 366 targ != attacker) in CheckTeamDamage() [all …]
|
/dports/games/qudos/QuDos-0.40.1-src/src/mods/jabot/ |
H A D | g_combat.c | 97 targ->enemy = attacker; in Killed() 109 targ->owner = attacker; in Killed() 297 if (!(attacker->client) && !(attacker->svflags & SVF_MONSTER)) in M_ReactToDamage() 300 if (attacker == targ || attacker == targ->enemy) in M_ReactToDamage() 307 if (attacker->client || (attacker->monsterinfo.aiflags & AI_GOOD_GUY)) in M_ReactToDamage() 314 if (attacker->client) in M_ReactToDamage() 322 targ->oldenemy = attacker; in M_ReactToDamage() 327 targ->enemy = attacker; in M_ReactToDamage() 345 targ->enemy = attacker; in M_ReactToDamage() 365 targ != attacker) in CheckTeamDamage() [all …]
|
/dports/games/quetoo/quetoo-0.6.1/src/ctf/ |
H A D | g_combat.c | 90 targ->enemy = attacker; in Killed() 100 targ->owner = attacker; in Killed() 270 if(!(attacker->client) && !(attacker->svflags & SVF_MONSTER)) in M_ReactToDamage() 273 if(attacker == targ || attacker == targ->enemy) in M_ReactToDamage() 279 if(attacker->client ||(attacker->monsterinfo.aiflags & AI_GOOD_GUY)) in M_ReactToDamage() 286 if(attacker->client){ in M_ReactToDamage() 291 targ->oldenemy = attacker; in M_ReactToDamage() 296 targ->enemy = attacker; in M_ReactToDamage() 313 targ->enemy = attacker; in M_ReactToDamage() 331 targ != attacker) in CheckTeamDamage() [all …]
|
/dports/games/qudos/QuDos-0.40.1-src/src/mods/ctf/ |
H A D | g_combat.c | 97 targ->enemy = attacker; in Killed() 109 targ->owner = attacker; in Killed() 298 if (!(attacker->client) && !(attacker->svflags & SVF_MONSTER)) in M_ReactToDamage() 301 if (attacker == targ || attacker == targ->enemy) in M_ReactToDamage() 308 if (attacker->client || (attacker->monsterinfo.aiflags & AI_GOOD_GUY)) in M_ReactToDamage() 315 if (attacker->client) in M_ReactToDamage() 323 targ->oldenemy = attacker; in M_ReactToDamage() 328 targ->enemy = attacker; in M_ReactToDamage() 346 targ->enemy = attacker; in M_ReactToDamage() 366 targ != attacker) in CheckTeamDamage() [all …]
|
/dports/games/dungeoncrawl/dc400b26-src/source/ |
H A D | fight.cc | 1882 heads = attacker->number; in monster_attack() 1884 if (mons_friendly(attacker)) in monster_attack() 1895 attacker->hit_points = -1; in monster_attack() 1931 if (grd[attacker->x][attacker->y] == DNGN_SHALLOW_WATER in monster_attack() 1932 && !mons_flies( attacker ) in monster_attack() 2456 extraDamage = attacker->hit_dice + random2(attacker->hit_dice * 2); in monster_attack() 2929 attacker->hit_points = -1; in monsters_fight() 2940 if (grd[attacker->x][attacker->y] == DNGN_SHALLOW_WATER in monsters_fight() 3314 specdam = attacker->hit_dice + random2(attacker->hit_dice * 2); in monsters_fight() 3318 specdam = random2(attacker->hit_dice * 3) + (attacker->hit_dice * 2); in monsters_fight() [all …]
|
/dports/games/quake2-lights/quake2-lights-1/lights/src/ |
H A D | g_combat.c | 97 targ->enemy = attacker; in Killed() 109 targ->owner = attacker; in Killed() 298 if (!(attacker->client) && !(attacker->svflags & SVF_MONSTER)) in M_ReactToDamage() 301 if (attacker == targ || attacker == targ->enemy) in M_ReactToDamage() 308 if (attacker->client || (attacker->monsterinfo.aiflags & AI_GOOD_GUY)) in M_ReactToDamage() 315 if (attacker->client) in M_ReactToDamage() 330 targ->enemy = attacker; in M_ReactToDamage() 347 targ->enemy = attacker; in M_ReactToDamage() 356 targ->enemy = attacker; in M_ReactToDamage() 361 else if (attacker->enemy && attacker->enemy != targ) in M_ReactToDamage() [all …]
|
/dports/games/starfighter/starfighter-2.4/src/ |
H A D | bullet.c | 45 if (attacker == &player) in bullet_add() 50 bullet->x = attacker->x + (attacker->image[0]->w / 2) - in bullet_add() 52 bullet->y = attacker->y + y; in bullet_add() 60 if (attacker->face == 0) in bullet_add() 75 if (attacker->face == 1) in bullet_add() 86 if (attacker->flags & FL_WEAPCO) in bullet_add() 91 bullet->owner = attacker->owner; in bullet_add() 141 tempX = (int)fabsf(attacker->target->x - attacker->x); in bullet_add() 142 tempY = (int)fabsf(attacker->target->y - attacker->y); in bullet_add() 153 tempX = (int)(attacker->target->x - attacker->x); in bullet_add() [all …]
|
/dports/games/quake2lnx/quake2-r0.16.2/src/game/ |
H A D | g_combat.c | 97 targ->enemy = attacker; in Killed() 109 targ->owner = attacker; in Killed() 298 if (!(attacker->client) && !(attacker->svflags & SVF_MONSTER)) in M_ReactToDamage() 301 if (attacker == targ || attacker == targ->enemy) in M_ReactToDamage() 308 if (attacker->client || (attacker->monsterinfo.aiflags & AI_GOOD_GUY)) in M_ReactToDamage() 315 if (attacker->client) in M_ReactToDamage() 330 targ->enemy = attacker; in M_ReactToDamage() 347 targ->enemy = attacker; in M_ReactToDamage() 356 targ->enemy = attacker; in M_ReactToDamage() 361 else if (attacker->enemy && attacker->enemy != targ) in M_ReactToDamage() [all …]
|
/dports/games/quake2max/Quake2maX_0.45-src_unix/game/ |
H A D | g_combat.c | 97 targ->enemy = attacker; in Killed() 109 targ->owner = attacker; in Killed() 297 if (!(attacker->client) && !(attacker->svflags & SVF_MONSTER)) in M_ReactToDamage() 300 if (attacker == targ || attacker == targ->enemy) in M_ReactToDamage() 307 if (attacker->client || (attacker->monsterinfo.aiflags & AI_GOOD_GUY)) in M_ReactToDamage() 314 if (attacker->client) in M_ReactToDamage() 329 targ->enemy = attacker; in M_ReactToDamage() 346 targ->enemy = attacker; in M_ReactToDamage() 355 targ->enemy = attacker; in M_ReactToDamage() 360 else if (attacker->enemy && attacker->enemy != targ) in M_ReactToDamage() [all …]
|
/dports/games/quake2-xatrix/quake2-xatrix-3.20/ |
H A D | g_combat.c | 78 targ->enemy = attacker; in Killed() 90 targ->owner = attacker; in Killed() 278 if (!(attacker->client) && !(attacker->svflags & SVF_MONSTER)) in M_ReactToDamage() 281 if (attacker == targ || attacker == targ->enemy) in M_ReactToDamage() 288 if (attacker->client || (attacker->monsterinfo.aiflags & AI_GOOD_GUY)) in M_ReactToDamage() 295 if (attacker->client) in M_ReactToDamage() 310 targ->enemy = attacker; in M_ReactToDamage() 327 targ->enemy = attacker; in M_ReactToDamage() 336 targ->enemy = attacker; in M_ReactToDamage() 341 else if (attacker->enemy && attacker->enemy != targ) in M_ReactToDamage() [all …]
|
/dports/games/quake2-data/quake2-data-3.20_3/ |
H A D | g_combat.c | 78 targ->enemy = attacker; in Killed() 90 targ->owner = attacker; in Killed() 278 if (!(attacker->client) && !(attacker->svflags & SVF_MONSTER)) in M_ReactToDamage() 281 if (attacker == targ || attacker == targ->enemy) in M_ReactToDamage() 288 if (attacker->client || (attacker->monsterinfo.aiflags & AI_GOOD_GUY)) in M_ReactToDamage() 295 if (attacker->client) in M_ReactToDamage() 310 targ->enemy = attacker; in M_ReactToDamage() 327 targ->enemy = attacker; in M_ReactToDamage() 336 targ->enemy = attacker; in M_ReactToDamage() 341 else if (attacker->enemy && attacker->enemy != targ) in M_ReactToDamage() [all …]
|
/dports/games/quake2-source/quake2-r0.16.2/src/game/ |
H A D | g_combat.c | 97 targ->enemy = attacker; in Killed() 109 targ->owner = attacker; in Killed() 298 if (!(attacker->client) && !(attacker->svflags & SVF_MONSTER)) in M_ReactToDamage() 301 if (attacker == targ || attacker == targ->enemy) in M_ReactToDamage() 308 if (attacker->client || (attacker->monsterinfo.aiflags & AI_GOOD_GUY)) in M_ReactToDamage() 315 if (attacker->client) in M_ReactToDamage() 330 targ->enemy = attacker; in M_ReactToDamage() 347 targ->enemy = attacker; in M_ReactToDamage() 356 targ->enemy = attacker; in M_ReactToDamage() 361 else if (attacker->enemy && attacker->enemy != targ) in M_ReactToDamage() [all …]
|
/dports/games/quetoo/quetoo-0.6.1/src/vanctf/ |
H A D | g_combat.c | 73 targ->enemy = attacker; in Killed() 83 targ->owner = attacker; in Killed() 254 if(!(attacker->client) && !(attacker->svflags & SVF_MONSTER)) in M_ReactToDamage() 257 if(attacker == targ || attacker == targ->enemy) in M_ReactToDamage() 263 if(attacker->client || (attacker->monsterinfo.aiflags & AI_GOOD_GUY)) in M_ReactToDamage() 270 if(attacker->client){ in M_ReactToDamage() 277 targ->oldenemy = attacker; in M_ReactToDamage() 282 targ->enemy = attacker; in M_ReactToDamage() 298 targ->enemy = attacker; in M_ReactToDamage() 306 targ->enemy = attacker; in M_ReactToDamage() [all …]
|