AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Entity's solid state (https://forums.alliedmods.net/showthread.php?t=205453)

SpeeDeeR 01-10-2013 18:14

Entity's solid state
 
I'm curious if it's possible for an entity's solid state to behave differently for both teams at the same time. For example one player can stand on it while another player is falling through it.

AngeIII 01-10-2013 18:25

Re: Entity's solid state
 
you can try to set it solid_not for everyone but, in touch check for team and do some slap/velocy/set_origin..

and also i found this:
http://forums.alliedmods.net/showthread.php?p=1858668

and this:
/**
* Description: Usually called after the engine call with the same name.
* Forward params: function(this)
* Return type: None.
* Execute params: ExecuteHam(Ham_SetObjectCollisionBox, this);
*/
Ham_SetObjectCollisionBox,

SpeeDeeR 01-10-2013 19:17

Re: Entity's solid state
 
Neither of these actually help.
Hooking the touch between the two and the link you gave me aren't fast enough, so you will get stuck if you step on it and it has to transfer from bbox to trigger state.
And hooking collisionbox event doesnt help at all. It's seems to be called all the time and it provides only the entity's index. Is there a fast enough method to get the entity's toucher that I am not aware of?

SpeeDeeR 01-28-2013 09:49

Re: Entity's solid state
 
Bump.

SpeeDeeR 01-06-2014 19:24

Re: Entity's solid state
 
What I'm asking is if there is any way of making, for example a wall. That wall has to act differently for the two teams. A terrorist would get through it and a CT wouldn't but at the same exact time.
For example if two players from T and CT walk paralel to each other and hit the wall and the same exact time, the T shaw pass and CT shaw not pass.

ironskillz1 01-06-2014 19:40

Re: Entity's solid state
 
Im looking for something like this to i would be glad if someone could do it

.Dare Devil. 01-06-2014 20:13

Re: Entity's solid state
 
FM_AddToFullPack, look at the ohter plugins how they do it.

SpeeDeeR 01-06-2014 20:35

Re: Entity's solid state
 
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(eseenthosthostflagsplayerpSet)
{
    static  
idbody;
    
get_user_aiming(hostidbody);
        
    if(
id == ent)
    {
        
set_es(esES_SolidSOLID_NOT);
    }



NiHiLaNTh 01-07-2014 08:44

Re: Entity's solid state
 
AddToFullPack is for visual effects only, not physical.

SpeeDeeR 01-07-2014 12:38

Re: Entity's solid state
 
Quote:

Originally Posted by NiHiLaNTh (Post 2082445)
AddToFullPack is for visual effects only, not physical.

I thought so...
I'm out of ideas. Any help is heavily appreciated.


All times are GMT -4. The time now is 13:27.

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