Be the King of my Hill


(Boleth) #1

Im making a KOTH map, its my very first map so isnt too good, just some basic textures etc, its pretty ugly aswell, so Im not expecting any good public feedback.
To pretty much finish the map I need to do the actual flag, I know absoltley nothing about the coding etc so Id appreciate it if someone could give me a detailed description as to how I code the flag to “Win” the map after a particular team has owned it for 5 minutes.
Or if anyone knows of one direct me to a tutorial.
Id appreciate any help anyone can give me.

Boleth


(MadJack) #2

For all your scripting need (well almost), check the LDR at: LDR by sock

There’s a nice (supposedly) tutorial about scripting in Ifurita’s sig. You might want to check that. IIRC, it’s in PDF.


(nUllSkillZ) #3

Is this the only winning condition?
What should happen if the timelimit is hit?
Should the team that owns the flag at timelimit be the winning team?
I’ve done something similar in a not yet released concept map.
I’m using two timer and two accums.
The accums contain the sum of points (could also be the time) for each team.
And the team that owns the flag most of the time in the regular playtime wins at timelimit.

[edit]I’ve just remebered a tutorial.
Just have to find it.
[/edit]

[edit1]
Try to look at this one:
http://www.wolfensteinx.com/surface/tutorials/checkpoints.html
[/edit1]


(Boleth) #4

I dont know if you’ve played it but theres a map called simply KOTH
its set in a type of training ground style map.
The gameplay should be exactly the same as that.
each team tries to capture the flag the team that owns the flag for a total of 5 minutes first, wins the map.
Its generally designed for a 1 vs 1.
I’ll post some screenshots when I can.
Thanks for the help, I’ll check out those tutorials now! :drink:


(nUllSkillZ) #5

Then you should take a look at the script of this map.


(S. Monkey) #6

I know that a time based objective has been done in maze, where you had to keep something build for 2 minutes.

I’m currently coding an extra time in specops, which would allow you to display how long the objective has left.


(Boleth) #7

How do I look at the script?
I only have the .pk3 file,

I guess I should try and look for the guy who made it.
I’ll take a look around now.
Thanks for the help guys


(nUllSkillZ) #8

You can open the “.pk3”-file with an unzip program.
You should ask the creator of the map anyway.


(Boleth) #9

Im having a slight problem, ****ing me off tbh.
How do I merge a square with a hole in the middle?
It says

Cannot add a set of brushes with a concave hull.

Anyone know how to merge a set of brushes with a concave hull?


(chavo_one) #10

LOL, you can’t! You can only optimize your brushwork in cases like this.


(Boleth) #11

Ok, so on my map the flag is in the middle of water, exactly in the shape of the picture above, with the water texture theres a wall type surface on the edge of the texture, so you can see straight away that there are four brushes making up the water.

Is there a way I can make it appear theres only one brush?


(Gringo Starr) #12

If I understand correctly…select just the tops of the water brushes with shift+ctrl+alt+left click. Then apply the water texture. Then select all the brushes, and deselect the water texture on top with shift+ctrl+alt+left click. Then put water caulk (should be in common textures) on the remaining selected faces.


(Boleth) #13

tyThanks man!
Ive always wondered how to select multiple brush faces, now I know :banana:
Im still a n00b at mapping so dont point and laugh :stuck_out_tongue:
I cant find Caulk Water though, it isnt in common. I’ll keep looking though, :smiley:
Thanks!

Edit is it “Water No Draw” ?

Edit 2 Is there a way to select just a certain part of a brush face?


(Gringo Starr) #14

“Water No Draw” sounds like that’s it. Nope, brush faces are brush faces :slight_smile: Another little tip for ya, you can copy textures from one surface to another, while retaining their stretch/rotation. Select a brush face, and just click the mouse wheel on the texture you want on the selection. You may have to set 3-button mouse or something in preferences though.


(Boleth) #15

Well “Water no draw” makes the water a solid surface. Still cant find water caulk, found terrain caulk and normal caulk but I’m guessing they’re different things.
Anyone know what I need to apply, if there is such a thing as water caulk where is it?


(MadJack) #16

you have to use water_nodraw… if it makes it solid it’s probably you missed texturing a surface/side with water_nodraw. It’s the exact same thing with fog and for_nodraw.

Do not use caulk with water. :slight_smile:


(MadJack) #17

you have to use water_nodraw… if it makes it solid it’s probably you missed texturing a surface/side with water_nodraw. It’s the exact same thing with fog and for_nodraw.

Do not use caulk with water. :slight_smile:


(Boleth) #18

Thanks Jack, I’ll get right on that.
But since then another problem has arisen :banghead:
I want to put a hatch on a room, I tried making it a sliding hatch but it overlaps the texture next to it when it opens and makes it look weird (theres probably a name for when that happens but I dont know it).
Then I tried making it a rotating door which opens up,(hatch) I know this can be done as Its on Battery in the area with the two generators, but I dont know how to do it. Argh…
sorry for being such a pain in the ass.


(nUllSkillZ) #19

Rotating door tutorial:
http://www.wolfensteinx.com/surface/tutorials/rotating_doors.html


(Boleth) #20

That tutorial doesnt tell you how to make a door open up as opposed to out.
I know of that tutorial, I use it frequently.