First of all. We need to do small modification to way we compile our maps. With the map develop kit i have included a batch complier. Install that somewhere on your computer. You need zoners hl tools in order to complie your maps. Zhlt.info
NOTE this is not mapping tutorial. You should be familiar with these things. I am not telling you how to do maps etc. Only how the actual entities work.
Doors
select make a brush and make it entity called func_door_nzp
values:
speed (default 100) speed of the door
cost: how much it costs
spawnflags:
requires power. Door needs power to be activated
perkmachines:
item_juggernog: juggernog machine
item_douple: double tap
item_revive: revive soda
item_speed: speedcola
item_flopper: (not in current version) phd-flopper
item_pap (not in current version) pack-a-punch machine
Weapons
Make a brush and make it entity. Call it buy_weapon. When you are touching the brush you can buy weapon.
values:
message: Message when touched if you dont have same weapon
message2: message when you have same weapon
weapon: wich weapon. You can get the weapon ids from weapon number.txt file
cost how much weapon costs
cost2: how much ammo costs
ammo: how much ammo it gives (0 is normal ammount of ammo)
Monsters
zombie: entity spawn_zombie Location where zombie spawns. There is one toggle in toggles. This when set will make the inactive. It can be activated when something triggers the entity. You can trigger entity by making the spawn_zombie have a name and something (trigger, door) to have target that name. target field is for where zombie goes next when they spawn. IF you dont have any active spawns the rounds dont occur.
hellhounds: entity monster_dog. Same as above
Zombies target: path_corner. Name is the name of entity. Target is the next part of the path. THIS IS NOTH PATHFINDING. Pathfinding will be included in next part because it is done ingame
windows: item_cover. Set name for entity and have a path_corner or zombie have it as target
Misc:
Power switch: power_switch If this entity is in map all perk machines need power to be used (minus speed cola in sp)
place_model You can use this to place a non solid mdl or spr file anywhere in map. MAKE SURE YOU INCLUDE THIS FILE IF IT IS NOT SUPPLIED WITH GAME OR IT MIGHT CAUSE CRASH. This entity can be used in example to make wall weapons.
spawning.
There is 4 new spawn entity for clients.
info_player_doctor
info_player_takeo
info_player_nikolai
info_player_tank
Only one player can be spawned to that point. And if he dies he spawns to his own point. No othergameplay diference (yet)
Thats it for basic part. Happy mapping
NOTE this is not mapping tutorial. You should be familiar with these things. I am not telling you how to do maps etc. Only how the actual entities work.
Doors
select make a brush and make it entity called func_door_nzp
values:
speed (default 100) speed of the door
cost: how much it costs
spawnflags:
requires power. Door needs power to be activated
perkmachines:
item_juggernog: juggernog machine
item_douple: double tap
item_revive: revive soda
item_speed: speedcola
item_flopper: (not in current version) phd-flopper
item_pap (not in current version) pack-a-punch machine
Weapons
Make a brush and make it entity. Call it buy_weapon. When you are touching the brush you can buy weapon.
values:
message: Message when touched if you dont have same weapon
message2: message when you have same weapon
weapon: wich weapon. You can get the weapon ids from weapon number.txt file
cost how much weapon costs
cost2: how much ammo costs
ammo: how much ammo it gives (0 is normal ammount of ammo)
Monsters
zombie: entity spawn_zombie Location where zombie spawns. There is one toggle in toggles. This when set will make the inactive. It can be activated when something triggers the entity. You can trigger entity by making the spawn_zombie have a name and something (trigger, door) to have target that name. target field is for where zombie goes next when they spawn. IF you dont have any active spawns the rounds dont occur.
hellhounds: entity monster_dog. Same as above
Zombies target: path_corner. Name is the name of entity. Target is the next part of the path. THIS IS NOTH PATHFINDING. Pathfinding will be included in next part because it is done ingame
windows: item_cover. Set name for entity and have a path_corner or zombie have it as target
Misc:
Power switch: power_switch If this entity is in map all perk machines need power to be used (minus speed cola in sp)
place_model You can use this to place a non solid mdl or spr file anywhere in map. MAKE SURE YOU INCLUDE THIS FILE IF IT IS NOT SUPPLIED WITH GAME OR IT MIGHT CAUSE CRASH. This entity can be used in example to make wall weapons.
spawning.
There is 4 new spawn entity for clients.
info_player_doctor
info_player_takeo
info_player_nikolai
info_player_tank
Only one player can be spawned to that point. And if he dies he spawns to his own point. No othergameplay diference (yet)
Thats it for basic part. Happy mapping