Muzzleflashes?
Bots
Join Date: 2002-12-18 Member: 11065Members

<div class="IPBDescription">which goes with which gun?</div> I'm trying to sort out my sprites folder, but I can't remember which muzzleflashes are bound to which weapons. I got it wrong so now my pistol is making a machinegun muzzleflash... any help would be great.
Comments
on the default models - yes.
On custom guns it depends on the qc settings...
This is the difference between v_ and p_models, but the sheme that describes a muzzleflash's position/kind is the same for v_ and p_models.
For p_model muzzle flashes, look the through the *fire sequences in the <b>player model's .qc</b> and you will spot
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->{ event 5011 1 "30" }<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Or such.
Let's bring in the explanation:
{ event 50X1 Y "ZA" }
Note that the last number has 2 DIFFERENT digits!!!
X: Attachment used. 0 = attachment 0; 1 = at. 1; 2 = at. 2
Y: The frame of the sequence at which the sprite is displayed.
Z: Scales the sprite, eg. 2 = double size
A: Tells which muzzleflash.spr is used. A = 0 -> muzzleflash1.spr; 1 = mf2.spr; 2 = mf3.spr
Example:
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->{ event 5021 15 "42" }<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
Displays muzzleflash3.spr at frame 15 on attachment2, scaled up 4 times.