View Single Post
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 05-11-2012 , 14:44   Re: Module: Half-Life Weapon Mod (v0.5)
Reply With Quote #25

Quote:
Originally Posted by joaquimandrade View Post
...you can do the following: hook the function that create entities, and when they got a specific string that you want like "weapon_stuff" you can provide an object you create yourself. Basically you override the behaviour of creating entity with hooks and it is kind of natural apart for having to add a hook. This applies to any mod.
In fact you may also add a custom dll inside liblist.gam with the key "gamedll[_linux]" (yes, you may have more than 1 gamedll[_linux]) then that dll will contain the functions named as weapon_* and all the code related.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito