View unanswered posts | View active topics It is currently Thu Dec 26, 2024 9:24 pm



Reply to topic  [ 13 posts ] 
 Gun Request 
Author Message

Joined: Thu Mar 26, 2009 6:20 pm
Posts: 10
Reply with quote
Post 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
Fri Feb 19, 2010 6:56 pm
Profile
Forum Moderator
User avatar

Joined: Fri Feb 02, 2007 3:53 pm
Posts: 1896
Location: in my little gay bunker
Reply with quote
Post 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
Profile

Joined: Thu Mar 26, 2009 6:20 pm
Posts: 10
Reply with quote
Post 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
Profile
Forum Moderator
User avatar

Joined: Fri Feb 02, 2007 3:53 pm
Posts: 1896
Location: in my little gay bunker
Reply with quote
Post 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
Profile

Joined: Thu Mar 26, 2009 6:20 pm
Posts: 10
Reply with quote
Post 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


Fri Feb 19, 2010 8:13 pm
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: Gun Request
Then download dstech...


Fri Feb 19, 2010 8:37 pm
Profile

Joined: Thu Mar 26, 2009 6:20 pm
Posts: 10
Reply with quote
Post Re: Gun Request
Why downlaod DSTECH?


Fri Feb 19, 2010 8:48 pm
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: Gun Request
:roll:
Chlapecek96 wrote:
i want a funny gun to fool someone of my friends


Fri Feb 19, 2010 11:43 pm
Profile

Joined: Thu Mar 26, 2009 6:20 pm
Posts: 10
Reply with quote
Post 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
Profile
DRL Developer
DRL Developer

Joined: Fri May 15, 2009 10:29 am
Posts: 4107
Location: Russia
Reply with quote
Post Re: Gun Request
It's called requests, not demands.


Sat Feb 20, 2010 9:03 am
Profile

Joined: Fri Dec 18, 2009 11:00 pm
Posts: 167
Reply with quote
Post 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 174 times
Sat Feb 20, 2010 3:21 pm
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post 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
Profile WWW

Joined: Thu Mar 26, 2009 6:20 pm
Posts: 10
Reply with quote
Post Re: Gun Request
Thank you very much!

btw: Nice smile :D


Sun Feb 21, 2010 8:56 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 13 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.597s | 14 Queries | GZIP : Off ]