Darkplaces effectinfo and QC - how?
Posted: Wed Dec 02, 2009 2:08 am
Hi,
Anyone actually know how to add a new custom effect to a mod using effectinfo? I want to add a new grenade-trail-like effect.
So, some questions:
- When I create a new effect in effectinfo I give it a name: what does this name relate to? If I call it TR_PELLET, how do I decide in my QC what float value TR_PELLET should have in order to be detected and used?
- Is it possible to add custom sprites to effectinfo? How?
Any tutorials anyone can point me at would be greatly appreciated, I have searched for them but not found any.
If there isn't a "beginners' guide to effectinfo" then if people spew everything they know about effectinfo here, I will attempt to write one!
Thanks,
LTH
Anyone actually know how to add a new custom effect to a mod using effectinfo? I want to add a new grenade-trail-like effect.
So, some questions:
- When I create a new effect in effectinfo I give it a name: what does this name relate to? If I call it TR_PELLET, how do I decide in my QC what float value TR_PELLET should have in order to be detected and used?
- Is it possible to add custom sprites to effectinfo? How?
Any tutorials anyone can point me at would be greatly appreciated, I have searched for them but not found any.
If there isn't a "beginners' guide to effectinfo" then if people spew everything they know about effectinfo here, I will attempt to write one!
Thanks,
LTH