I've found a tutorial for the shotgun's kickback, i tried but, of course, i failed.
-------------------------------------------------------------------------------------
It say:
Open up the weapons.qc file and add this function just under the prototypes:
float(float numb) kickback
{
local float kick;
kick = numb * -1; // reverse it
kick = kick * random(); // randomise it, by multiplying it by a random number from 0 to 1
if (kick > -5) kick = -5; // changes the number if its too small
return kick;
}
-------------------------------------------------------------------------------------
in my weapon.qc I have:
};
void (float numb) kickback =
{
local float kick;
kick = (numb * CONTENT_EMPTY);
kick = (kick * random ());
if ((kick > CONTENT_LAVA))
{
kick = CONTENT_LAVA;
}
};
------------------------------------------------------------------------------------
how do i have to mix them?
thank you