 |
|
Veteran Member
|

01-07-2014
, 12:55
Re: Entity's solid state
|
#9
|
Quote:
Originally Posted by NiHiLaNTh
AddToFullPack is for visual effects only, not physical.
|
Where did you get that?
Quote:
Originally Posted by SpeeDeeR
I have tried FM_AddToFullPack and i doesn't seem to work or I'm doing something wrong. The ent is not SOLID_NOT at all. What are those plugins which you speak of; any link, title, author, anything at all...
Here is a plugin for testing purpose only thats not working as you mentioned using addtofullpack.
PHP Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init()
{
register_forward(FM_AddToFullPack, "Fwd_AddToFullPack", 1);
}
public Fwd_AddToFullPack(es, e, ent, host, hostflags, player, pSet)
{
static id, body;
get_user_aiming(host, id, body);
if(id == ent)
{
set_es(es, ES_Solid, SOLID_NOT);
}
}
|
PHP Code:
public Fwd_AddToFullPack(es, e, ent, host, hostflags, player, pSet)
{
// Host is the player who see/feel that effect what we are doing
// Ent is entity(player in this case) we are going to mess with
// first we make sure that ent is player
if( !is_user_connected(ent) ) return
// If host player is in same team as ent player
if( cs_get_user_team(host) == cs_get_user_team(ent) )
{
// Make ent player not solid for her
set_es(es, ES_Solid, SOLID_NOT);
}
try this
|
|
|
|