Take a look at the baseclass fire() function for bullets. It goes through all the steps from leaving decals on the world and models to throwing particles.
On Nov 11, 2007 10:24 AM, Josh Marshall <[EMAIL PROTECTED]> wrote: > Hey, > > A single-player mod im working on requires to use models from CSS, now > everything is working fine. Muzzle flash is in the right place and > recoil anim's are fixed, problem is... when the gun runs out of ammo > it will still play the recoil anim and show a muzzle flash. Any way to > stop the muzzle flash from playing when the clips empty? > > As for the blood effects for this mod we want to add a blood spurt > effect from the point of entry when the NPC's take damage, similar to > in SMOD. I know I have to use the UTIL_BloodSpray function and also > TraceLines but there isn't any documentation online that I can find > which will help me to implement this sort of effect. So any help would > be great, and im sure other people would benifit from knowing this as > it seems to be a sought after effect. Im not sure where it would be > defined, for HL2MP I know its in the OnTakeDamage function but for > NPC's in SP im not sure thats right. > > Thankyou! > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please > visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > -- ~skidz _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

