Raised This Month: $51 Target: $400
 12% 

Solved Force player duck without Orpheu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-18-2018 , 17:14   Force player duck without Orpheu
Reply With Quote #1

Hi, is there any method of forcing a player to duck and making him unable to un-duck, without Orpheu? I don't wanna include Orpheu for such simple thing. My idea was to stimulate a ground crawling effect but it's not as easy so I just want to force players to duck. I've tried using pev_button/oldbuttons but they didn't work correctly.

PHP Code:
public fw_HamPlayerPreThinkid )
{
    if( 
is_user_aliveid ) && g_bPlayerCrawlingid ] )
    {
        
set_pevidpev_oldbuttonspevidpev_oldbuttons ) & ~IN_JUMP ); 
        
set_pevidpev_buttonpevidpev_button ) & IN_DUCK );
    }
    return 
HAM_HANDLED;

Thanks!

Last edited by edon1337; 07-19-2018 at 08:53.
edon1337 is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 01-18-2018 , 17:25   Re: Force player duck without Orpheu
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=124656 this plugin forces the player to duck.

nevermind. the plugin was never finished and is poorly coded
__________________
retired chump

Last edited by DjSoftero; 01-18-2018 at 17:28.
DjSoftero is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-18-2018 , 17:30   Re: Force player duck without Orpheu
Reply With Quote #3

Quote:
Originally Posted by DjSoftero View Post
is poorly coded
Indeed it is.
__________________
edon1337 is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 01-18-2018 , 18:10   Re: Force player duck without Orpheu
Reply With Quote #4

try set_pev(id, pev_flags, pev(id, pev_flags) & FL_DUCKING)
jimaway is offline
Hey
Member
Join Date: Dec 2017
Old 01-18-2018 , 18:13   Re: Force player duck without Orpheu
Reply With Quote #5

there is a plugin already been made there is 3 different codes one was made with orpheu and the other without orpheu you can try it out, the models are also included, here is the video about it:



files here: here

Last edited by Hey; 01-18-2018 at 18:19. Reason: fixed apperance
Hey is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-18-2018 , 18:26   Re: Force player duck without Orpheu
Reply With Quote #6

Quote:
Originally Posted by jimaway View Post
try set_pev(id, pev_flags, pev(id, pev_flags) & FL_DUCKING)
Didn't work

Quote:
Originally Posted by Hey View Post
there is a plugin already been made there is 3 different codes one was made with orpheu and the other without orpheu you can try it out, the models are also included, here is the video about it:



files here: here
Is it just me or the video is broken?
Oh my.. that looks like what I'm searching for, I'll take a look at it, thanks!

EDIT: Too bad it requires custom-made animations, it won't work if you use different models.
__________________

Last edited by edon1337; 01-18-2018 at 18:31.
edon1337 is offline
Hey
Member
Join Date: Dec 2017
Old 01-18-2018 , 18:32   Re: Force player duck without Orpheu
Reply With Quote #7

they are already been made, you can find them in the .zip file :/, take a look at the files first tho.
Hey is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-18-2018 , 18:32   Re: Force player duck without Orpheu
Reply With Quote #8

Quote:
Originally Posted by Hey View Post
they are already been made, you can find them in the .zip file :/, take a look at the files first tho.
I know that, and I've checked the files. Read my updated post.
__________________
edon1337 is offline
Hey
Member
Join Date: Dec 2017
Old 01-18-2018 , 18:44   Re: Force player duck without Orpheu
Reply With Quote #9

Oh well you can't really like do much if you don't want to add custom-made animations... .

although you can use the default swimming animation that is in the default models and somehow block it from being played so the player would be crawling.. it's a good suggestion isn't it ?
Hey is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-19-2018 , 17:59   Re: Force player duck without Orpheu
Reply With Quote #10

Quote:
Originally Posted by Hey View Post
Oh well you can't really like do much if you don't want to add custom-made animations... .

although you can use the default swimming animation that is in the default models and somehow block it from being played so the player would be crawling.. it's a good suggestion isn't it ?
I think the best idea right now is finding a proper method of force ducking a player.
__________________
edon1337 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 03:28.


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