Editing
Design PointTemplate with hammer map editor
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Design== ===Tank / Bot PointTemplate=== Start up Hammer and create a new file. In the origin of the map, create a prop_detail entity with the model of the tank or bot (models/bots/boss_bot/boss_tank.mdl and other bots models are in /models/bots directory). [[File:Hammer - design a tank, preview.png|none|thumb|Tank prop used to preview how the tank would be seen in the game]] Create additional entities as you would like to see them in the game, like this: [[File:Hammer - design a tank.png|none|thumb|Tank with entities]] Save the map file somewhere, then open it with a text editor. Copy all sections with "entity". Open the popfile, then in WaveSchedule, create a new section: PointTemplates { TemplateName { Paste the copied text from map file here } } Example: PointTemplates [$SIGSEGV] { TemplateName { entity { "id" "10" "classname" "light_dynamic" "_cone" "45" "_inner_cone" "30" "_light" "255 255 255 0" "angles" "0 0 0" "brightness" "0" "distance" "0" "pitch" "0" "spawnflags" "3" "spotlight_radius" "80" "style" "0" "target" "turretSpider_trackdir" "targetname" "turretSpider_projected" "origin" "44 -6.001 199.999" } entity { "id" "18" "classname" "logic_timer" "RefireTime" "0.35" "spawnflags" "0" "StartDisabled" "1" "targetname" "turretSpider_firetimer" "UseRandomTime" "0" connections { "OnTimer" "turretSpider_firerelay,Trigger,,0,-1" } "origin" "-196 -48.352 12.004" } } } Now, in Tank/TFBot spawner, create a new value SpawnTemplate TemplateName [$SIGSEGV] This will spawn the entities parented to the bot/tank === Mission / Wave Point Template === Download BSPSource https://github.com/ata4/bspsrc/releases and use it to decompile the map. Load the map in hammer. In menu, select Instancing->Create Manifest. Select View->Screen Elements->Manifest Bar if not already selected. On the right side, a panel named Manifest would appear. Right click on it and select Insert->Empty Sub Map. [[File:Hammer map pointtemplate.png|none|thumb|Manifest Panel]] In the window that appears, Set the filename and friendly name. Now click on the newly created item in the manifest panel. Any entity created in this mode will be spawned by the pointtemplate. To switch back, click the unnamed item. Once you are done creating entities, save the map. Now, navigate to the directory where the map was saved, then to the newly created directory with the same name as the map name. Open the file that has the same name as specified in New Sub Map dialog, in the text editor. Now follow the same steps as with the section above, but now, the SpawnTemplate value should be put in WaveSchedule or Wave. [[Category:Tutorials]]
Summary:
Please note that all contributions to SigMod are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
SigMod:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
British English
Views
Read
Edit
Edit source
View history
More
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information