Raised This Month: $ Target: $400
 0% 

Wondering how to force duck with Orpheu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
wirehead
Junior Member
Join Date: Dec 2010
Old 01-05-2011 , 18:33   Wondering how to force duck with Orpheu
Reply With Quote #1

Here's the portion of code from Arkshine's prone position plugin that seems to force a swimming position on a standing player, but I don't know how it is set on the player. Can someone explain please?

(from the plugin linked in https://forums.alliedmods.net/showpo...6&postcount=27)

Code:
    public PM_Move ( const OrpheuStruct:ppmove, const server )
    {
        handleStructPMove = OrpheuGetStructFromParam( 1 );
        new player = OrpheuGetParamStructMember( 1, "player_index" ) + 1;

        if ( !FBitSet( isAlive, player ) )
        {
            return;
        }

        if ( FBitSet( isProning, player ) )
        {
            OrpheuSetParamStructMember( 1, "usehull", 2 );
        }
        else
        {
            if ( FBitSet( unStuckMe, player ) )
            {
                ClearBits( unStuckMe, player );
                PM_FixPlayerCrouchStuck( STUCK_MOVEUP );
            }
        }
    }
Seems like " OrpheuSetParamStructMember( 1, "usehull", 2 ); " is what sets the player size, but how is that applied to a player?
wirehead is offline
 



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 02:08.


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