Raised This Month: $ Target: $400
 0% 

How to know the emplacement of the bomb entity ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sbeex
Member
Join Date: Sep 2005
Location: switzerland
Old 04-14-2006 , 13:53   How to know the emplacement of the bomb entity ?
Reply With Quote #1

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
sbeex is offline
Send a message via MSN to sbeex Send a message via Skype™ to sbeex
VEN
Veteran Member
Join Date: Jan 2005
Old 04-14-2006 , 14:45  
Reply With Quote #2

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.
VEN is offline
sbeex
Member
Join Date: Sep 2005
Location: switzerland
Old 04-14-2006 , 18:13   re
Reply With Quote #3

thx I will try it
sbeex is offline
Send a message via MSN to sbeex Send a message via Skype™ to sbeex
VEN
Veteran Member
Join Date: Jan 2005
Old 04-15-2006 , 15:01  
Reply With Quote #4

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
VEN is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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