ew-progs/ew/ammo/crossbow-bolts.qc
2011-09-06 00:00:00 +00:00

42 lines
830 B
C++

/*
=============================
crossbow-bolts.qc
coded by
Robert de Heus a.k.a Koolio
koolio@planetkoolio.com
http://www.planetkoolio.com
Description:
Holds the shells (crossbow ammo)
=============================
*/
/*
Crossbow ammo pickup
*/
void() item_crossbow_ammo =
{
self.touch = ammo_touch;
//reset our classname
self.classname = "item_crossbow_ammo";
if (self.spawnflags & WEAPON_BIG2)
{
precache_model ("models/items/g_bolt.md2");
setmodel (self, "models/items/g_bolt.md2");
self.aflag = 40;
self.scale = 1.5; //Half as big
}
else
{
precache_model ("models/items/g_bolt.md2");
setmodel (self, "models/items/g_bolt.md2");
self.aflag = 20;
}
self.weapon = 1;
self.netname = "crossbow bolts";
setsize (self, '0 0 0', '32 32 56');
StartItem ();
};