Nevermind, finally got it. It was using the wrong #define of DLLEXPORT.

--JD

On Oct 18, 2004, at 4:21 PM, Jonathan Dance wrote:

Thanks, this was very helpful.

I am having a new problem; I added some code to view.cpp and now when
its run HL complains "could not link client.dll function V_CalcRefdef."
I know that this is the function that is called by the engine. From
searching the web it seems that you should turn off inline function
expansion; I'm using VS7 so I changed it to "Only __inline", but this
didn't help (anyway, optimizations are disabled in Debug mode).

I figured that maybe it was a new function I added, so I took that out
(did my change directly in V_CalcNormalRefdef instead); didn't help.
However, I also added several header files and an extern.

Any ideas on how to make this work?

--JD

On Oct 18, 2004, at 1:15 PM, Jeffrey "botman" Broome wrote:

Jonathan Dance wrote:
Hi,

I've been looking to implement sniper drift and have been having some
trouble trying to find a good reference. I've been playing around
with
pev in the weapon code (pev->v_angle), but it doesn't have any
effect.
I'm guessing that this is because this isn't sent to the
client--although the client executes the code also. I considered
doing
an event or something but I'm not sure what I'd put there anyway.

Try looking at the "head bob" stuff in the client (as that effects the view offset). It's in the view.cpp file of the cl_dll folder.

--
Jeffrey "botman" Broome

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders



Reply via email to