zrrion the insect wrote:Darn. I have a weapon (tagged fists) that, when given a dagger, I'd like to change the tag to dagger, and I was hoping to avoid having to split it into two weapons.
Maybe just tag it as something more generic, like Melee, or Close Combat? It'd be better than splitting the weapon just to have a different tag IMO.
Re: The "How do I..." Thread
Posted: Sun Jun 15, 2014 2:39 pm
by Sandro
How do I change the texture of a single linedef ? I have a switch texture on a 3D floor, and when you activate the front linedef where the 3D floor is supposed to be, it activates a script that lowers a floor (basic trap to let monsters teleport in the room) but since it won't change the switch texture by itself, I need to do it in the script.
Unfortunately, SetLineTexture does not change the texture for a single linedef, but for all. Is there a way for a single line ?
Re: The "How do I..." Thread
Posted: Sun Jun 15, 2014 2:51 pm
by cocka
No, you're wrong. You've mixed up setlinetexture with the [wiki]ReplaceTextures[/wiki] function.
Is there a way for a single line ?
Yes, there is. You can set lineid for just one single line as well.
it activates a script that lowers a floor (basic trap to let monsters teleport in the room)
If you use at least hexen format why do you need to put the monsters to be teleported behind a wall(s) and wait for that wall(s) to lower?
[wiki]Thing_Spawn[/wiki] or [wiki]SpawnSpot[/wiki] do the job for you. There is no need to create rooms containing bunch of monsters awaiting you.
Re: The "How do I..." Thread
Posted: Sun Jun 15, 2014 3:20 pm
by xenoxols
Is there a way to force ALL enemy projectile to not have vertical autoaim without redefining everyone?
EDIT: Actually, is there even a way to do it with replacing enemy projectiles?
Re: The "How do I..." Thread
Posted: Mon Jun 16, 2014 8:53 am
by Sandro
cocka wrote:No, you're wrong. You've mixed up setlinetexture with the [wiki]ReplaceTextures[/wiki] function.
Oh, my bad. Thank you !
If you use at least hexen format why do you need to put the monsters to be teleported behind a wall(s) and wait for that wall(s) to lower?
[wiki]Thing_Spawn[/wiki] or [wiki]SpawnSpot[/wiki] do the job for you. There is no need to create rooms containing bunch of monsters awaiting you.
Because :
- I'm familiar with this method, and I find it less messy.
- Monster count is affected by these actions, if I remember correctly.
I'm using UDMF, but as I'm making a "regular" doom map (= survival), there is no need to use advanced features.
Another question : I have a hexagon sector which activates a script when you enter it, whatever line you crossed. But I want this action to be not repetitive. (= after the script is executed once, nothing happens anymore if you cross another line of the sector)
Ah, I guess it's time to mess around with advanced stuff, as I totally ignore how to do it...
Re: The "How do I..." Thread
Posted: Mon Jun 16, 2014 9:02 am
by Caligari87
You'll need to add some sort of global variable like "AlreadyRun" and have the script check that first. If the variable is false, run the script and set the variable to true, else kill the script. Should be fairly straightforward.
But in this case the script would always test whether the variable is true or false when you cross a line. Therefore you can also remove the action special from the line.
All you have to do is to EXPLOIT the features of UDMF. How? Just set lineids for all those lines with the script above and write an additional line into your script.
How do I limit the mx number of a certain type/specie of actor in the map, like the vanilla's Lost Soul limit of 20 per map?
Re: The "How do I..." Thread
Posted: Mon Jun 16, 2014 11:07 pm
by Gez
There isn't a lost soul limit of 20 per map. Make a vanilla Doom map with 600 lost souls in it, they'll all be there.
What there is a limit to is to lost soul spawning by pain elemental, if there are already more than 20 lost souls in the map. So a pain elemental may spawn a 21st lost soul, and then nothing else until some of the lost souls are killed.
So it's important to keep that in mind: there's no limit to how many monsters there can be, there's just a limit built-in a spawn function. If you want to do the same thing, use ACS and Thing_Count.
Re: The "How do I..." Thread
Posted: Tue Jun 17, 2014 10:07 pm
by Ravick
I'll do that then. Thanks.
___
How do I change the stock maps lights, like in Lasting Light mod?
Re: The "How do I..." Thread
Posted: Wed Jun 18, 2014 7:07 am
by kodi
Brutal doom has floor decals for blood splatter. How is that accomplished?
Re: The "How do I..." Thread
Posted: Wed Jun 18, 2014 7:10 am
by phantombeta
It's made using actors with models and voxels assigned to the sprites.
I have to disagree.
As I said, I'm familiar with regular mapping. I prefer to see where I'm going directly on the screen, rather than take a look at scripts I'm not familiar with. Moreover, what about skills/cooperative settings ? I really don't know if it possible, but if so, are you sure it would be less messy, or at least less difficult ?
Besides, my second argument is still relevant. (=> monster count doesn't show correctly)
cocka wrote:Why do people use UDMF for just a regular doom map?! Moreover, you don't need the advanced features, then why is it important to use UDMF?!
I have to say I'm surprised by your reaction. I thought other formats were obsolete...
Spoiler:
Gez wrote:What I think is a great idea is to never use Hexen format for ZDoom maps anymore. If you make a vanilla Hexen map, by all means, use Hexen format; but if your editor of choice is GZDB and you're making a map for ZDoom where you plan to use (G)ZDoom features, you have no excuse not to use UDMF.
Also, UDMF is what you should use, and you should use UDMF.
PS: UDMF.
So yeah, I'm using GZDB which is the best editor in my opinion, or at least for my use. Furthermore, UDMF offers much more possibilities and have much more features that can be useful, even for a regular doom map.
(my bad if by "regular" you understood "vanilla")
cocka wrote:The solution is already in the Hexen Deathkings of the Dark Citadel's first map. MAP41
You need just a map variable and an if condition:
Oh, I have never tried Hexen.
But thank you very much for your help, it works !!!
Re: The "How do I..." Thread
Posted: Wed Jun 18, 2014 9:51 am
by kodi
phantombeta wrote:It's made using actors with models and voxels assigned to the sprites.
I can understand flat plane models textured with blood, but why voxels for flat objects?