Force to change weapon after death?

Archive of the old editing forum
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.
Locked
User avatar
DonaldDuck
Posts: 69
Joined: Sat Jun 11, 2011 6:57 am

Force to change weapon after death?

Post by DonaldDuck »

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?
User avatar
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?

Post by Ed the Bat »

Have you tried using an ACS script and the SetWeapon() command, called in the player's Death state?
User avatar
DonaldDuck
Posts: 69
Joined: Sat Jun 11, 2011 6:57 am

Re: Force to change weapon after death?

Post by DonaldDuck »

Nope, it wont. :(

Guess I have to do it by HudMessage and SetFont.
User avatar
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?

Post by Ed the Bat »

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?
User avatar
Ravick
Posts: 2051
Joined: Sun Aug 22, 2010 10:59 pm
Location: Tubarão, Brasil
Contact:

Re: Force to change weapon after death?

Post by Ravick »

Well, how does it works for Strife anyway? o.õ

Isn't there a way to mod that feature?
User avatar
Enjay
 
 
Posts: 27115
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Force to change weapon after death?

Post by Enjay »

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]
User avatar
Ravick
Posts: 2051
Joined: Sun Aug 22, 2010 10:59 pm
Location: Tubarão, Brasil
Contact:

Re: Force to change weapon after death?

Post by Ravick »

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! :D

http://zdoom.org/wiki/A_ItBurnsItBurns

You just need to define a custom FireHands "state"!
User avatar
ChronoSeth
Posts: 1631
Joined: Mon Jul 05, 2010 2:04 pm
Location: British Columbia

Re: Force to change weapon after death?

Post by ChronoSeth »

... and inherit from StrifePlayer, since A_ItBurnsItBurns is restricted to it.
User avatar
Ravick
Posts: 2051
Joined: Sun Aug 22, 2010 10:59 pm
Location: Tubarão, Brasil
Contact:

Re: Force to change weapon after death?

Post by Ravick »

Yeah, but Enjay said it already before me :p
:)
Locked

Return to “Editing (Archive)”