Raised This Month: $ Target: $400
 0% 

Make a player duck


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ramono
Veteran Member
Join Date: Nov 2005
Location: Netherlands
Old 03-05-2006 , 15:13   Make a player duck
Reply With Quote #1

How to make a player duck ( not exec +duck )
I want to replace a player with another player, but if the player is ducking the new player has to duck when he spawns
__________________
Um, hi.
Ramono is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-05-2006 , 16:33  
Reply With Quote #2

I believe there are only one way:
Code:
client_cmd(id, "+duck")
You can emulate that since it's clientside command.
VEN is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-05-2006 , 16:38  
Reply With Quote #3

Code:
entity_set_int(id , EV_INT_button , entity_get_int(id , EV_INT_button) & IN_DUCK)
or something
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 03-05-2006 , 16:53  
Reply With Quote #4

No, i believe that wouldn't help.
In this case it's just indicator of the duck-button state and it's not possible to change that actual state.
VEN is offline
Des12
Senior Member
Join Date: Jan 2005
Old 03-05-2006 , 19:55  
Reply With Quote #5

Code:
new g_ducking[33] // . . . //make player duck and tell plugin he is ducking client_cmd(id,"+duck"); //or use engine client cmd g_ducking[id] = 1 public playerReplace(id, replacement) {     if(g_ducking[id] == 1) {        client_cmd(replacement,"+duck");        g_ducking[replacement] = 1     }     return PLUGIN_HANDLED; }
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
Kraugh
Senior Member
Join Date: Jan 2006
Location: barrington, ri
Old 03-06-2006 , 00:36  
Reply With Quote #6

Code:
entity_set_int(id,EV_INT_bInDuck,1); set_entity_flags(id,FL_DUCKING,1);
__________________
"You can not restrain a fool from speaking, but nothing obliges you to listen."
Kraugh is offline
Send a message via AIM to Kraugh
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 20:21.


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