ew-progs/ew/ammo/mana-blue.qc
2011-09-06 00:00:00 +00:00

43 lines
890 B
C++

/*
=============================
mana-blue.qc
coded by
Robert de Heus a.k.a Koolio
koolio@planetkoolio.com
http://www.planetkoolio.com
Description:
Holds the nails (blue mana, ammo for weapon 3 and 4) replaces nails
=============================
*/
/*
Blue mana ammo
*/
void() item_mana_blue =
{
self.touch = ammo_touch;
//reset our classname
self.classname = "item_mana_blue";
if (self.spawnflags & WEAPON_BIG2)
{
precache_model ("models/items/mana/flask.md2");
setmodel (self, "models/items/mana/flask.md2");
self.aflag = 50;
self.scale = 1.5; //Slightly bigger than normal
}
else
{
precache_model ("models/items/mana/flask.md2");
setmodel (self, "models/items/mana/flask.md2");
self.aflag = 25;
}
self.skin = 0;
self.weapon = 2;
self.netname = "blue mana";
setsize (self, '0 0 0', '32 32 56');
StartItem ();
};