Weapons/Basic Sword
PHP Code:
join( "functions_weapon" );
//#CLIENTSIDE
function onCreated( NULL )
{
this.item_type = "weapon";
this.item_name = "Basic Sword";
this.item_var = "basicsword";
this.sword_damage = 10;
this.sword_freezetime = .5;
this.sword_gani_idle = "idle";
this.sword_gani_walk = "walk";
this.sword_gani_attack = "sword";
this.sword_image = "sword2.png";
}
in the class
PHP Code:
[...]
//#CLIENTSIDE
[...]
function onWeaponFired( NULL )
{
equipWeapon( NULL );
}