[fixed]3D Floors doing damage - how?

Bugs that have been resolved.

Moderator: Graf Zahl

User avatar
Enjay
Developer
Developer
Posts: 4753
Joined: Tue Aug 30, 2005 23:19
Location: Scotland

[fixed]3D Floors doing damage - how?

Post by Enjay »

Not sure if this is even possible, but I'd like to be able to create a 3D floor that does damage when you walk on it. I've tried using

Sector_SetDamage (tag, value, mode);

On both the control/model sector and the container sector. Neither made the floor do damage. However, the script was working because walking into the control sector or the floor of the container sector did damage me. I need to set the damage via a script because it will be switched on and off. Is this supposed to be possible?

Oh, and would an editing forum or something be useful for queries like these?
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany

Post by Graf Zahl »

Giving it to the control sector should do it. Normal sector damage types work and this is done in the same function.
User avatar
Enjay
Developer
Developer
Posts: 4753
Joined: Tue Aug 30, 2005 23:19
Location: Scotland

Post by Enjay »

Not for me anyway. :(

Try the attached. Here's the script:

Code: Select all

#include "zcommon.acs"

script 201 OPEN

	{
	print (s:"Script running.");
	Sector_SetDamage (2, 999, 17);
	}
Jump on to the 3D floor and you can walk on it quite happily. Crouch into the exposed control sector and you will die instantly.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany

Post by Graf Zahl »

Fixed

Return to “Closed Bugs”