Wondering how to force duck with Orpheu
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 ) |
Re: Wondering how to force duck with Orpheu
I'm not sure it's a good idea, but you can try to change for usehull 1 instead of 2.
0 = regular player hull, 1 = ducked player hull, 2 = point hull And also forcing player if need to play the duck animation. |
Re: Wondering how to force duck with Orpheu
I don't know how to use the function though. Please show me how to apply it to a player.
|
Re: Wondering how to force duck with Orpheu
PM_Move is called for all players, and the current player's index is passed by : new player = OrpheuGetParamStructMember( 1, "player_index" ) + 1;
|
Re: Wondering how to force duck with Orpheu
Thanks for the help, but I'm still kind of lost, having not used Orpheu before.
If it's not too much, could you please write up an example that causes a player to duck when some global variable like IsDucking[id] = 1? |
Re: Wondering how to force duck with Orpheu
I have solution take a look at Arkshine`s prone plugin that is where he changes the player hull to pointhull (2).
|
Re: Wondering how to force duck with Orpheu
Ares[ro], that's the original post's premise.
If I knew how to use the function, I wouldn't have made this thread. |
Re: Wondering how to force duck with Orpheu
Will try later.
|
Re: Wondering how to force duck with Orpheu
Thank you.
|
| All times are GMT -4. The time now is 02:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.