41 lines
856 B
C++
41 lines
856 B
C++
/*
|
|
=============================
|
|
mana-grey.qc
|
|
coded by
|
|
Robert de Heus a.k.a Koolio
|
|
koolio@planetkoolio.com
|
|
http://www.planetkoolio.com
|
|
|
|
Description:
|
|
Holds the grey mana (ammo for weapon 7,8) replaces cells
|
|
=============================
|
|
*/
|
|
|
|
void() item_mana_grey =
|
|
{
|
|
self.touch = ammo_touch;
|
|
|
|
//reset our classname
|
|
self.classname = "item_mana_grey";
|
|
|
|
if (self.spawnflags & WEAPON_BIG2)
|
|
{
|
|
precache_model ("models/items/mana/flask.md2");
|
|
setmodel (self, "models/items/mana/flask.md2");
|
|
self.aflag = 12;
|
|
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 = 6;
|
|
}
|
|
self.skin = 3;
|
|
self.weapon = 4;
|
|
self.netname = "grey mana";
|
|
setsize (self, '0 0 0', '32 32 56');
|
|
|
|
StartItem ();
|
|
};
|
|
|