Poll

Should I release ([not now tho])?

YUUUS!
34 (91.9%)
This fails... NO!
3 (8.1%)

Total Members Voted: 37

Author Topic: The SRSMG (Private Use ONLY... for now...)  (Read 2450 times)

I present to you, my latest invention as the first addon created mahsalf (yey):

THE SRSMG


I fixed up everythin mahself (including script).
Includes:
  • Custom muzzle flash
  • Custom sound
  • Custom Iconz

If you want to have the ability to scope down muzzle (using the red dot sight), I need someone to halp with the script.

Im hosting a server called ShadowsfeaR's Server: SRSMG IS HEEEERE!!!
Come if you wanna have fuuun.
« Last Edit: February 12, 2010, 11:04:05 AM by ShadowsfeaR »

Did you make sure the sound doesn't ear rape you?

Did you make sure the sound doesn't ear rape you?

Ive worked with everything in an addon but scripting. No, it doesnt.

Must have.....<ridiculously huge ear rape of drooling>

I hope someone will be able to script it to look down the sights.

I hope someone will be able to script it to look down the sights.
Please, no. That's an absolutely stupid idea for a game mechanic in Blockland.

Please, no. That's an absolutely stupid idea for a game mechanic in Blockland.

Your stupid.
If i get my script to work on my weapons, i may can help you. But that is MAYBE.

Yuki's not stupid. He's quite intelligent and ironsights is cool, but not needed. It has no affect on your accuracy or aim.

You can add that into the script :P

This is Gravity Cats Mount On Back Code:
Code: [Select]
datablock ShapeBaseImageData(gc_WeaponNameHereBackImage)
{
  shapeFile = "./WeaponNameHere.dts";
  emap = true;
  mountPoint = $BackSlot;
  offset = "0 -0.35 -0.9";
  eyeOffset = "0 0 10";
  rotation = eulerToMatrix("65 0 90");
  armReady = false;
  doColorShift = false;
};

function gc_WeaonNameHereImage::onMount(%this,%obj,%slot)
{
  parent::onMount(%this,%obj,%slot);
  if(%obj.getMountedImage(1).getName() $= "gc_WeaponNameHereBackImage") { %obj.unMountImage(1); }
}

function gc_WeaponNameHereImage::onUnMount(%this,%obj,%slot)
{
  parent::onUnMount(%this,%obj,%slot);
  %obj.unMountImage(1);
  %obj.mountImage(gc_WeaponNameHereBackImage,1);
}

function gc_WeaponNameHereItem::onPickup(%this,%obj,%col,%a)
{
  for(%i=0;%i<%col.getdatablock().maxTools;%i++)
  {
    %item = %col.tool[%i];
    if(%item $= 0 || %item $= "")
    {
      %freeSlot = 1;
      break;
    }
  }
  if(%obj.canpickup && !isobject(%col.getmountedimage(1)) && %freeSlot) { %col.mountimage(gc_WeaponNameHereBackImage,1); }
  parent::onPickup(%this,%obj,%col,%a);
}

package gc_WeaponNameHerePackage
{
  function servercmdDropTool(%this,%slot)
  {
    if(isobject(%this.player.tool[%slot]) && %this.player.tool[%slot].getname() $= "gc_WeaponNameHereItem")
    {
      parent::servercmdDropTool(%this,%slot);
      if(isobject(%this.player.getmountedimage(1)) && %this.player.getmountedimage(1).getname() $= "gc_WeaponNameHereBackImage") { %this.player.schedule(5,unmountimage,1); }
      return;
    }
    parent::servercmdDropTool(%this,%slot);
  }
};
activatepackage(gc_WeaponNameHerePackage);

Now Of Course, you don't have gc_ because thats Gravity_Cat... So Yeah. :|

This is Gravity Cats Mount On Back Code:
(-snip-)
Now Of Course, you don't have gc_ because thats Gravity_Cat... So Yeah. :|

So would I relplace the gc with Weapon_[name] ?

Where would this go in the script (like after what, or does it matter?)?

This'd be great for my Intervention. ;3
« Last Edit: February 15, 2010, 01:21:19 PM by ShadowsfeaR »

So would I relplace the gc with Weapon_[name] ?

Where would this go in the script (like after what, or does it matter?)?

This'd be great for my Intervention. ;3
No, it doesn't matter where it stands in the script. And the gc_ stuff prevents add-on overwriting.

Once again. Nice model.

So would I relplace the gc with Weapon_[name] ?

Where would this go in the script (like after what, or does it matter?)?

This'd be great for my Intervention. ;3

No, you would all together remove gc_ it would just be like:
SRSMG
I could code it!

It would look cool without the text.

If you want to have the ability to scope down muzzle (using the red dot sight), I need someone to halp with the script.

What do you realy mean with this? Like make it sight?

Reply... please?
« Last Edit: February 22, 2010, 08:25:42 AM by mazeribot »