How do you force people to duck
Hi can i get the code that forces people to duck in game and also players can't jump at all i have tried many things...
|
Re: How do you force people to duck
PHP Code:
PHP Code:
|
Re: How do you force people to duck
You need client_cmd(id, "-duck") under client_cmd(id, "+duck").
|
Re: How do you force people to duck
should be: engclient_cmd(id, "+duck;wait;-duck").
you can also try hamsandwich's Ham_Player_Duck. and you can't hook buttons(+/-) with register_clcmd, you need to hook CmdStart and receive buttons from UC_Buttons. |
Re: How do you force people to duck
For duck forcing you could use pev_binduck, still I can't remember if it was set off fast.
|
Re: How do you force people to duck
Thnx for replying and for the plugins but for the force duck can you make it so that it makes them ground strafe kinda of like in hns and what people do and stuff... cause i have map ideas for this Basically like bhop but g-strafe
|
Re: How do you force people to duck
Quote:
|
Re: How do you force people to duck
@Hunter-Digital:
i never said that it would work, i just said that you should try using it. to block jump and duck you need to hook CmdStart: PHP Code:
|
Re: How do you force people to duck
EDIT: While reading through this thread I forgot the main topic was how to force them to duck, not how to block duck ;D!
Using CmdStart won't work because jumping/ducking is handled client side. The best solution I've come across is to trick the server into thinking you are already jumping/ducking. The only problem with this is the client will start to do the jump/duck on their screen until the server tells the client they are not (so the player will start their jump/duck but won't get far). Other players will not see the jumping/ducking player doing the jump/duck however. PHP Code:
|
Re: How do you force people to duck
PHP Code:
|
| All times are GMT -4. The time now is 01:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.