yet, another suggestion that should count...

Moderator: GZDoom Developers

ant1991331
Posts: 598
Joined: Fri Jun 24, 2005 3:19 am
Location: Makin tracks with jetboots

yet, another suggestion that should count...

Post by ant1991331 »

A_CustomMissile, and A_FireCustomMissile should have another parameter added, vertical and horizontal spread, an inaccurate projectile weapon (such as a Plasma Gun would) would work very well indeed. :D
ant1991331
Posts: 598
Joined: Fri Jun 24, 2005 3:19 am
Location: Makin tracks with jetboots

Post by ant1991331 »

No one??? This is serious, for the 'High-Powered' weapons...
User avatar
Kirby
Posts: 2697
Joined: Thu Aug 26, 2004 1:23 pm

Post by Kirby »

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

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.
User avatar
Caligari87
Admin
Posts: 6174
Joined: Thu Feb 26, 2004 3:02 pm
Preferred Pronouns: He/Him
Contact:

Post by Caligari87 »

waitwaitwaitwaitwait!!!!

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

I LOVE YOU!

(Do we have vertical speed now?)

8-)
ant1991331
Posts: 598
Joined: Fri Jun 24, 2005 3:19 am
Location: Makin tracks with jetboots

Post by ant1991331 »

I wanted this added because i was going to make a Flak Cannon (UT)
User avatar
Grubber
Posts: 1031
Joined: Wed Oct 15, 2003 12:19 am
Location: Czech Republic
Contact:

Post by Grubber »

In place of angle use random (min, max), so it will look like A_CustomMissile ("Rocket", 0, 0, random (-5, 5))
User avatar
Cutmanmike
Posts: 11335
Joined: Mon Oct 06, 2003 3:41 pm
Operating System Version (Optional): Windows 10
Location: United Kingdom
Contact:

Post by Cutmanmike »

<3<3<3
ant1991331
Posts: 598
Joined: Fri Jun 24, 2005 3:19 am
Location: Makin tracks with jetboots

Post by ant1991331 »

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?
User avatar
Grubber
Posts: 1031
Joined: Wed Oct 15, 2003 12:19 am
Location: Czech Republic
Contact:

Post by Grubber »

Right. Of course you can type whatever you want into it.
ant1991331
Posts: 598
Joined: Fri Jun 24, 2005 3:19 am
Location: Makin tracks with jetboots

Post by ant1991331 »

Thanks for the tip, Grubber
ant1991331
Posts: 598
Joined: Fri Jun 24, 2005 3:19 am
Location: Makin tracks with jetboots

Post by ant1991331 »

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?
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

Lowest number first.
ant1991331
Posts: 598
Joined: Fri Jun 24, 2005 3:19 am
Location: Makin tracks with jetboots

Post by ant1991331 »

Is it really? Grubber didn't mention that above :cry:
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

Grubber wrote:random (-5, 5)
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”