/dports/games/cdogs-sdl/cdogs-sdl-1.0.1/src/cdogs/ |
H A D | ai_coop.c | 114 TActor *actor, const TActor *closestPlayer, 234 const TActor *closestPlayer = NULL; in AICoopGetCmdNormal() local 248 closestPlayer = p; in AICoopGetCmdNormal() 263 if (closestPlayer && closestPlayer->action == ACTORACTION_EXITING) in AICoopGetCmdNormal() 310 if (closestPlayer) in AICoopGetCmdNormal() 400 TActor *actor, const TActor *closestPlayer, in TryCompleteNearbyObjective() argument 461 exitPos, actor->Pos, closestPlayer, in TryCompleteNearbyObjective() 514 const TActor *closestPlayer); 574 (closestPlayer != NULL && ActorUsesAmmo(closestPlayer, ammoId) && in FindObjectivesSortedByDistance() 704 const TActor *closestPlayer) in OnClosestPickupGun() argument [all …]
|
H A D | actor_placement.c | 150 const TActor *closestPlayer = AIGetClosestPlayer(pos); in TryPlaceOneAwayFromPlayers() local 151 if ((closestPlayer == NULL || CHEBYSHEV_DISTANCE( in TryPlaceOneAwayFromPlayers() 152 pos.x, pos.y, closestPlayer->Pos.x, in TryPlaceOneAwayFromPlayers() 153 closestPlayer->Pos.y) >= 150) && in TryPlaceOneAwayFromPlayers()
|
H A D | powerup.c | 100 const TActor *closestPlayer = AIGetClosestPlayer(v); in TryPlacePickup() local 102 (!closestPlayer || in TryPlacePickup() 103 svec2_distance_squared(v, closestPlayer->Pos) >= SQUARED(150))) in TryPlacePickup()
|
H A D | ai_utils.c | 64 TActor *closestPlayer = NULL; in AIGetClosestPlayer() local 72 if (!closestPlayer || distance2 < minDistance2) in AIGetClosestPlayer() 74 closestPlayer = p; in AIGetClosestPlayer() 78 return closestPlayer; in AIGetClosestPlayer() 174 TActor *closestPlayer = AIGetClosestPlayer(pos); in AIGetClosestPlayerPos() local 175 if (closestPlayer) in AIGetClosestPlayerPos() 177 return closestPlayer->Pos; in AIGetClosestPlayerPos()
|
H A D | ai.c | 95 const TActor *closestPlayer = AIGetClosestPlayer(pos); in IsCloseToPlayer() local 97 return closestPlayer && in IsCloseToPlayer() 98 svec2_distance_squared(pos, closestPlayer->Pos) < distance2; in IsCloseToPlayer()
|
/dports/games/toycars/toycars-0.3.10/toycars/src/ |
H A D | RobotHotPotatoPlayer.cpp | 77 Player* closestPlayer = NULL; in integrateKeys() local 85 closestPlayer = *i; in integrateKeys() 88 assert(closestPlayer != NULL); in integrateKeys() 90 …if (minDist + (car.getVelocity_wc() - closestPlayer->car.getVelocity_wc())*(car.getLocation_wc() -… in integrateKeys() 98 catchPlayer(closestPlayer, dt, fastestRoute); in integrateKeys() 104 targetPlayer = closestPlayer; in integrateKeys()
|
/dports/games/emptyepsilon/EmptyEpsilon-EE-2021.06.23/scripts/ |
H A D | scenario_54_PatrolDuty.lua | 134 local closestPlayer = nil 140 closestPlayer = p 145 return closestPlayer 7005 closestPlayer:removeCustom(playMsgFromAsimovButton) 7006 closestPlayer:removeCustom(playMsgFromAsimovButtonOps) 7007 closestPlayer = nil 7027 closestPlayer = closestPlayerTo(stationAsimov) 7028 if closestPlayer ~= nil then 8197 if closestPlayer ~= nil then 8200 closestPlayer:removeCustom(playMsgFromAsimovButton) [all …]
|
H A D | scenario_57_shoreline.lua | 4562 local closestPlayer = nil 4573 closestPlayer = p8 4578 closestPlayer:addToShipLog(lMsg, "Red") 4783 local closestPlayer = nil 4793 closestPlayer = p10 4800 closestPlayer:addToShipLog(hMsg,"Magenta") 5683 local closestPlayer = nil 5694 closestPlayer = p41 5699 if quantumArtHint == nil and closestPlayer ~= nil then 5702 …closestPlayer:addToShipLog("Solo's research may have application for ship shield systems","Magenta… [all …]
|
H A D | scenario_56_carrierTurret.lua | 5679 closestPlayer = nil 5685 closestPlayer = p 5690 return closestPlayer
|
H A D | scenario_49_allies.lua | 5143 local closestPlayer = nil 5149 closestPlayer = p 5154 return closestPlayer
|
H A D | scenario_55_defenderHunter.lua | 9883 closestPlayer = nil 9889 closestPlayer = p 9894 return closestPlayer
|
H A D | scenario_48_visitors.lua | 8009 local closestPlayer = nil 8015 closestPlayer = p 8020 return closestPlayer
|
H A D | scenario_59_border.lua | 10293 local closestPlayer = nil 10299 closestPlayer = p 10304 return closestPlayer
|
/dports/games/NBlood/NBlood-a1689a4/source/duke3d/src/ |
H A D | sector.cpp | 240 int closestPlayer = 0; in A_FindPlayer() local 250 closestPlayer = j; in A_FindPlayer() 258 return closestPlayer; in A_FindPlayer()
|
H A D | player.cpp | 3907 int closestPlayer = playerNum; in P_FindOtherPlayer() local 3920 closestPlayer = otherPlayer; in P_FindOtherPlayer() 3928 return closestPlayer; in P_FindOtherPlayer()
|
/dports/games/NBlood/NBlood-a1689a4/source/rr/src/ |
H A D | sector.cpp | 372 int closestPlayer = 0; in A_FindPlayer() local 382 closestPlayer = j; in A_FindPlayer() 390 return closestPlayer; in A_FindPlayer()
|
H A D | player.cpp | 5438 int closestPlayer = playerNum; in P_FindOtherPlayer() local 5451 closestPlayer = otherPlayer; in P_FindOtherPlayer() 5459 return closestPlayer; in P_FindOtherPlayer()
|