Day of Defeat Plugins Community
This site is an archive — everything is readable and downloadable, nothing can be posted. Admin
Archive › Old Forum Threads › Help › Scripting Help › Catch players desire to go prone...
5 posts, 3 people · 869 views Thread Rating: ★★★★★
closedCatch players desire to go prone...
Started by =|[76AD]|= TatsuSaisei on 12-24-2006, 01:35 PM
=|[76AD]|= TatsuSaisei
started this thread
Posts: 794
Threads: 54
Joined: May 2005
12-24-2006, 01:35 PM #1

I am having an issue with a plugin I have designed... There comes a point where I lock a player down into a crouch position (to simulate damaged legs) but have found that once the legs are locked, the player can no longer go prone either, which is not the behavior I was expecting. I tried catching prone as a defined button but can not seem to find it. DoD is the only mod that even allows a player to go prone (that I know of, nothing in HL or CS)n nWhat I would like to ulitmately do is catch a players attempt at going prone, and "helping" them along (i know what needs to be done to get player to go prone on call) I just do not want players to have to bind a custom key to go prone... the point is to use zero binds so there is never anythign for a player to have to "setup"n nso.... any suggestions ??

=|[76AD]|= TatsuSaisei
started this thread
Posts: 794
Threads: 54
Joined: May 2005
12-24-2006, 01:43 PM #2

jumping on my own post... let me ask this as well...n nwhat are these two "buttons" in DoD ??n nIN_ALT1nIN_CANCELn nall the rest are pretty self explanatory to the game, but these 2 I am unsure about... IN_CANCEL I would assume is possibly ESC by default... but IN_ALT1 I have been unable to locate, and originally hoped it was assigned to "prone" but it is not...

Wilson [29th ID]
posted here
Posts: 623
Threads: 57
Joined: Oct 2005
12-25-2006, 05:35 AM #3

The only way to hook it is maybe to register_clcmd("prone") but I'm not sure if that gets sent to the server.rnrnDoes dod_get_pronestate(id) work for what you're doing?

=|[76AD]|= TatsuSaisei
started this thread
Posts: 794
Threads: 54
Joined: May 2005
12-25-2006, 01:07 PM #4
;2920']The only way to hook it is maybe to register_clcmd("prone") but I'm not sure if that gets sent to the server.n nDoes dod_get_pronestate(id) work for what you're doing?
ntried hooking "prone" as both a clcmd and a concmd, neither worked...n nand dod_get_pronestate(id) works enough to report 0 if the player is not prone, but will not help me without being able to detect that a player has in fact pushed their prone key...

Zor
posted here
Posts: 688
Threads: 75
Joined: Jun 2006
12-25-2006, 02:37 PM #5

Well I have just thought of two new forwards I can work on for the DoDx, one will be a forward when someone goes prone, the other will be for when they zoom...will have to look at this, note to self! Plz remind me TatsuSaisei as I get into programming and get pissed at it and put it away until later! Hehehe...things like these forwards, if you guys have plugins that use things like catching prone states or when someone zooms a weapon, etc let me know about things you would like to see forwards for so that I can add them in...Im on leave until the 21st Jan, so TELL ME!!!nnCheers!

Archive › Old Forum Threads › Help › Scripting Help › Catch players desire to go prone...
DoD Plugins Archive · Repository · Old Forum Threads · Maps · Admin · built 14 Sep 2026 00:34 UTC