AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to know the emplacement of the bomb entity ? (https://forums.alliedmods.net/showthread.php?t=27078)

sbeex 04-14-2006 13:53

How to know the emplacement of the bomb entity ?
 
Hello (sorry if my english is not perfect I speak french)

I began a plugin and I need to know the emplacement in x,y and z of the bomb entity.

(I know i can do a .cfg file for each map but i want it find the emplacement automatically)

Thank you to help me :wink:

VEN 04-14-2006 14:45

Look here: http://forums.alliedmods.net/showthread.php?t=24897

But note: there are no 100% solution.
You can be fairly sure about origin of the bomb site only if map contains only one "func_bomb_target" entity.

sbeex 04-14-2006 18:13

re
 
thx I will try it :P

VEN 04-15-2006 15:01

Here are also geometric way. It's more precise.
Basically you have to scan through all bomb taget entities and check it's distance. Then combine closest entities to groups (bomb targets).

That way will not work only for maps which was created without "logic" (i.e. bombsite A contain bombsite B etc).

If you decide to use that way you need get_box_distance function: http://forums.alliedmods.net/showthread.php?t=24758


All times are GMT -4. The time now is 05:14.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.