Quote:
Originally Posted by Cirovic
idk what that means, when i shoot throught teammate i cannot break object
|
When making map, I
updated that other post too, author can set the properties of the breakable so if it is blocking player, (and the game) it breaks. It is up to their imagination from there to create whatever after that, custom gibs etc. On older post I tested on
es_trinity with otherwise useless bots. We were able to just run into the blocked cave door and bulldoze it down at spawn point.
This will show the remaining HP when hitting the breakable.
Code:
#include amxmodx
#include engine
#include fakemeta
#include hamsandwich
#define charsmin -1
new break_ent;
public plugin_init()
{
register_plugin("breakable hitpoints","1.0","SPiNX");
break_ent = find_ent_by_class(charsmin, "func_breakable");
RegisterHamFromEntity(Ham_TakeDamage,break_ent,"Felt_attack", 0)
}
public Felt_attack(this_ent,idattacker)
{
new health = pev(this_ent,pev_health);
if ( is_user_connected(idattacker) && !is_user_bot(idattacker) )
client_print(idattacker,print_center,"HP:%i",health);
__________________