The Exiled
http://theexiled.pwnageservers.com/forum/

More help needed...(Dual Wielding)
http://theexiled.pwnageservers.com/forum/viewtopic.php?f=4&t=611
Page 1 of 1

Author:  BD Thunder [ Sat Oct 15, 2005 6:42 pm ]
Post subject:  More help needed...(Dual Wielding)

well heres what i have and still no dice....

Item.cs=
Code:

ItemData DiscAmmo
{
   description = "Disc";
   className = "Ammo";
   shapeFile = "discammo";
   heading = "xAmmunition";
   shadowDetailMask = 4;
   price = 2;
};


ItemImageData DiscLauncher2Image
{
   shapeFile = "disc";
   mountPoint = 0;
   mountRotation = { 3, -1.5, 0 };

   weaponType = 3; // DiscLauncher
   ammoType = DiscAmmo;
   projectileType = DiscShell;
   accuFire = true;
   reloadTime = 0.25;
   fireTime = 1.25;
   spinUpTime = 0.25;

   sfxFire = SoundFireDisc;
   sfxActivate = SoundPickUpWeapon;
   sfxReload = SoundDiscReload;
   sfxReady = SoundDiscSpin;
};

ItemData DiscLauncher2
{
   description = "Disc Launcher";
   className = "Weapon";
   shapeFile = "disc";
   hudIcon = "disk";
   heading = "bWeapons";
   shadowDetailMask = 4;
   imageType = DiscLauncherImage;
   price = 150;
   showWeaponBar = true;
};



ItemImageData DiscLauncherImage
{
   shapeFile = "disc";
   mountPoint = 0;

   weaponType = 3; // DiscLauncher
   ammoType = DiscAmmo;
   projectileType = DiscShell;
   accuFire = true;
   reloadTime = 0.25;
   fireTime = 1.25;
   spinUpTime = 0.25;

   sfxFire = SoundFireDisc;
   sfxActivate = SoundPickUpWeapon;
   sfxReload = SoundDiscReload;
   sfxReady = SoundDiscSpin;
};

ItemData DiscLauncher
{
   description = "Disc Launcher";
   className = "Weapon";
   shapeFile = "disc";
   hudIcon = "disk";
   heading = "bWeapons";
   shadowDetailMask = 4;
   imageType = DiscLauncherImage;
   price = 150;
   showWeaponBar = true;
};

function DiscLauncher::onMount(%player,%item)
{
   Player::mountItem(%player,DisLauncher2,4);
}

function DiscLauncher::onUnmount(%player,%item)
{
   Player::unmountItem(%player,4);
}



$AutoUse[Blaster] = True;
$AutoUse[Chaingun] = True;
$AutoUse[PlasmaGun] = True;
$AutoUse[Mortar] = True;
$AutoUse[GrenadeLauncher] = True;
$AutoUse[LaserRifle] = True;
$AutoUse[EnergyRifle] = True;
$AutoUse[TargetingLaser] = False;
$AutoUse[ChargeGun] = True;
$AutoUse[DiscLauncher2] = true;


$WeaponAmmo[Blaster] = "";
$WeaponAmmo[PlasmaGun] = PlasmaAmmo;
$WeaponAmmo[Chaingun] = BulletAmmo;
$WeaponAmmo[DiscLauncher] = DiscAmmo;
$WeaponAmmo[DiscLauncher2] = DiscAmmo;
$WeaponAmmo[GrenadeLauncher] = GrenadeAmmo;
$WeaponAmmo[Mortar] = Mortar;
$WeaponAmmo[LaserRifle] = "";
$WeaponAmmo[EnergyRifle] = "";

$NextWeapon[EnergyRifle] = Blaster;
$NextWeapon[Blaster] = PlasmaGun;
$NextWeapon[PlasmaGun] = Chaingun;
$NextWeapon[Chaingun] = DiscLauncher;
$NextWeapon[DiscLauncher] = GrenadeLauncher;
$NextWeapon[GrenadeLauncher] = Mortar;
$NextWeapon[Mortar] = LaserRifle;
$NextWeapon[LaserRifle] = Disclauncher2;
$NextWeapon[DiscLauncher2] = EnergyRifle;

$PrevWeapon[Blaster] = EnergyRifle;
$PrevWeapon[PlasmaGun] = Blaster;
$PrevWeapon[Chaingun] = PlasmaGun;
$PrevWeapon[DiscLauncher] = Chaingun;
$PrevWeapon[GrenadeLauncher] = DiscLauncher;
$PrevWeapon[Mortar] = GrenadeLauncher;
$PrevWeapon[LaserRifle] = Mortar;
$PrevWeapon[DiscLauncher2] = LaserRifle;
$PrevWeapon[EnergyRifle] = DiscLauncher2;


ARMOR:


$ItemMax[larmor, Blaster] = 1;
$ItemMax[larmor, Chaingun] = 1;
$ItemMax[larmor, Disclauncher] = 1;
$ItemMax[larmor, GrenadeLauncher] = 1;
$ItemMax[larmor, Mortar] = 0;
$ItemMax[larmor, PlasmaGun] = 1;
$ItemMax[larmor, LaserRifle] = 1;
$ItemMax[larmor, EnergyRifle] = 1;
$ItemMax[larmor, TargetingLaser] = 1;
$ItemMax[larmor, MineAmmo] = 3;
$ItemMax[larmor, Grenade] = 5;
$ItemMax[larmor, Beacon]  = 3;
$ItemMax[larmor, Disclauncher2] = 1;


What am i missing or what did i do wrong??

 

Author:  TE-Noxwizard [ Sat Oct 15, 2005 6:59 pm ]
Post subject: 

Let me get something clear first. You are making a dual image weapon right? To do that you mount a second image on to the first one. You need to change all the DiscLauncher2 stuff to DiscLauncher. Change the stuff in the armor data, the prev/next weapons, the autouse part, and the ItemMax part. The only thing that needs a 2 is the image itself.

Next time, just continue on your other thread since it is about the same problem.

Author:  BD Thunder [ Sat Oct 15, 2005 7:54 pm ]
Post subject: 

alright il see how that works out :lol: :lol: :lol:

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/