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?