Home
last modified time | relevance | path

Searched refs:distToPlayer (Results 1 – 7 of 7) sorted by relevance

/dports/games/frogatto/frogatto-1.3.1/modules/frogatto/data/objects/props/utilities/
H A Dtorch_glow.cfg17 functions: "def distToPlayer(object_type obj, object_type plr) (abs(obj.x - plr.x)+abs(obj.y - plr.…
22distToPlayer(self, level.player) < 100 and tmp.gutter < (((100 - distToPlayer(self, level.player))…
/dports/games/frogatto/frogatto-1.3.1/modules/frogatto/data/objects/props/decor/
H A Dcandle_glow.cfg5 functions: "def distToPlayer(object_type obj, object_type plr) (abs(obj.x - plr.x)+abs(obj.y - plr.…
22distToPlayer(self, level.player) < 100 and tmp.gutter < (((100 - distToPlayer(self, level.player))…
/dports/games/sdb/sdb-1.0.2/src/
H A Dobjects.cpp1140 distToPlayer = dist(pos, PLAYER_OBJECT->Pos()); in doDeath()
1141 if (distToPlayer < 20) in doDeath()
1142 setScreenQuake(lerp(5, 0, distToPlayer/20)); in doDeath()
1155 if (distToPlayer < 20) in doDeath()
1156 setScreenQuake(lerp(5, 0, distToPlayer/20)); in doDeath()
1178 if (distToPlayer < 20) in doDeath()
1179 setScreenQuake(lerp(5, 0, distToPlayer/20)); in doDeath()
1194 if (distToPlayer < 80) in doDeath()
1195 setScreenQuake(lerp(5, 0, distToPlayer/80)); in doDeath()
1227 if (distToPlayer < 80) in doDeath()
[all …]
/dports/games/barony/Barony-3.3.7/src/
H A Dmonster_lichfire.cpp384 real_t distToPlayer = 0; in lichFireAnimate() local
390 if ( !distToPlayer ) in lichFireAnimate()
392distToPlayer = sqrt(pow(my->x - players[c]->entity->x, 2) + pow(my->y - players[c]->entity->y, 2)); in lichFireAnimate()
398 if ( newDistToPlayer < distToPlayer ) in lichFireAnimate()
400 distToPlayer = newDistToPlayer; in lichFireAnimate()
H A Dmonster_lichice.cpp390 real_t distToPlayer = 0; in lichIceAnimate() local
396 if ( !distToPlayer ) in lichIceAnimate()
398distToPlayer = sqrt(pow(my->x - players[c]->entity->x, 2) + pow(my->y - players[c]->entity->y, 2)); in lichIceAnimate()
404 if ( newDistToPlayer < distToPlayer ) in lichIceAnimate()
406 distToPlayer = newDistToPlayer; in lichIceAnimate()
H A Dactmonster.cpp3611 double distToPlayer = 0; in actMonster() local
3628 if (!distToPlayer) in actMonster()
3638 distToPlayer = newDistToPlayer; in actMonster()
5031 double distToPlayer = 0; in actMonster() local
5048 if (!distToPlayer) in actMonster()
5058 distToPlayer = newDistToPlayer; in actMonster()
6844 real_t distToPlayer = 0.f; in actMonster() local
6850 if ( !distToPlayer ) in actMonster()
6860 distToPlayer = newDistToPlayer; in actMonster()
6975 real_t distToPlayer = 0.f; in actMonster() local
[all …]
/dports/games/emptyepsilon/EmptyEpsilon-EE-2021.06.23/scripts/
H A Dscenario_57_shoreline.lua4561 local distToPlayer = 999999
4571 if curDist < distToPlayer then
4572 distToPlayer = curDist