Author |
Message |
Chlapecek96
Joined: Thu Mar 26, 2009 6:20 pm Posts: 10
|
Gun Request
Hello, I am just requesting a gun I want the gun do: 1. SpritesMagazine: Wep Without Mag: Wep With Mag: Bullet: Shell: 2. LuaCode: 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.rteNeed more info? Ask BTW: Album: Code: http://img69.imageshack.us/gal.php?g=fungunb.png
|
Fri Feb 19, 2010 6:56 pm |
|
|
p3lb0x
Forum Moderator
Joined: Fri Feb 02, 2007 3:53 pm Posts: 1896 Location: in my little gay bunker
|
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?
|
Fri Feb 19, 2010 8:02 pm |
|
|
Chlapecek96
Joined: Thu Mar 26, 2009 6:20 pm Posts: 10
|
Re: Gun Request
Idk, I want this gun for further experiments, It isnt interestig if the bullet leave 1 or 2 pixels before
|
Fri Feb 19, 2010 8:05 pm |
|
|
p3lb0x
Forum Moderator
Joined: Fri Feb 02, 2007 3:53 pm Posts: 1896 Location: in my little gay bunker
|
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
|
Fri Feb 19, 2010 8:07 pm |
|
|
Chlapecek96
Joined: Thu Mar 26, 2009 6:20 pm Posts: 10
|
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
|
Fri Feb 19, 2010 8:13 pm |
|
|
Lizardheim
DRL Developer
Joined: Fri May 15, 2009 10:29 am Posts: 4107 Location: Russia
|
Re: Gun Request
Then download dstech...
|
Fri Feb 19, 2010 8:37 pm |
|
|
Chlapecek96
Joined: Thu Mar 26, 2009 6:20 pm Posts: 10
|
Re: Gun Request
Why downlaod DSTECH?
|
Fri Feb 19, 2010 8:48 pm |
|
|
Lizardheim
DRL Developer
Joined: Fri May 15, 2009 10:29 am Posts: 4107 Location: Russia
|
Re: Gun Request
Chlapecek96 wrote: i want a funny gun to fool someone of my friends
|
Fri Feb 19, 2010 11:43 pm |
|
|
Chlapecek96
Joined: Thu Mar 26, 2009 6:20 pm Posts: 10
|
Re: Gun Request
Omg, Noone can help me? cause i am little noob here so i want help with this gun
|
Fri Feb 19, 2010 11:58 pm |
|
|
Lizardheim
DRL Developer
Joined: Fri May 15, 2009 10:29 am Posts: 4107 Location: Russia
|
Re: Gun Request
It's called requests, not demands.
|
Sat Feb 20, 2010 9:03 am |
|
|
none
Joined: Fri Dec 18, 2009 11:00 pm Posts: 167
|
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.
|
Sat Feb 20, 2010 3:21 pm |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
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.
|
Sun Feb 21, 2010 12:42 am |
|
|
Chlapecek96
Joined: Thu Mar 26, 2009 6:20 pm Posts: 10
|
Re: Gun Request
Thank you very much! btw: Nice smile
|
Sun Feb 21, 2010 8:56 am |
|
|
|