Page 1 of 1
Spawning a railgun shot with a pitch?
Posted: Wed Sep 05, 2012 12:39 am
by Catastrophe
How would you spawn a railgun shot that has a pitch? (Not shooting forward all the time.)
I'm completely stumped at this.
RE: Spawning a railgun shot with a pitch?
Posted: Wed Sep 05, 2012 1:12 am
by Torvald
Well you could use A_RailAttack and define spread_xy & spread_z.
RE: Spawning a railgun shot with a pitch?
Posted: Wed Sep 05, 2012 1:30 am
by Catastrophe
That's not what I mean.
Like, for it to aim up or down, not its spread(which is also random iirc).
RE: Spawning a railgun shot with a pitch?
Posted: Wed Sep 05, 2012 1:41 am
by Torvald
I honestly have no idea what you mean then. When you say pitch, I immediately assume x & y for the projectile.
RE: Spawning a railgun shot with a pitch?
Posted: Wed Sep 05, 2012 2:02 am
by Catastrophe
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).
RE: Spawning a railgun shot with a pitch?
Posted: Wed Sep 05, 2012 3:27 am
by Minigunner
ZDoom-only, sorry.
RE: Spawning a railgun shot with a pitch?
Posted: Wed Sep 05, 2012 4:22 am
by TheMisterCat
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
RE: Spawning a railgun shot with a pitch?
Posted: Wed Sep 05, 2012 5:08 am
by Llewellyn
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?