Spawning decals after crossing a linedef

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.
tashita
Posts: 70
Joined: Mon May 02, 2011 6:36 pm

Spawning decals after crossing a linedef

Post by tashita »

So I want to spawn a decal after you cross a certain linedef. I got all my decals correctly labeled on the lump file. When I place a 9200 thing, I select the Decal ID in DoomBuilder and the decal shows correctly in game.
Now what I want to do is spawn this decal after crossing a linedef. Could this be made with a Mapspot thing placed where you want to spawn the decal, then Spawnspot on the code? I do this to spawn regular things and it works, but it doesn't with decals. Where do I specify the ID of the decal I want to spawn, on the Mapspot arguments or in Spawnspot?
User avatar
corysykes
Posts: 329
Joined: Mon May 07, 2007 6:03 pm
Location: Location i have no Location

Re: Spawning decals after crossing a linedef

Post by corysykes »

The only way I can think of is to make a projectile that will cause this decal then spawn the projectile....
How ever there are a few problems with this, the major problem being that the decal should disappear after a few shots that hit the wall...
I am unfamiliar on decals so this might not be the best solution considering that it isn't much of a solution anyway..
Enjoy!
tashita
Posts: 70
Joined: Mon May 02, 2011 6:36 pm

Re: Spawning decals after crossing a linedef

Post by tashita »

How can this be so complicated? It's so easy to spawn any sprite with a mapspot thing and a Spawnspot on the script, how can it be so different from a decal? It's just a sprite after all, I just need to know where to specify the ID of the decal to spawn.
User avatar
Mikk-
Posts: 2274
Joined: Tue Jun 30, 2009 1:31 pm

Re: Spawning decals after crossing a linedef

Post by Mikk- »

Decals and Actors are two different things. That's not exactly complicated.
I guess there's also a kind of crude way where you use SetLineTexture and a line 1px away from the wall.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: Spawning decals after crossing a linedef

Post by randi »

Since I've been adding stuff anyway, I give you r4330.
Gez
 
 
Posts: 17938
Joined: Fri Jul 06, 2007 3:22 pm

Re: Spawning decals after crossing a linedef

Post by Gez »

That could be used for Printz's wallmonster idea.
tashita
Posts: 70
Joined: Mon May 02, 2011 6:36 pm

Re: Spawning decals after crossing a linedef

Post by tashita »

randi wrote:Since I've been adding stuff anyway, I give you r4330.
Wow nice, but is there a way to make it work with Zandronum or I have to wait for they to update Zandronum? (my wad is a multiplayer one)
Gez
 
 
Posts: 17938
Joined: Fri Jul 06, 2007 3:22 pm

Re: Spawning decals after crossing a linedef

Post by Gez »

tashita wrote:is there a way to make it work with Zandronum
Fork Zandronum and port the relevant changes.
User avatar
Mikk-
Posts: 2274
Joined: Tue Jun 30, 2009 1:31 pm

Re: Spawning decals after crossing a linedef

Post by Mikk- »

Gez wrote:
tashita wrote:is there a way to make it work with Zandronum
Fork Zandronum and port the relevant changes.
Really only the first two words are necessary here :P
Fork Zandronum to hell.
tashita
Posts: 70
Joined: Mon May 02, 2011 6:36 pm

Re: Spawning decals after crossing a linedef

Post by tashita »

Sorry, what does mean Zandronum?
tashita
Posts: 70
Joined: Mon May 02, 2011 6:36 pm

Re: Spawning decals after crossing a linedef

Post by tashita »

Mikk- wrote:
Gez wrote:
tashita wrote:is there a way to make it work with Zandronum
Fork Zandronum and port the relevant changes.
Really only the first two words are necessary here :P
Fork Zandronum to hell.
ZDoom has no proper MP, we need Zandronum.
Gez
 
 
Posts: 17938
Joined: Fri Jul 06, 2007 3:22 pm

Re: Spawning decals after crossing a linedef

Post by Gez »

tashita wrote:Sorry, what does mean Zandronum?
https://bitbucket.org/Torr_Samaho/zandronum
See the "fork" button over there? (You might need to register an account for it to appear.) It has already 14 registered forks, it can take one more.
User avatar
edward850
Posts: 5886
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

Re: Spawning decals after crossing a linedef

Post by edward850 »

tashita wrote:ZDoom has no proper MP, we need Zandronum.
I'm sorry... what?
tashita
Posts: 70
Joined: Mon May 02, 2011 6:36 pm

Re: Spawning decals after crossing a linedef

Post by tashita »

edward850 wrote:
tashita wrote:ZDoom has no proper MP, we need Zandronum.
I'm sorry... what?
No one plays vanilla Zdoom compared to Zandronum + Doomseeker man.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: Spawning decals after crossing a linedef

Post by randi »

I hope you fully appreciate the irony of telling that to somebody who does use it for multiplayer rather a lot.
Locked

Return to “Editing (Archive)”