View unanswered posts | View active topics It is currently Thu Dec 26, 2024 7:59 am



Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
 Coffee sprayer - from Awesome cracks down (V.1.0.1) 
Author Message
User avatar

Joined: Tue May 19, 2009 11:21 pm
Posts: 23
Location: Ostrava, Czech Republic
Reply with quote
Post Re: Coffee sprayer - from Awesome cracks down (V.1.0.1)
Make there two kinds of MOPixels - one for the coffee itself and one for Lua. That'll lower the count of lua-powered particles without an influence on the coffee spraying itself.


Mon Jun 15, 2009 7:19 am
Profile ICQ WWW
User avatar

Joined: Wed May 27, 2009 8:33 pm
Posts: 68
Reply with quote
Post Re: Coffee sprayer - from Awesome cracks down (V.1.0.1)
I dont know about that Anime/Cartoon, but HELL, a coffee-sprayer. I mean - if that aint epic. What is? :D

The only thing that could top that is a grenadeversion looking like a coffeemug, spilling a little coffee when thrown and exploding in a brown, delightfully hot mist of godly coffeebeans.





Mmmmh...


Mon Jun 15, 2009 8:12 am
Profile
User avatar

Joined: Sun Dec 21, 2008 8:16 am
Posts: 293
Reply with quote
Post Re: Coffee sprayer - from Awesome cracks down (V.1.0.1)
That does it, now you gotta do a ninja actor that says "Oh you think thats hard? I'M JUST THE TUTORIAL LEVEL!" (Awesome Gaiden reference) every time he kills someone.


Tue Jun 16, 2009 12:36 am
Profile
User avatar

Joined: Sat Nov 18, 2006 8:11 pm
Posts: 267
Reply with quote
Post Re: Coffee sprayer - from Awesome cracks down (V.1.0.1)
mail2345 wrote:
Ahh, I see my error, apparently the particles don't move fast enough for a cast MO ray to work.
Change this:

Code:
function Update(self)
local changeID = 255
changeID = SceneMan:CastMORay(self.Pos,Vector(self.Vel.X, self.Vel.Y),self.ID,-0, true,0)
if changeID ~= 255 then
self.targ = MovableMan:GetMOFromID(changeID)

To:
Code:
    local curdist = 10;
    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.targ = actor;
   end
    end
if self.targ ~= nil then


The mod community would be lost without you.


Tue Jun 16, 2009 7:01 pm
Profile WWW
User avatar

Joined: Fri Dec 22, 2006 4:20 am
Posts: 4772
Location: Good news everyone!
Reply with quote
Post Re: Coffee sprayer - from Awesome cracks down (V.1.0.1)
Yes, it would.
Mail seems like the only person who has memorized lua.

Except for TLB, etc.


Tue Jun 16, 2009 10:59 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 20 posts ]  Go to page Previous  1, 2

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.487s | 13 Queries | GZIP : Off ]