Author Topic: How to Make Weapons for Blockland - The Up-To-Date version. (As of 2 years ago)  (Read 85149 times)

First of all everyone notices the function still says Aikombo gun...
you need to change it to the name of your gun
so you do this:
};

function LeftHandedGunImage::onFire(%this, %obj, %slot){
   Parent::onFire(%this,%obj,%slot);
   if(%obj.getDamagePercent() < 1.0)
      %obj.playThread(2, leftrecoil);
}

function NameOfYourGunImage::onMount(%this, %obj, %slot)
{
   Parent::onMount(%this, %obj, %slot);
   //mount lefthanded gun
   %obj.mountImage(LeftHandedGunImage, 1);
   //%obj.playThread(0, armreadyboth);
}
function NameOfYourGunImage::onUnMount(%this, %obj, %slot)
{
   Parent::onUnMount(%this, %obj, %slot);
   //unmount lefthanded gun
   %obj.unMountImage(1);
   //%obj.playThread(0, root);
}


function LeftHandedGunImage::onMount(%this, %obj, %slot)
{
   Parent::onMount(%this, %obj, %slot);
   %obj.playThread(1, armreadyboth);
}
function LeftHandedGunImage::onUnMount(%this, %obj, %slot)

{
   Parent::onUnMount(%this, %obj, %slot);
}

function NameOfYourGunImage::onFire(%this,%obj,%slot)
{
   if(%obj.getDamagePercent() < 1.0)
      %obj.playThread(2, shiftAway);
   Parent::onFire(%this,%obj,%slot);   

   //%obj.setImageTrigger(1,1);
}



« Last Edit: October 31, 2009, 04:21:28 AM by RFW2 »

YOU SAVED MY LIFE how did it take to make this?

Loading Add-On: Weapon_GunLOL (CRC:-465144502)
Executing Add-Ons/Weapon_GunLOL/server.cs.
Add-Ons/Weapon_GunLOL/server.cs (0): preload failed for GunLOLItem: ShapeBaseData: Couldn't load shape "Add-Ons/Weapon_GunLOL/GunLOL.dts".
Object 'GunLOLProjectile' is not a member of the 'ProjectileData' data block class
Add-Ons/Weapon_GunLOL/server.cs (0): preload failed for GunLOLImage: Unable to load shape: Add-Ons/Weapon_GunLOL/GunLOL.dts.
0 datablocks added.


That is what my console says, any help?

For some reason I can't rename my PNG File?

Loading Add-On: Weapon_GunLOL (CRC:-465144502)
Executing Add-Ons/Weapon_GunLOL/server.cs.
Add-Ons/Weapon_GunLOL/server.cs (0): preload failed for GunLOLItem: ShapeBaseData: Couldn't load shape "Add-Ons/Weapon_GunLOL/GunLOL.dts".
Object 'GunLOLProjectile' is not a member of the 'ProjectileData' data block class
Add-Ons/Weapon_GunLOL/server.cs (0): preload failed for GunLOLImage: Unable to load shape: Add-Ons/Weapon_GunLOL/GunLOL.dts.
0 datablocks added.


That is what my console says, any help?
Sir, you're missing the .dts files or they're not exported properly.
Try again.


You sir have answered all my questions. Now if only i could model in something else than milkshape since my trial is over :(. VERY nice guide.

could you make a starting script for a machine gun?

And if you make a throwing object, put it where it throws from.
So, the mountPoint and the muzzlePoint are overlapping each other?

There's an important thing you have to note, and I just realized this, the flatshading will not work if you don't select the faces by vertex (option that Bushido has checked off) and this whole time I was wondering why I couldn't flatshade :P

Edit: Pi I'm not entirely sure but I'm pretty sure that's correct--it makes sense to me.

This one great tutorial I will definitely be using this for reference!

So, the mountPoint and the muzzlePoint are overlapping each other?
Sure. The muzzlePoint is just the point that, after the animation, the projectile will appear and be hurdled out to where you aimed.
could you make a starting script for a machine gun?
I could.
I did: http://www.mediafire.com/?j5qmizmyen0
« Last Edit: December 06, 2009, 01:20:58 PM by Azerath »

a very good guide. helpful it should stay on the front page. can i ask if it hasnt been ask: how do you create a delay like in the spartan laser?

Hi I'm just starting out and i need to model my own weapon but i cant find a tutorial on how to start and I'm getting really confused if you know a site please send me a link.

Nice, I used this as my first tutorial.