Page 486 of 972

Re: The "How do I..." Thread

Posted: Wed Feb 25, 2015 10:50 pm
by edward850
SamVision wrote:I'll see if I can recreate this somehow, but the main issue is having the hitscan shots aim independently of the player's aim based on what enemies are on-screen. I don't think it is possible with normal hitscans but I have yet to try A_RailAttack for this purpose.
A_RailAttack is entirely that anyway. It has never used autoaim due to how it's designed as a pinpoint attack.

Re: The "How do I..." Thread

Posted: Thu Feb 26, 2015 1:44 am
by SamVision
How doth one accomplish such feat though? How can you make the rail attack aim at a monster independently of the player's aim?

Re: The "How do I..." Thread

Posted: Thu Feb 26, 2015 1:45 am
by edward850
... Wait, so are you or aren't you talking about the autoaim function? And no, A_RailAttack cannot autoaim.

Re: The "How do I..." Thread

Posted: Thu Feb 26, 2015 2:10 am
by SamVision
Okay then, so is there a way I can make normal hitscan attacks aim independently of each other and the player's aim, and automatically hit any monster in the player's view? You know, just like the Doom 64 unmaker.

Re: The "How do I..." Thread

Posted: Thu Feb 26, 2015 1:43 pm
by Ed the Bat
I made a feature suggestion a couple of years ago to allow A_RailAttack to honor autoaim, but I'm still waiting. However, someone kindly created a method to get me the results I wanted.

Re: The "How do I..." Thread

Posted: Thu Feb 26, 2015 2:13 pm
by SamVision
Neat, I'll take a look.

Re: The "How do I..." Thread

Posted: Fri Feb 27, 2015 7:24 am
by MetroidJunkie
How to make the player be a different class from level to level? They're custom levels so ACS will work.

Re: The "How do I..." Thread

Posted: Fri Feb 27, 2015 7:39 am
by edward850
You don't. The player class isn't designed to be dynamically changed.
You can morph them, but it's designed for a specific function, and as such the weapon system has drastic limitations.

Re: The "How do I..." Thread

Posted: Fri Feb 27, 2015 7:58 am
by TheBadHustlex
MetroidJunkie wrote:How to make the player be a different class from level to level? They're custom levels so ACS will work.
The only thing I know that can make the player feel like a different class is SetActorProperty.

Re: The "How do I..." Thread

Posted: Fri Feb 27, 2015 9:18 am
by cocka
the player feel like a different class is SetActorProperty.
Really? And which property did you think of?

shadowcaster x was a cheat code (among other things) in Hexen providing the player to switch among playerclasses ingame, but I think ZDoom doesn't support this because of the following reasons:

1. The player itself chooses a player character before starting the game.
2. I'm quite sure that the spawned items for one character cannot be replaced by the ones spawned for another one ingame. That was also a problem in vanilla Hexen too.

Re: The "How do I..." Thread

Posted: Fri Feb 27, 2015 9:40 am
by TheBadHustlex
cocka wrote:
the player feel like a different class is SetActorProperty.
Really? And which property did you think of?
Well.
-AttackZOffset
-DamageFactor
-JumpZ
-Mass
-SpawnHealth
-Speed
-Viewheight.

Of course, not nearly as flexible as a player-class.

Re: The "How do I..." Thread

Posted: Fri Feb 27, 2015 12:30 pm
by MetroidJunkie
TheBadHustlex wrote:
Well.
-AttackZOffset
-DamageFactor
-JumpZ
-Mass
-SpawnHealth
-Speed
-Viewheight.

Of course, not nearly as flexible as a player-class.

I was hoping to change every aspect about the player because I was planning to make a game where, each level, you play as a different creature trying to survive.

Re: The "How do I..." Thread

Posted: Fri Feb 27, 2015 2:14 pm
by PSTrooper
Is there a way to give a custom enemy an armor amount, so that it factors in to the amount of hits it takes to kill it?

Re: The "How do I..." Thread

Posted: Fri Feb 27, 2015 3:42 pm
by Blue Shadow
Yes, monsters can have armor, just like the player. You just need to give it to them.

Re: The "How do I..." Thread

Posted: Fri Feb 27, 2015 4:36 pm
by Carbine Dioxide
Is there a way to make a projectile force the Doom blood actor out of a monster? Last time I checked, a projectile doesn't make a monster bleed, just bullet puffs.