1
0
Fork 0
forked from fte/fteqw

*** empty log message ***

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1848 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Magnus 2006-01-12 03:22:22 +00:00
parent f667db2a35
commit 601d04ee4d

View file

@ -895,7 +895,7 @@ void() ammo_touch =
sprint (other, 2, ammocountftos); sprint (other, 2, ammocountftos);
sprint (other, 2, ") "); sprint (other, 2, ") ");
AddStackable(other, ammotype, ammocount); TryGiveStackable(other, ammotype, ammocount);
if (random()*20 <= 10) if (random()*20 <= 10)
{ {
@ -918,7 +918,7 @@ void() ammo_touch =
sprint (other, 2, ammocountftos); sprint (other, 2, ammocountftos);
sprint (other, 2, ") "); sprint (other, 2, ") ");
AddStackable(other, ammotype, ammocount); TryGiveStackable(other, ammotype, ammocount);
if (random()*20 <= 10) if (random()*20 <= 10)
{ {
@ -937,7 +937,7 @@ void() ammo_touch =
sprint (other, 2, ammocountftos); sprint (other, 2, ammocountftos);
sprint (other, 2, ") "); sprint (other, 2, ") ");
AddStackable(other, ammotype, ammocount); TryGiveStackable(other, ammotype, ammocount);
if (random()*20 <= 10) if (random()*20 <= 10)
{ {
@ -957,7 +957,7 @@ void() ammo_touch =
sprint (other, 2, ammocountftos); sprint (other, 2, ammocountftos);
sprint (other, 2, ") "); sprint (other, 2, ") ");
AddStackable(other, ammotype, ammocount); TryGiveStackable(other, ammotype, ammocount);
if (random()*20 <= 10) if (random()*20 <= 10)
{ {
@ -1536,22 +1536,22 @@ void() BackpackTouch =
if (self.weapon == 1) if (self.weapon == 1)
{ {
AddStackable(other, IID_AM_10MM, floor(9+random()*9)); TryGiveStackable(other, IID_AM_10MM, floor(9+random()*9));
sprint(other, 2, " 10mm ammo"); sprint(other, 2, " 10mm ammo");
} }
else if (self.weapon == 2) else if (self.weapon == 2)
{ {
AddStackable(other, IID_AM_556MM, floor(5+random()*5)); TryGiveStackable(other, IID_AM_556MM, floor(5+random()*5));
sprint(other, 2, " 5mm ammo"); sprint(other, 2, " 5mm ammo");
} }
else if (self.weapon == 3) else if (self.weapon == 3)
{ {
AddStackable(other, IID_AM_12GAUGESHELLS, floor(3+random()*3)); TryGiveStackable(other, IID_AM_12GAUGESHELLS, floor(3+random()*3));
sprint(other, 2, " 12 gauge ammo"); sprint(other, 2, " 12 gauge ammo");
} }
else if (self.weapon == 4) else if (self.weapon == 4)
{ {
AddStackable(other, IID_AM_10MM, floor(9+random()*9)); TryGiveStackable(other, IID_AM_10MM, floor(9+random()*9));
sprint(other, 2, " 10mm ammo"); sprint(other, 2, " 10mm ammo");
} }
else else