Raised This Month: $ Target: $400
 0% 

[SOLVED] /unstuck and semiclip, not work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Kiske
Veteran Member
Join Date: May 2009
Old 03-12-2011 , 03:50   [SOLVED] /unstuck and semiclip, not work
Reply With Quote #1

I have this code to detect whether it is stuck, but the semiclip bug.
PHP Code:
// Check if a player is stuck (credits to VEN)
stock is_player_stuck(id)
{
    static 
Float:originF[3]
    
pev(idpev_originoriginF)
    
    
engfunc(EngFunc_TraceHulloriginForiginF0, (pev(idpev_flags) & FL_DUCKING) ? HULL_HEAD HULL_HUMANid0)
    
    if(
get_tr2(0TR_StartSolid) || get_tr2(0TR_AllSolid) || !get_tr2(0TR_InOpen))
        return 
true;
    
    return 
false;


A friend solved this problem, and look like this:
PHP Code:
// Check if a player is stuck (credits to VEN)
stock is_player_stuck(id)
{
    static 
Float:originF[3]
    
pev(idpev_originoriginF)
    
    
engfunc(EngFunc_TraceHulloriginForiginF0, (pev(idpev_flags) & FL_DUCKING) ? HULL_HEAD HULL_HUMANid0)
    
    if((
get_tr2(0TR_StartSolid) > g_maxplayers) || (get_tr2(0TR_AllSolid) > g_maxplayers))
        return 
true;
    
    return 
false;


It works fine, but when you stuck to entities map doesn't work.

Sory for my english.
__________________

Kiske is offline
Send a message via Skype™ to Kiske
gtpunkt
Veteran Member
Join Date: Dec 2008
Location: Berlin
Old 03-12-2011 , 07:36   Re: /unstuck and semiclip, not work
Reply With Quote #2

Cool to hear it ,but what do you mean with "........Map doesn't work"
gtpunkt is offline
Send a message via Skype™ to gtpunkt
Schpraaankiii
Veteran Member
Join Date: Dec 2009
Location: Sweden Norrköping
Old 03-12-2011 , 07:40   Re: /unstuck and semiclip, not work
Reply With Quote #3

Quote:
Originally Posted by gtpunkt View Post
Cool to hear it ,but what do you mean with "........Map doesn't work"
I would also appreciate if you explained that
__________________
CAOSK-ESPORTS.COM
Schpraaankiii is offline
Send a message via Skype™ to Schpraaankiii
gtpunkt
Veteran Member
Join Date: Dec 2008
Location: Berlin
Old 03-12-2011 , 07:44   Re: /unstuck and semiclip, not work
Reply With Quote #4

hää! The same I asked Kiske.
@Kiske
Quote:
I would also appreciate if you explained that
gtpunkt is offline
Send a message via Skype™ to gtpunkt
bibu
Veteran Member
Join Date: Sep 2010
Old 03-12-2011 , 14:41   Re: /unstuck and semiclip, not work
Reply With Quote #5

Try this:

PHP Code:
stock is_user_stuckplr )
{
    new 
Float:origin[3];
    
pevplrpev_originorigin );

    
engfuncEngFunc_TraceHulloriginoriginIGNORE_MONSTERSpevplrpev_flags ) & FL_DUCKING HULL_HEAD HULL_HUMANplr);

    return 
get_tr20TR_StartSolid );

bibu is offline
gtpunkt
Veteran Member
Join Date: Dec 2008
Location: Berlin
Old 03-12-2011 , 16:30   Re: /unstuck and semiclip, not work
Reply With Quote #6

@bibu
why ? what this does ?
you sure that will fix this
Quote:
I have this code to detect whether it is stuck, but the semiclip bug.
gtpunkt is offline
Send a message via Skype™ to gtpunkt
Kiske
Veteran Member
Join Date: May 2009
Old 03-12-2011 , 16:54   Re: /unstuck and semiclip, not work
Reply With Quote #7

Quote:
Originally Posted by bibu View Post
Try this:

PHP Code:
stock is_user_stuckplr )
{
    new 
Float:origin[3];
    
pevplrpev_originorigin );

    
engfuncEngFunc_TraceHulloriginoriginIGNORE_MONSTERSpevplrpev_flags ) & FL_DUCKING HULL_HEAD HULL_HUMANplr);

    return 
get_tr20TR_StartSolid );

Yep! It works
Thank u all very much.
__________________

Kiske is offline
Send a message via Skype™ to Kiske
Schpraaankiii
Veteran Member
Join Date: Dec 2009
Location: Sweden Norrköping
Old 03-14-2011 , 19:02   Re: [SOLVED] /unstuck and semiclip, not work
Reply With Quote #8

gtpunkt, have u tested it? does it work?
__________________
CAOSK-ESPORTS.COM
Schpraaankiii is offline
Send a message via Skype™ to Schpraaankiii
Kiske
Veteran Member
Join Date: May 2009
Old 03-14-2011 , 22:57   Re: [SOLVED] /unstuck and semiclip, not work
Reply With Quote #9

Quote:
Originally Posted by Schpraaankiii View Post
gtpunkt, have u tested it? does it work?
Yes, it work.
__________________

Kiske is offline
Send a message via Skype™ to Kiske
Schpraaankiii
Veteran Member
Join Date: Dec 2009
Location: Sweden Norrköping
Old 03-15-2011 , 15:25   Re: [SOLVED] /unstuck and semiclip, not work
Reply With Quote #10

Quote:
Originally Posted by Kiske View Post
Yes, it work.
Attach a the .sma file to the thread!
I know nothing about plugins
__________________
CAOSK-ESPORTS.COM
Schpraaankiii is offline
Send a message via Skype™ to Schpraaankiii
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 16:43.


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