Real bombsites count
Hello, how to to get real bombsite count?
I use this code: Code:
find_bomb_targets(Float:locations[BOMBSITES][3]) {de_torn L 11/19/2014 - 16:10:02: Founded plants: 4 - This map only have 2 plant A and B plant, how to fix this code? Any ideas? |
Re: Real bombsites count
func_bomb_target just define a touch zone. If this touch zone is not found the game will check 250 units around the info_bomb_target ent. My guess is that, on de_torn there are 4 touch zones defined but only 2 info_bomb_target ents and only 2 usable bomb sites.
|
Re: Real bombsites count
func_bomb_target is used to define a custom zone.
A bomb site can be defined either by func_bomb_target or info_bomb_target. In case of de_torn, for each bomb site, it uses func_bomb_target to define custom zones. Technically you have 2 bomb sites, but here just that one bomb site is split in 3 custom zones and other one custom zone. To fix that, you could check target of each entities. It should be different depending the bomb site. For example in de_torn, for site A, the three func_bomb_target have well the same target and for site B the other func_bomb_target has well a different one. |
Re: Real bombsites count
Quote:
I do not understand. How to? |
Re: Real bombsites count
Quote:
But there are some maps that might have bombsites very close to each others so be careful what's the distance you check for consider it 1 site only. |
Re: Real bombsites count
Quote:
|
Re: Real bombsites count
Quote:
Plugin init: PHP Code:
PHP Code:
L 11/21/2014 - 10:47:52: I: 0: squarebreak L 11/21/2014 - 10:47:52: A templebreak nem egyezik a squarebreak-el L 11/21/2014 - 10:47:52: I: 1: templebreak L 11/21/2014 - 10:47:52: A squarebreak nem egyezik a templebreak-el L 11/21/2014 - 10:47:52: I: 2: squarebreak L 11/21/2014 - 10:47:52: A squarebreak egyezik a squarebreak-el L 11/21/2014 - 10:47:52: Uj bombsitenum: 3 L 11/21/2014 - 10:47:52: I: 3: squarebreak Problem: g_bombsitenum value is 3, if have 2 bombsite the map. Who the problem? http://kepfeltoltes.hu/141121/proble...toltes.hu_.jpg |
Re: Real bombsites count
Code:
Code:
[test.amxx] Bomb site count = 2You will have to explain what you want to do exactly. It would make more sense, for example, to store each zone origin and associating each zone with a bomb site number (generally you have only 2 bomb site, but it can be more). |
Re: Real bombsites count
I want get bombsite cordinates.
|
Re: Real bombsites count
Ah misread. Anyway, tried with get_brush_entity_origin() and it works fine for me. So debug your code.
|
| All times are GMT -4. The time now is 17:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.