I have rectangular sector A. There's a 3d floor B which appears at A, and is a lamp hanging from the ceiling; the room is very dark. Now, I need to make the floor of that 3d floor B bright, because it's a working lamp, but I don't need the floor of A to be bright, because it messes with dynamic lighting in the room. If I change brightness of 3d floor B, floor of A would be bright too, which is inappropriate. I checked out your example, but was unable to do that still. Can the trick with tranferring wall light do that? What is a line id, a number that Doom Builder shows at the bottom of screen on hovering the line, like "linedef57"?cocka wrote:Here is an example wad:
The "How do I..." Thread
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.
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.
Re: The "How do I..." Thread
Re: The "How do I..." Thread
Then I can't help you.but was unable to do that still.
What? It just transfers light from the lightest sector to the walls of the platform.Can the trick with tranferring wall light do that?
It just stands for executing line actions. Such as: Setlinetexture, setlineblocking, setlinespecial, setlinemonsterblocking, Teleport_Line, Line_SetTextureOffset, Line_SetBlocking, Line_SetTextureScale, Line_AlignCeiling, Line_AlignFloor, TranslucentLine, Polyobj_ExplicitLineWhat is a line id, a number that Doom Builder shows at the bottom of screen on hovering the line, like "linedef57"?
-
Fallentemp
- Posts: 28
- Joined: Sun Dec 30, 2012 10:58 pm
Re: The "How do I..." Thread
I'm in need of a little assistance, is there a way to make a monster stop firing after a certain amount of shots are fired? say like my pistol guy shoots 7 times and then stops for a few moments and then starts to fire again for another 7 rounds, if so how would i go about that?
i would think a reload script would work for a Monster but i have no idea how to go about that, at the few wads i looked at that had such features it was far too messy to decipher on how it was done.
i would think a reload script would work for a Monster but i have no idea how to go about that, at the few wads i looked at that had such features it was far too messy to decipher on how it was done.
- cortlong50
- Posts: 753
- Joined: Mon Jun 24, 2013 7:12 pm
- Location: UT-WA
Re: The "How do I..." Thread
how do i get the colors from my palette to use on sprites? i cant export it.
Re: The "How do I..." Thread
I'm trying to recreate the secret level condition from Doom 64 map "Cat and Mouse" where you kill the cyberdemon within a certain time limit, a room with the secret level switch opens.
This is the code I got thus far
This is the code I got thus far
Spoiler:What I'm aiming for is if you kill the cyberdemons (4 of them) within a time limit, the secret room is revealed. If they are killed outside the time limit, the map just ends. Right now the latter happens regardless of the time limit. If anyone knows how to fix this, I'd appreciate it. The print functions were just there for testing purposes.
- Cardboard Marty
- Posts: 1149
- Joined: Sat Oct 23, 2004 8:29 am
- Graphics Processor: nVidia with Vulkan support
- Location: Robot Mountain
- Contact:
Re: The "How do I..." Thread
Hey look, a question I can answer! The easiest way to do this is to give your monster an inventory item.Fallentemp wrote:I'm in need of a little assistance, is there a way to make a monster stop firing after a certain amount of shots are fired? say like my pistol guy shoots 7 times and then stops for a few moments and then starts to fire again for another 7 rounds, if so how would i go about that?
i would think a reload script would work for a Monster but i have no idea how to go about that, at the few wads i looked at that had such features it was far too messy to decipher on how it was done.
Code: Select all
Missile:
ZMP1 E 0 A_JumpIfInventory("AutoPistolMag",12,"Reload") // Right as the monster is about to shoot, it checks for "AutoPistolMag", which will make sense below!
ZMP1 E 10 A_FaceTarget
ZMP1 F 4 BRIGHT A_CustomBulletAttack(8,3,1,3)
ZMP1 F 0 A_CustomMissile("WWPistolCasing",32,10,random(260,280)) // This is just a casing and you don't need it to have this work.
ZMP1 E 0 A_GiveInventory("AutoPistolMag",1) // After the monster shoots, we give him an inventory item. This is counting how many shots he's fired.
goto SeeCode: Select all
Reload:
ZMP1 E 0 A_TakeInventory("AutoPistolMag",12) // This takes the inventory item away completely! This is really the only bit in here you need, the rest is for the "effect"
ZMP1 E 8 A_PlaySound("919m/magout")
ZMP1 E 8 A_CustomMissile("SpentClip1",32,10,random(260,280))
ZMP1 D 16 A_PlaySound("919m/magin2")
goto SeeCode: Select all
ACTOR AutoPistolMag : Ammo
{
Inventory.MaxAmount 12
} Re: The "How do I..." Thread
I see, thank you, we just misunderstood each other a little there.cocka wrote:Then I can't help you.but was unable to do that still.
What? It just transfers light from the lightest sector to the walls of the platform.Can the trick with tranferring wall light do that?
It just stands for executing line actions. Such as: Setlinetexture, setlineblocking, setlinespecial, setlinemonsterblocking, Teleport_Line, Line_SetTextureOffset, Line_SetBlocking, Line_SetTextureScale, Line_AlignCeiling, Line_AlignFloor, TranslucentLine, Polyobj_ExplicitLineWhat is a line id, a number that Doom Builder shows at the bottom of screen on hovering the line, like "linedef57"?
Re: The "How do I..." Thread
DrDoctor:
So the first part of the statement will always be true AND the second one is also true here. So it prints the "bye, bye" string, waits 2 seconds and exits.
As for the other statement:
First part will be TRUE AND the second part will be FALSE. TRUE AND FALSE will be FALSE! So the content of script 254 won't be executed.
In script 255 this won't be executed either (reason: if condition will always be true):
Moreover, it doesn't make sense.
Correct version:
You don't need script 255.
Yes because if tests only once. So at the beginning you have secret = 0 and four living cyberdemons.if you kill the cyberdemons (4 of them) within a time limit, the secret room is revealed. If they are killed outside the time limit, the map just ends. Right now the latter happens regardless of the time limit.
Code: Select all
if(thingcount(T_CYBERDEMON,0)>0 && secret==0)As for the other statement:
Code: Select all
if(thingcount(T_CYBERDEMON,0)>0 && secret==1)In script 255 this won't be executed either (reason: if condition will always be true):
Code: Select all
else
{
suspend;
}
Correct version:
Code: Select all
script 254 OPEN
{
until(ThingCount(T_CYBERDEMON,0) == 0)
{
delay(3);
}
if(secret == 0)
{
print(s:"duh secret is revealed dawg!");
door_open(3,64);
}
else
{
print(s:"bye bye");
delay(70);
Exit_Normal(0);
}
}
Re: The "How do I..." Thread
Is it possible to turn a solid 3D floor into non-solid and vice-versa in game?
Re: The "How do I..." Thread
No, the floors are setup when the map starts and their solidness cannot be changed during gameplay. The usual solution is to move one floor out of the way very quickly (by moving the control sector up or down) and replace it with another one with the required properties. Of course, there are many situations where that won't be practical (e.g. when you want to change the properties of a floor while an actor is standing on it).
Re: The "How do I..." Thread
Cool beans, thanks.cocka wrote:
Correct version:
You don't need script 255.Code: Select all
script 254 OPEN { until(ThingCount(T_CYBERDEMON,0) == 0) { delay(3); } if(secret == 0) { print(s:"duh secret is revealed dawg!"); door_open(3,64); } else { print(s:"bye bye"); delay(70); Exit_Normal(0); } }
-
Fallentemp
- Posts: 28
- Joined: Sun Dec 30, 2012 10:58 pm
Re: The "How do I..." Thread
Marty Kirra wrote:Hey look, a question I can answer! The easiest way to do this is to give your monster an inventory item.Fallentemp wrote:I'm in need of a little assistance, is there a way to make a monster stop firing after a certain amount of shots are fired? say like my pistol guy shoots 7 times and then stops for a few moments and then starts to fire again for another 7 rounds, if so how would i go about that?
i would think a reload script would work for a Monster but i have no idea how to go about that, at the few wads i looked at that had such features it was far too messy to decipher on how it was done.Spoiler:So basically, the beginning of the Missile state is checking to see if the pistol has been fired 12 times. If it has, it jumps to the reload state.Spoiler:I hope that helps!
Thanks! you really helped a noob mapper out.
Re: The "How do I..." Thread
Is there a way to make a sprited Actor (a prop basically, like this butcher's knife from Blood: https://dl.dropboxusercontent.com/u/4458274/sprite.jpg) which wouldn't always face the player? I don't mean an Actor with sprite angles, maybe such thing was done using just mid textures? I should have tried them before asking probably, shame on me — just wanted to be sure before diving into all the extra work.
Last edited by Andie on Thu Aug 15, 2013 9:47 am, edited 1 time in total.
Re: The "How do I..." Thread
Using Mid-textures is the only solution at the moment. just make the sprite into a texture and place it as a mid-texture normally. You'll have to modify the texture offsets in the map-editor for it to show at the correct height, though.
- Ghostbreed
- Posts: 1114
- Joined: Wed Mar 24, 2010 6:19 am
Re: The "How do I..." Thread
How do I import and use custom skyboxes?

