Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
MeinEdgyKarte

Texture swapping

Question

5 answers to this question

Recommended Posts

  • 2
1 hour ago, MeinEdgyKarte said:

Zdoom udmf

Okay, then try this:

Put on the door a Script Execute special, set to script number 512, use the hitscan/projectile impact activation flag.

 

Then, press F10, and a new window should pop up, copy-paste all of this in that window:
 

#include "zcommon.acs"

Script 512 (void)
{
	SetLineTexture(0, SIDE_FRONT, TEXTURE_MIDDLE, "nameofthebrokendoortexture");
	SetLineTexture(0, SIDE_BACK, TEXTURE_MIDDLE, "nameofthebrokendoortexture");
}

Then compile the script and save the map, now shooting that door will cause the texture to change.

Share this post


Link to post
  • 0
Posted (edited)

Not enough information, what is this for? Vanilla, Boom or ZDoom? If it's ZDoom then i can help, but it must be either Hexen or UDMF format.

 

I think this should be easy to do in Boom too, and it's at least possible in Vanilla (i think).

Share this post


Link to post
  • 0
3 hours ago, -TDRR- said:

Not enough information, what is this for? Vanilla, Boom or ZDoom? If it's ZDoom then i can help, but it must be either Hexen or UDMF format.

 

I think this should be easy to do in Boom too, and it's at least possible in Vanilla (i think).

Zdoom udmf

Share this post


Link to post
  • 0
On 5/18/2019 at 3:36 PM, -TDRR- said:

Okay, then try this:

Put on the door a Script Execute special, set to script number 512, use the hitscan/projectile impact activation flag.

 

Then, press F10, and a new window should pop up, copy-paste all of this in that window:
 


#include "zcommon.acs"

Script 512 (void)
{
	SetLineTexture(0, SIDE_FRONT, TEXTURE_MIDDLE, "nameofthebrokendoortexture");
	SetLineTexture(0, SIDE_BACK, TEXTURE_MIDDLE, "nameofthebrokendoortexture");
}

Then compile the script and save the map, now shooting that door will cause the texture to change.

Its works but only on one side. im i doing it wrong 

Share this post


Link to post
  • 0
15 minutes ago, MeinEdgyKarte said:

Its works but only on one side. im i doing it wrong 

Make sure the "front side only" activation flag is not set.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×