Raised This Month: $ Target: $400
 0% 

SOLID_NOT for one player.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Owner123
Member
Join Date: Jun 2010
Old 10-14-2010 , 05:58   SOLID_NOT for one player.
Reply With Quote #1

Hi.
How i can make entity to SOLID_NOT for one player? I know, i must use FM_AddToFullPack, try with some codes but i cant do this.
I try it:
PHP Code:
public fwAddToFullPack(es_handleeentityhosthostflagsplayerpSet)
{
    if(
host == entity)
        return 
FMRES_IGNORED;
    
    static 
szClassname[32];
    
pev(entitypev_classnameszClassname31);
    
    if(
equal(szClassname"my_classname" && is_user_connected(host) && is_user_alive(host) && get_user_flags(host) & ADMIN_LEVEL_H)
            
set_es(es_handleES_SolidSOLID_NOT);
    return 
FMRES_IGNORED;

But this don't work.
__________________
Sorry for my bad english !
Owner123 is offline
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 10-14-2010 , 11:46   Re: SOLID_NOT for one player.
Reply With Quote #2

Try
PHP Code:
#include <engine>

entity_set_int(idEV_INT_SOLIDSOLID_NOT
Mxnn is offline
Owner123
Member
Join Date: Jun 2010
Old 10-14-2010 , 12:15   Re: SOLID_NOT for one player.
Reply With Quote #3

This make entity SOLID_NOT for all player ... I want to make entity SOLID_NOT only for admins.;s
__________________
Sorry for my bad english !
Owner123 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-14-2010 , 19:15   Re: SOLID_NOT for one player.
Reply With Quote #4

Quote:
Originally Posted by Owner123 View Post
Hi.
How i can make entity to SOLID_NOT for one player? I know, i must use FM_AddToFullPack, try with some codes but i cant do this.
I try it:
PHP Code:
public fwAddToFullPack(es_handleeentityhosthostflagsplayerpSet)
{
    if(
host == entity)
        return 
FMRES_IGNORED;
    
    static 
szClassname[32];
    
pev(entitypev_classnameszClassname31);
    
    if(
equal(szClassname"my_classname" && is_user_connected(host) && is_user_alive(host) && get_user_flags(host) & ADMIN_LEVEL_H)
            
set_es(es_handleES_SolidSOLID_NOT);
    return 
FMRES_IGNORED;

But this don't work.
Make sure you are hooking it as Post.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 10-14-2010 , 20:09   Re: SOLID_NOT for one player.
Reply With Quote #5

its impossible editing the outgoing packets with addtofullpack cuz that will just change the client-side predictions and stuff when a player tries to go through an other player it will start predicting the movement through that person a bit and it will clutch back in place ... thats what i expect from ur code to happen.
and secondly its impossible in general to have the engine do that work for u...
try making the admin when he touches a player the player becomes SOLID_NOT then when a normal player touches the SOLID_NOT player he will get pushed back somehow with velocity or origin thats ur choice... this is the only possible way to realize that.
EDIT: also the best way to hook it is FM_Touch (pre) with fakemeta or PM_Move with orpheu
__________________
okay

Last edited by ARES[ro]; 10-14-2010 at 20:13.
ARES[ro] is offline
grankee
Member
Join Date: Jun 2008
Old 10-14-2010 , 21:34   Re: SOLID_NOT for one player.
Reply With Quote #6

I'm no sure but plugin for KZ_ maps doing what You need. Just look into this plugin
grankee is offline
Owner123
Member
Join Date: Jun 2010
Old 10-15-2010 , 09:49   Re: SOLID_NOT for one player.
Reply With Quote #7

I'm hooking this from Post and Pre and this still dont work.
This is for Blockmaker ... For Barrier CT/TT/Vip Block.
__________________
Sorry for my bad english !

Last edited by Owner123; 10-15-2010 at 09:53.
Owner123 is offline
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 10-15-2010 , 10:02   Re: SOLID_NOT for one player.
Reply With Quote #8

edit: oh so its not for a semiclip plugin cuz thats what u said first
ok then hook FM_Touch when player touches the block it becomes SOLID_NOT and when he goes away do a set_task and make it back solid
__________________
okay

Last edited by ARES[ro]; 10-15-2010 at 10:06.
ARES[ro] is offline
Owner123
Member
Join Date: Jun 2010
Old 10-15-2010 , 10:57   Re: SOLID_NOT for one player.
Reply With Quote #9

This is in standard ...
__________________
Sorry for my bad english !
Owner123 is offline
Old 10-15-2010, 11:39
g_often
This message has been deleted by g_often. Reason: ...
Owner123
Member
Join Date: Jun 2010
Old 10-15-2010 , 12:26   Re: SOLID_NOT for one player.
Reply With Quote #10

If you dont know what i want, dont post please -.-
__________________
Sorry for my bad english !
Owner123 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:19.


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