-.float silent;
+.bool silent;
void Casing_Delete()
{
if(time >= self.nextthink)
{
string s;
- float f;
+ int f = floor(prandom() * 3) + 1;
- f = floor(prandom() * 3) + 1;
switch(self.state)
{
case 1:
- s = strcat("weapons/casings", ftos(f), ".wav");
+ s = strcat("weapons/casings", itos(f), ".wav");
break;
default:
- s = strcat("weapons/brass", ftos(f), ".wav");
+ s = strcat("weapons/brass", itos(f), ".wav");
break;
}
self.nextthink = time + 0.2;
}
-void Casing_Damage(float thisdmg, float hittype, vector org, vector thisforce)
+void Casing_Damage(float thisdmg, int hittype, vector org, vector thisforce)
{
if(thisforce_z < 0)
thisforce_z = 0;