ent->parent


(jamez) #1

what exactly do they mean by parent, is it just a refrence to where it was created, moves heirchially with the entity, etc?

and does anybody know where the shader of an entity is set (where exactly does it make a smoke grenade show smoke, fire actually be made of flamechunks, etc)

any info would be great.


(jamez) #2

ok i got a few answers myself, parent is nothing but a refrence, which is very useful for passing more than one entity

also the graphics are temp enetities and props_flamethrower_think i think it was has a good example


(jamez) #3

ok im totaly clueless as to what causes the fire to appear in the code, i tried pretty much everything but chanigng the client side code.
i want to avoid this, but if i have to how would i go aobut it?


(bacon) #4

Fire is client-side code. Afterall, it’s rendering (sprites) which is not done server-side.


(jamez) #5

i mean, what does the server side do to tell the client side to make the fire because i cant seem to find any information anywhere, or is there a call on client side when someone fires a weapon it draws the approprite thing and if there is, how would i go about modifing a grenade to show fire

i already have the smoke grenade spewing fire everywhere but its invisible…


(sniser) #6

cg_weapons.c and cg_effects.c? Or search all files for “FLAME_”


(bacon) #7

In g_missile.c, look at the fire_flamebarrel & fire_flamechunk functions.

I think you have to change the eType to ET_FLAMETHROWER_CHUNK but I’m not too sure.