hehehe...i made a weapon =)
//***********************************************
// Chaos Sword
//***********************************************
$AccessoryVar[ChaosSword, $AccessoryType] = $SwordAccessoryType;
$AccessoryVar[ChaosSword, $SpecialVar] = "6 300";
$AccessoryVar[ChaosSword, $Weight] = 15;
$AccessoryVar[ChaosSword, $MiscInfo] = "The ultimate sword for Fighters.";
$SkillType[ChaosSword] = $SkillSlashing;
$ItemCost[ChaosSword] = GenerateItemCost(ChaosSword);
ItemImageData ChaosSwordImage
{
shapeFile = "elfinblade";
mountPoint = 0;
weaponType = 0; // Single Shot
reloadTime = 0;
fireTime = GetDelay(ChaosSword);
minEnergy = 0;
maxEnergy = 0;
accuFire = true;
sfxFire = SoundSwing3;
sfxActivate = AxeSlash2;
};
ItemData ChaosSword
{
heading = "bWeapons";
description = "Chaos Sword";
className = "Weapon";
shapeFile = "katana";
hudIcon = "blaster";
shadowDetailMask = 4;
imageType = ChaosSwordImage;
price = 0;
showWeaponBar = true;
};
function ChaosSwordImage::onFire(%player, %slot)
{
MeleeAttack(%player, GetRange(ChaosSword), ChaosSword);
}