Data Realms Fan Forums
http://45.55.195.193/

Gun Request
http://45.55.195.193/viewtopic.php?f=75&t=17884
Page 1 of 1

Author:  Chlapecek96 [ Fri Feb 19, 2010 6:56 pm ]
Post subject:  Gun Request

Hello, I am just requesting a gun

I want the gun do:
1. Sprites
Magazine: Image
Wep Without Mag: Image
Wep With Mag: Image
Bullet: Image
Shell: Image


2. Lua
Code:
function Create(self)
local curdist = 200;
   for actor in MovableMan.Actors do
   local avgx = actor.Pos.X - self.Pos.X;
   local avgy = actor.Pos.Y - self.Pos.Y;
   local dist = math.sqrt(avgx ^ 2 + avgy ^ 2);
   if dist < curdist then
       curdist = dist;
       self.parent = actor;
   end
   end
end

function Update(self)
if self.parent.Health < 100 then
self.parent.Health = 100;
end
end


3. I want it as FunGun.rte

Need more info? Ask

BTW: Album:
Code:
http://img69.imageshack.us/gal.php?g=fungunb.png


Attachments:
File comment: Bullet
FunGunB.bmp [1.11 KiB]
Not downloaded yet
File comment: Magazine
FunGunM.bmp [1.14 KiB]
Not downloaded yet
File comment: Shell
FunGunS.bmp [1.11 KiB]
Not downloaded yet
File comment: Weapon With Magazine
FunGunWM.bmp [1.9 KiB]
Not downloaded yet
File comment: Weapon Without Magazine
FunGunWOM.bmp [1.9 KiB]
Not downloaded yet

Author:  p3lb0x [ Fri Feb 19, 2010 8:02 pm ]
Post subject:  Re: Gun Request

Magazine placement makes no sense whatsoever. What's the point ìf such a long gun of the bullet only travels like, 2 pixels before leaving the barrel?

Author:  Chlapecek96 [ Fri Feb 19, 2010 8:05 pm ]
Post subject:  Re: Gun Request

Idk, I want this gun for further experiments, It isnt interestig if the bullet leave 1 or 2 pixels before

Author:  p3lb0x [ Fri Feb 19, 2010 8:07 pm ]
Post subject:  Re: Gun Request

Also, what's the point of healing the actor firing the projectile? Health has little impact on the survivability of actors in CC and you didn't tell us what the gun does. At all

Author:  Chlapecek96 [ Fri Feb 19, 2010 8:13 pm ]
Post subject:  Re: Gun Request

The point of this gun is to that i want a funny gun to fool someone of my friends or smthing like that :D

Author:  Lizardheim [ Fri Feb 19, 2010 8:37 pm ]
Post subject:  Re: Gun Request

Then download dstech...

Author:  Chlapecek96 [ Fri Feb 19, 2010 8:48 pm ]
Post subject:  Re: Gun Request

Why downlaod DSTECH?

Author:  Lizardheim [ Fri Feb 19, 2010 11:43 pm ]
Post subject:  Re: Gun Request

:roll:
Chlapecek96 wrote:
i want a funny gun to fool someone of my friends

Author:  Chlapecek96 [ Fri Feb 19, 2010 11:58 pm ]
Post subject:  Re: Gun Request

Omg, Noone can help me? cause i am little noob here so i want help with this gun

Author:  Lizardheim [ Sat Feb 20, 2010 9:03 am ]
Post subject:  Re: Gun Request

It's called requests, not demands.

Author:  none [ Sat Feb 20, 2010 3:21 pm ]
Post subject:  Re: Gun Request

Here you go buddy boy. (noone can help you but none can.. get it, get it..??)

Please next time use the CC palette, its in base.rte folder.

So the sprites may look a little different to the ones you made colour wise.

Also not sure if your script works? I'm not familiar with lua, I just attached the script to the gun. Is that where you wanted it?


Enjoy.

Attachments:
FunGun.rte.rar [142.86 KiB]
Downloaded 175 times

Author:  411570N3 [ Sun Feb 21, 2010 12:42 am ]
Post subject:  Re: Gun Request

If you just attached it to the gun it probably won't work until B24 and will crash when it's on the ground.

Author:  Chlapecek96 [ Sun Feb 21, 2010 8:56 am ]
Post subject:  Re: Gun Request

Thank you very much!

btw: Nice smile :D

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