The reason is I want to give a playerclass a weapon, that simulates burning hands like in Strife, after he gets killed by a missile with the damagetype "fire".
Is it somehow possible?
Force to change weapon after death?
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- Ed the Bat
- Posts: 3060
- Joined: Thu May 03, 2012 1:18 pm
- Graphics Processor: nVidia with Vulkan support
- Location: Maryland, US
- Contact:
Re: Force to change weapon after death?
Have you tried using an ACS script and the SetWeapon() command, called in the player's Death state?
- DonaldDuck
- Posts: 69
- Joined: Sat Jun 11, 2011 6:57 am
Re: Force to change weapon after death?
Nope, it wont.
Guess I have to do it by HudMessage and SetFont.

Guess I have to do it by HudMessage and SetFont.
- Ed the Bat
- Posts: 3060
- Joined: Thu May 03, 2012 1:18 pm
- Graphics Processor: nVidia with Vulkan support
- Location: Maryland, US
- Contact:
Re: Force to change weapon after death?
Ah, that's right... by default, when a player dies, he lowers his weapon and can't raise another one. I forgot to take that into consideration. Sorry. 
This may have some unforeseen roadblocks as well, but have you also thought about inheriting from StrifePlayer and recycling the burning-hands methods that way?

This may have some unforeseen roadblocks as well, but have you also thought about inheriting from StrifePlayer and recycling the burning-hands methods that way?
Re: Force to change weapon after death?
Well, how does it works for Strife anyway? o.õ
Isn't there a way to mod that feature?
Isn't there a way to mod that feature?
Re: Force to change weapon after death?
The Strife player has some native functions relating to this, so you'd have to inherit from it if you want to use the exact same behaviour: [wiki]Classes:StrifePlayer[/wiki]
Re: Force to change weapon after death?
Hum... with inheritance maybe just using same sprite names could do the trick.
The problem would be the few frames number.
edit: No, it would not!
http://zdoom.org/wiki/A_ItBurnsItBurns
You just need to define a custom FireHands "state"!
The problem would be the few frames number.
edit: No, it would not!

http://zdoom.org/wiki/A_ItBurnsItBurns
You just need to define a custom FireHands "state"!
- ChronoSeth
- Posts: 1631
- Joined: Mon Jul 05, 2010 2:04 pm
- Location: British Columbia
Re: Force to change weapon after death?
... and inherit from StrifePlayer, since A_ItBurnsItBurns is restricted to it.
Re: Force to change weapon after death?
Yeah, but Enjay said it already before me


