Hammer questions

Demian

L1: Registered
Dec 7, 2009
21
0
I just got Hammer (Source SDK) a few days ago and now I'm just experimenting with stuff. I know the basic stuff like texturing, making rooms and such. But, there a couple of things that I don't know how to do.

Answered
Experimenting
Unanswered

How to make bots? How to change their team and class? How to make them move, shoot and do taunts?
http://tf2wiki.net/wiki/Bots
If you want actual AI for the bots you need RCBot

How to spawn buildables like sentries?
There's an entity called obj_sentrygun and obj_dispenser. No teles, though

How to make effects like fire or smoke?
I'm not sure how to do fire, but smoke you can do smoke with an env_smokestack

How to make Hammer display only TF2 textures? Currently it shows various textures that come with Hammer and DOD: Source textures
In the texture menu, in the bottom text field, type "tf"

that'll filter out all the non-tf textures

How to make various textures non-visible trough walls? Eg. The class icons show trough walls.
I haven't tested this but the basic idea is:
Code:
"UnlitGeneric"
{
	"$translucent" 1
	"$baseTexture" "hud\class_heavyblue"
	"$vertexcolor" 1
	"$no_fullbright" 1
	"%keywords" "tf"
}
save that as heavyblue.vmt in your /tf/materials/ folder. I just copied the default vmt and removed the $ignorez parameter.

How make text? Do I need a custom texture for that? Is there a fancy tool for it?
To display text on the player's screen use game_text or game_text_tf. The _tf version looks nicer but has less options for placement and color. If you mean putting text on the walls of your map, then yes you would need a custom texture.

How to make working control points?

How to change the control point's owner team by stepping on an object?

How to make control points that teams can't capture? In other words, if the control point's team is set to red, blue is unable to capture it and the owner will be red no matter what.

How to make a wall that only blocks bullets, but not players? I tried the "Block Bullets" texture, it does block bullets, but also players. I can't walk through it.

How to make the reflections realistic? Currently reflections enlarge the world by several times. (A bucket is the nearly the size of the character.) Also, window reflections create a "wallhack" effect. Meaning, by looking at windows you can look trough walls.
 
Last edited:
T

The Asylum

I just got Hammer (Source SDK) a few days ago and now I'm just experimenting with stuff. I know the basic stuff like texturing, making rooms and such. But, there a couple of things that I don't know how to do.

How to make bots? How to change their team and class? How to make them move, shoot and do taunts?

In console, type sv_cheats 1

then type bot

Unlike CS bots though, these bots won't do anything. At all.

How to spawn buildables like sentries?

There's an entity called obj_sentrygun and obj_dispenser. No teles, though

How to make effects like fire or smoke?

I'm not sure how to do fire, but smoke you can do smoke with an env_smokestack

How to make Hammer display only TF2 textures? Currently it shows various textures that come with Hammer and DOD: Source textures.

In the texture menu, in the bottom text field, type "tf"

that'll filter out all the non-tf textures

How to make various textures non-visible trough walls? Eg. The class icons show trough walls.

Impossible. You may be able to keep them unrendered when not looking into the room that they're in with areaportals, but keeping them non-visible when not looking directly at them is not gonna happen, and you're better off not using them altogether
 

Demian

L1: Registered
Dec 7, 2009
21
0
Impossible. You may be able to keep them unrendered when not looking into the room that they're in with areaportals, but keeping them non-visible when not looking directly at them is not gonna happen, and you're better off not using them altogether
That's not what I meant. My problem is: I have class icons on my wall. When I go to some other room, I can still see the class icons trough the wall.
http://tf2wiki.net/wiki/Bots
If you want actual AI for the bots you need RCBot
The site looks quite interesting, I'll take a look.
 

gamemaster1996

L13: Stunning Member
Sep 30, 2009
1,064
134
Is there a leak?

Put a box around your map of some description or add a skybox.
 

n30n

L4: Comfortable Member
Jul 13, 2009
154
14
You most likely have gui icons there, you need to make custom ones.
 

Pseudo

L6: Sharp Member
Jan 26, 2008
319
150
My problem is: I have class icons on my wall. When I go to some other room, I can still see the class icons trough the wall.
That is because they are HUD icons and are not meant to placed in maps. You could use the same vtf, but you would need to create a new vmt file for it.
 

Demian

L1: Registered
Dec 7, 2009
21
0
That is because they are HUD icons and are not meant to placed in maps. You could use the same vtf, but you would need to create a new vmt file for it.
I see. So I just rename the file, change the extensions and put it in my map's folder?
Edit: Nvm, I just noticed that link. I'll see what I can do.
 

Pseudo

L6: Sharp Member
Jan 26, 2008
319
150
I haven't tested this but the basic idea is:
Code:
"UnlitGeneric"
{
	"$translucent" 1
	"$baseTexture" "hud\class_heavyblue"
	"$vertexcolor" 1
	"$no_fullbright" 1
	"%keywords" "tf"
}
save that as heavyblue.vmt in your /tf/materials/ folder. I just copied the default vmt and removed the $ignorez parameter.

How make text? Do I need a custom texture for that? Is there a fancy tool for it?
To display text on the player's screen use game_text or game_text_tf. The _tf version looks nicer but has less options for placement and color. If you mean putting text on the walls of your map, then yes you would need a custom texture.
 

Demian

L1: Registered
Dec 7, 2009
21
0
Thanks for the great links! Now I have another problem. When testing my map, random people join my server. How can I make my server, when testing, password protected?
Note: I use the "Run Map" option in Hammer.
 
Last edited:

gamemaster1996

L13: Stunning Member
Sep 30, 2009
1,064
134
Sv_lan works?
How come when my friend does sv_lan 0 i still cant joing his server? Or is this because he clicks create server?
Also there's a password option on the create server menu.
 

Jimbomcb

L1: Registered
Feb 12, 2008
27
2
i wasn't aware people loaded their maps from create server, go go console. yes, sv_lan works, 1 will not allow people to join.
 

gamemaster1996

L13: Stunning Member
Sep 30, 2009
1,064
134
So 0 will allow anyone to join?

Doesn't work with me.
 

Jimbomcb

L1: Registered
Feb 12, 2008
27
2
So 0 will allow anyone to join?

Doesn't work with me.

i didn't say that sv_lan 0 will allow people to join, it just turns off restrictions on clients joining that aren't on your lan. there's still other factors such as firewalls etc to take into consideration if you're wanting people to join but setting to 1 will ensure nobody will be joining.
 

Demian

L1: Registered
Dec 7, 2009
21
0
If you want actual AI for the bots you need RCBot
I've been browsing through the site and it appears that RCBot is a plug-in. In other words, there is no way to ship it with the map with preset bot spawns and actions? Am I correct?
Is there a way to do that? How? I need to bots to spawn at places I've set and they should do all kinds of actions like jumping, shooting and taunting. And if it comes to it, I'm happy with just bots that do nothing.

Added new questions.
 
Last edited:

Nutomic

L11: Posh Member
Feb 7, 2009
888
177
You cant have real bots, like in cs or so, the only things they can do are like in tr_walkway, walking a straight line and shooting, jumping and so, but you wont get bots with ai running via a map.