Trying To Get Screen Shake When Onos Walks
ZabMan
Join Date: 2004-04-22 Member: 28095Members
Hey,
Im trying to make it so that when an onos comes near, the screen shakes. This happens when he takes steps...kind of like jurassic park.
Its the same screen shake you get when a grenade goes off, but much much less noticable. I only want it for me obviously, not for everyone, just a bit more athmosphere really.
I know C++ (MS), and ive taken a look at the HL 2.0 SDK. I believe I need to modify the client.dll, specifically using the functions:
gEngfuncs.V_CalcShake();
and
gEngfuncs.V_ApplyShake( pparams->vieworg, pparams->viewangles, 1.0 );
The second one I believe is what I need, passing it the correct parameters.
My question is...if i recompile the client.dll, will it work on public NS servers, or would i need the client.dll source of the original client.dll shipped with ns 3 or whatever?
Im presuming the NS client.dll has ns specific customisations, which wont be in the SDK...
Thanks!
ZabMan
Im trying to make it so that when an onos comes near, the screen shakes. This happens when he takes steps...kind of like jurassic park.
Its the same screen shake you get when a grenade goes off, but much much less noticable. I only want it for me obviously, not for everyone, just a bit more athmosphere really.
I know C++ (MS), and ive taken a look at the HL 2.0 SDK. I believe I need to modify the client.dll, specifically using the functions:
gEngfuncs.V_CalcShake();
and
gEngfuncs.V_ApplyShake( pparams->vieworg, pparams->viewangles, 1.0 );
The second one I believe is what I need, passing it the correct parameters.
My question is...if i recompile the client.dll, will it work on public NS servers, or would i need the client.dll source of the original client.dll shipped with ns 3 or whatever?
Im presuming the NS client.dll has ns specific customisations, which wont be in the SDK...
Thanks!
ZabMan
Comments
the exact error you see when you got a out-of-date version (like 2.0) BUT this would make a nice server plugin if you could do that <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html//emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif' /><!--endemo-->
no seriouosly, this thread should probably be moved.
Developing a client hook would not work either, as VAC prevents Half-Life from being played online like that.
Yet, you can make a server-side plugin that makes an Onos give other players a good old UTIL_ScreenShake or two.
Thanks for all your replies, i did look for a "programming" forum, but this one was the closest i found.
Ok, so as I presumed your all pretty much saying if I compile a new client.dll file with the standard SDK it wont work, that makes sense.
I presume if I modified the standard SDK then I could only use this client.dll on basic half life (whatever that is, probably the offline single player version i guess), not on any mods.
A serverside plugin would be ok i guess, it could be off by default and you could select to turn it on. Im sure the "l33t" pr0 players out there wouldnt want this on all the time <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
I will check the modns site, thanks for the response.
I dont suppose anyone (flayra hint hint!) wants to send me the source to the current client.dll so I can add this in! <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html//emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo-->
(i want my vet stats <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html//emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /><!--endemo-->)