Spawning a railgun shot with a pitch?

Discuss all aspects related to modding Zandronum here.
Post Reply
Catastrophe
Retired Staff / Community Team Member
Posts: 2569
Joined: Sat Jun 02, 2012 2:44 am

Spawning a railgun shot with a pitch?

#1

Post by Catastrophe » Wed Sep 05, 2012 12:39 am

How would you spawn a railgun shot that has a pitch? (Not shooting forward all the time.)

I'm completely stumped at this.

User avatar
Torvald
Forum Regular
Posts: 488
Joined: Tue Jun 26, 2012 3:14 am
Location: Nothern Hemisphere

RE: Spawning a railgun shot with a pitch?

#2

Post by Torvald » Wed Sep 05, 2012 1:12 am

Well you could use A_RailAttack and define spread_xy & spread_z.
Cyber: was chased by cowboys
Nautilus: Cowboys? more like a buncha kids chasing a fucking ice cream truck
UnixAssassin wrote: The definition of cheating is not this: Using an aim assisting tool in a game
BEST.EVER.
Teamspeak: WUMBO.CA

Catastrophe
Retired Staff / Community Team Member
Posts: 2569
Joined: Sat Jun 02, 2012 2:44 am

RE: Spawning a railgun shot with a pitch?

#3

Post by Catastrophe » Wed Sep 05, 2012 1:30 am

That's not what I mean.

Like, for it to aim up or down, not its spread(which is also random iirc).

User avatar
Torvald
Forum Regular
Posts: 488
Joined: Tue Jun 26, 2012 3:14 am
Location: Nothern Hemisphere

RE: Spawning a railgun shot with a pitch?

#4

Post by Torvald » Wed Sep 05, 2012 1:41 am

I honestly have no idea what you mean then. When you say pitch, I immediately assume x & y for the projectile.
Cyber: was chased by cowboys
Nautilus: Cowboys? more like a buncha kids chasing a fucking ice cream truck
UnixAssassin wrote: The definition of cheating is not this: Using an aim assisting tool in a game
BEST.EVER.
Teamspeak: WUMBO.CA

Catastrophe
Retired Staff / Community Team Member
Posts: 2569
Joined: Sat Jun 02, 2012 2:44 am

RE: Spawning a railgun shot with a pitch?

#5

Post by Catastrophe » Wed Sep 05, 2012 2:02 am

Say you are in one spot, you look up and shoot something. When you spawn a railgunshot it only can aim forward(eg no freelook style aim).

Minigunner
 
Posts: 86
Joined: Mon Jun 04, 2012 5:24 am
Location: California

RE: Spawning a railgun shot with a pitch?

#6

Post by Minigunner » Wed Sep 05, 2012 3:27 am

ZDoom-only, sorry.
Theshooter7 wrote:Also, to all those people who stack players for exploits: I hate you. Do I really need to seal off every inch of every map to prevent you from getting to places you shouldn't?

TheMisterCat
 
Posts: 79
Joined: Mon Jun 04, 2012 2:21 pm
Location: NZ

RE: Spawning a railgun shot with a pitch?

#7

Post by TheMisterCat » Wed Sep 05, 2012 4:22 am

let me know if you figure something out, I've been using a very hacky method in wormsdoom that doesn't quite work properly - instead of using a_railattack I have the player spawn an invisible actor with transferred pitch in front of him that uses the monster rail attack function... unfortunately this autotargets anything shootable so if it can see anything the aim will be off

Llewellyn
Forum Regular
Posts: 578
Joined: Mon Jul 02, 2012 7:12 am

RE: Spawning a railgun shot with a pitch?

#8

Post by Llewellyn » Wed Sep 05, 2012 5:08 am

Erm, why not use the original A_FireRailgun?
(And A_FireRailgunLeft, A_FireRailgunRight for offsets)

I mean, if you need custom colors use A_RailAttack, it inherits your pitch too...
I'm not really sure what the problem is?
Last edited by Llewellyn on Wed Sep 05, 2012 5:22 am, edited 1 time in total.

Post Reply