| Posts | ||
|---|---|---|
| capturing Half-Life player movement (Forums : Coding & Scripting : capturing Half-Life player movement) | Post Reply | |
| Thread Options | ||
| Oct 14 2009, 3:54am Anchor | ||
|
Hi. I'm new to modding. I have a question regarding Half-Life (not HL2, just HL1). I know the pm_shared folder (with the pm_*.c files) are used to capture a player's movement. My issue is that the pm_* are all C files, and I want to do C++, but pretty much all the .h files are written in C++. For example, if a player moves forward, I want the screen to display "moving forward" by using the UTIL_HUDMESSAGE function in util.h/util.cpp to display text to the HUD. Since util.h is C++, I cannot do a #include "util.h" in the .C files without the compiler complaining. Anyways, I was wondering if anyone has a solution to my problem. I have thought of a couple possible workarounds, but I haven't been able to make it work: If #3 is the only "feasible" method, can someone point me in the right direction as to where to find the function that captures a player's keyboard stroke? Or if there's any other suggestions or solutions, I will greatly appreciate it. Thanks. PS - I'm using Windows XP, and my compiler is Visual Studio .NET 2003. Thanks again! Edited by: jonjacko |
||
Only registered members can share their thoughts. So come on! Join the community today (totally free) and join in the conversation.