coding question


(Devastator) #1

Howdy folkes

im searching the source code for a reference yet im getting little stuck

what im trying to do :

stabbing someone makes them set on fire … … im sure i could use the flamethrower code for that but im not sure on where to edit that … anyone has a quick pointer ? ( what im trying to locate is the code on impact eg without the fire animation , just when u hit a player with a knife the other player starts burnin )

and i also want to would like to make the grenade explode on impact … ( this i probably have found in g_missile.c )
or maybe someone has a explination manual lying around :wink:

thanx!

dev


(ailmanki) #2

two guides for quake3, might help you, one is to add a flamethrower, the other a vortex grenade…

http://quakewiki.net/archives/code3arena/tutorials/tutorial10.shtml
http://quakewiki.net/archives/code3arena/tutorials/tutorial11.shtml

maybe you find here some more stuff:
http://sites.google.com/site/peyoteet/coding

happy coding times!


(dutchmeat) #3

You’ve got to find the Event that triggers the fire damage/animation.
I don’t have my code with me, but search for event types.


(Devastator) #4

@ailmanki Cheers ! this covers alot of track … but surely im missing links to the functions since halve the stuff is refferred by another , EG g_weapons missing or relocated to different parts of the code …

@dutchmeat , yeah i was searching event types … but im getting lost in where its called from ?
i started tracing back the flamethrower weapon to see if its reffed by OnImpact but i did not have any luck