Sparks Effects for Shotguns
by : Error

Step 1)

        Open the weapons.qc file and find this code:

/*
================
SpawnBlood
================
*/
void(vector org, vector vel, float damage) SpawnBlood =
{
        particle (org, vel*0.1, 73, damage*2);
};


        After that code paste this code:

void(vector org, vector vel, float damage) Spark =
{
        particle (org, vel*0.1, 243, damage);
};


        If you change the number in red to any number
        from 0-255 then it will make a different
        color.

Step 2)

        Now you need to go down to the TraceAttack(); function
        and find this code:

WriteCoord (MSG_BROADCAST, org_z);

        After that code paste this new code:

Spark (org, vel*0.2, damage);



Step 3)

        Well, that's all.  See, I told you it was easssy.
        Compile your project.  I suggest QcApe for a
        compiler.  Go ahead, shoot the shotgun and watch
        the sparks fly.