Raised This Month: $ Target: $400
 0% 

What exact source header files can I use?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pRED*
Join Date: Dec 2006
Old 07-24-2010 , 18:45   Re: What exact source header files can I use?
Reply With Quote #1

As a general rule you should stick to files within public/.

The current example doesn't compile because the definition of UTIL_BloodSpray is inside a .cpp file someone in the sdk, and isn't being compiled into your project. You really don't want to add this cpp file to the project as the code within it probably won't match the current game.

The 3 main solutions for this are (in order of preference):

1) Find the definition and reimplement it using code you can access.
2) Lookup the compiled definition of the code inside the valve binary at runtime, known as signature scanning. Lots of information on this around the forums/wiki.
3) Linux only, add the server/engine binaries to your link path and let the loader do the equivalent of signature scanning for you.
pRED* is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode