yet, another suggestion that should count...

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: yet, another suggestion that should count...

by Doomguy0505 » Sat Jul 30, 2005 8:06 am

ant1991331 wrote:Umm, small problem...

Code: Select all

States
{
Fire:
    BLAH BLAH BLAH etc.

    FLAK 0 A_FireCustomMissile("FlakChunk",random(5, -5),0,0,random(10, -5))
}
DONT WORK!
Saying something about a bad numeric constant in parameter, what's wrong here?

Code: Select all

States
{
Fire: 
FLAK <insert frame> <insert delay> A_FireCustomMissile("FlakChunk",random(5, -5),0,0,random(10, -5))
}

by ant1991331 » Sat Jul 30, 2005 7:05 am

God Damn i hate it when people are right, and post it as a quote! Thanks! :) :) :)

by TheDarkArchon » Sat Jul 30, 2005 7:04 am

Grubber wrote:random (-5, 5)

by ant1991331 » Sat Jul 30, 2005 7:00 am

Is it really? Grubber didn't mention that above :cry:

by TheDarkArchon » Sat Jul 30, 2005 6:58 am

Lowest number first.

by ant1991331 » Sat Jul 30, 2005 6:56 am

Umm, small problem...

Code: Select all

States
{
Fire:
    BLAH BLAH BLAH etc.

    FLAK 0 A_FireCustomMissile("FlakChunk",random(5, -5),0,0,random(10, -5))
}
DONT WORK!
Saying something about a bad numeric constant in parameter, what's wrong here?

by ant1991331 » Fri Jul 29, 2005 9:00 am

Thanks for the tip, Grubber

by Grubber » Fri Jul 29, 2005 8:55 am

Right. Of course you can type whatever you want into it.

by ant1991331 » Fri Jul 29, 2005 8:39 am

Grubber wrote:In place of angle use random (min, max), so it will look like A_CustomMissile ("Rocket", 0, 0, random (-5, 5))
Oh, you can do that???
*Updates FlakCannon*
It wasn't in the Wiki, was it?

And it chooses a random number between -5 and 5 right?

by Cutmanmike » Fri Jul 29, 2005 7:06 am

<3<3<3

by Grubber » Fri Jul 29, 2005 3:56 am

In place of angle use random (min, max), so it will look like A_CustomMissile ("Rocket", 0, 0, random (-5, 5))

by ant1991331 » Tue Jul 26, 2005 11:51 pm

I wanted this added because i was going to make a Flak Cannon (UT)

by Caligari87 » Tue Jul 26, 2005 7:25 pm

waitwaitwaitwaitwait!!!!

*reverenced whisper* random........values......?

I LOVE YOU!

(Do we have vertical speed now?)

8-)

by Graf Zahl » Tue Jul 26, 2005 7:58 am

With the new expression evaluator and random values it should already be possible right now without any change to the code. I haven't looked too closely at the code but maybe Grubber can be more specific.

by Kirby » Tue Jul 26, 2005 7:52 am

I don't see why it's so hard to make a bunch of projectiles shoot out at different angles. The more projectiles at differing heights and angles, the greater the spread. There's no need to add to it for something that can already be done.

Top