31 lines
653 B
C++
31 lines
653 B
C++
|
/*
|
||
|
=============================
|
||
|
g_sword.qc
|
||
|
coded by
|
||
|
Michael Rogers a.k.a Xsniper
|
||
|
ssj_xsniper@yahoo.com
|
||
|
http://www.xsniper.net/
|
||
|
|
||
|
Description:
|
||
|
Sword weapon pickup
|
||
|
=============================
|
||
|
*/
|
||
|
|
||
|
void() weapon_sword =
|
||
|
{
|
||
|
precache_model ("models/weapons/gfx/g_sword.md2");
|
||
|
setmodel (self, "models/weapons/gfx/g_sword.md2");
|
||
|
|
||
|
self.frame = 39; //set frame
|
||
|
self.skin = 0; //First skin
|
||
|
ColouredGlow(0.2,0.71,0.92,250); //Sets glow to sky-blue
|
||
|
|
||
|
self.netname = "Soul Sword";
|
||
|
self.touch = weapon_touch;
|
||
|
setsize (self, '-16 -16 0', '16 16 56');
|
||
|
|
||
|
//get our classname right
|
||
|
self.classname = "weapon_sword";
|
||
|
|
||
|
StartItem ();
|
||
|
};
|