You write your new functions, let's say GrenadeExplode().  I copy my code
and call the function EditGrenadeExplode().  Then, I write a function whose
only job is to reroute the functions in question.  
#ifdef EDIT
GrenadeExplode = EditGrenadeExplode;
Etc etc;
..
#endif
Then call that function in worldspawn.
Could probably even do it so that all you have to do is set a variable in
serverconfig or wherever so you can alternate from the mod to old code.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew T.
Atkinson
Sent: Tuesday, December 06, 2005 2:51 PM
To: AGRIP User and Developer discussion list
Subject: RE: [AGRIP-discuss] approaching from behind

Agreed -- please mail it to me privately and I'll do what I did las
time, with the added bonus that, as you've been able to override
stuff, /all/ common code can be factored out.

Also, please explain to me how you did the overriding -- I recall
something to this effect on the ZQ board but don't understand it now
(even if I did then, which I didn't, lol).  I have a feeling it was
something to do with exploiting implicit function pointers.

bye just now, best regards,


-- 
Matthew T. Atkinson <[EMAIL PROTECTED]>

_______________________________________________
AGRIP-discuss mailing list
[email protected]
http://lists.agrip.org.uk/cgi-bin/mailman/listinfo/agrip-discuss
_______________________________________________
AGRIP-discuss mailing list
[email protected]
http://lists.agrip.org.uk/cgi-bin/mailman/listinfo/agrip-discuss

Reply via email to