PDA

View Full Version : Catch players desire to go prone...


=|[76AD]|= TatsuSaisei
12-24-2006, 01:35 PM
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)

What 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"

so.... any suggestions ??

=|[76AD]|= TatsuSaisei
12-24-2006, 01:43 PM
jumping on my own post... let me ask this as well...

what are these two "buttons" in DoD ??

IN_ALT1
IN_CANCEL

all 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]
12-25-2006, 05:35 AM
The only way to hook it is maybe to register_clcmd("prone") but I'm not sure if that gets sent to the server.

Does dod_get_pronestate(id) work for what you're doing?

=|[76AD]|= TatsuSaisei
12-25-2006, 01:07 PM
;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.

Does dod_get_pronestate(id) work for what you're doing?
tried hooking "prone" as both a clcmd and a concmd, neither worked...

and 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
12-25-2006, 02:37 PM
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!!!

Cheers!