Home
last modified time | relevance | path

Searched refs:closestPlayer (Results 1 – 17 of 17) sorted by relevance

/dports/games/cdogs-sdl/cdogs-sdl-1.0.1/src/cdogs/
H A Dai_coop.c114 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 Dactor_placement.c150 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 Dpowerup.c100 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 Dai_utils.c64 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 Dai.c95 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 DRobotHotPotatoPlayer.cpp77 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 Dscenario_54_PatrolDuty.lua134 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 Dscenario_57_shoreline.lua4562 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
5702closestPlayer:addToShipLog("Solo's research may have application for ship shield systems","Magenta…
[all …]
H A Dscenario_56_carrierTurret.lua5679 closestPlayer = nil
5685 closestPlayer = p
5690 return closestPlayer
H A Dscenario_49_allies.lua5143 local closestPlayer = nil
5149 closestPlayer = p
5154 return closestPlayer
H A Dscenario_55_defenderHunter.lua9883 closestPlayer = nil
9889 closestPlayer = p
9894 return closestPlayer
H A Dscenario_48_visitors.lua8009 local closestPlayer = nil
8015 closestPlayer = p
8020 return closestPlayer
H A Dscenario_59_border.lua10293 local closestPlayer = nil
10299 closestPlayer = p
10304 return closestPlayer
/dports/games/NBlood/NBlood-a1689a4/source/duke3d/src/
H A Dsector.cpp240 int closestPlayer = 0; in A_FindPlayer() local
250 closestPlayer = j; in A_FindPlayer()
258 return closestPlayer; in A_FindPlayer()
H A Dplayer.cpp3907 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 Dsector.cpp372 int closestPlayer = 0; in A_FindPlayer() local
382 closestPlayer = j; in A_FindPlayer()
390 return closestPlayer; in A_FindPlayer()
H A Dplayer.cpp5438 int closestPlayer = playerNum; in P_FindOtherPlayer() local
5451 closestPlayer = otherPlayer; in P_FindOtherPlayer()
5459 return closestPlayer; in P_FindOtherPlayer()