I took a look. I'm not sure where it is if it is in there at all. :\ I'll take a look again but if you find it please tell me D: It would be very appreciated.
EDIT:
Quote:
// Is player at the bomb target (func_bomb_target)?
// Note: there are no good way to detect if player is at the info_bomb_target
new target = -1, class[] = "func_bomb_target", bool:is_inside = false
while ((target = fm_find_ent_by_class(target, class))) {
if (!fm_boxents_distance(index, target)) {
is_inside = true
break
}
}
if (is_inside)
// Is map contain bomb targets?
if (fm_find_ent_by_class(-1, "func_bomb_target") || fm_find_ent_by_class(-1, "info_bomb_target"))
// How to remove bomb targets?
new target = -1, classname[] = "func_bomb_target"
while ((target = fm_find_ent_by_class(target, classname)))
fm_remove_entity(target)
classname = "info_bomb_target"
while ((target = fm_find_ent_by_class(target, classname)))
fm_remove_entity(target)
|
Is it possible that if there is no bombsite to still set the player as "is_inside = true" and allowing them to plant the bomb?