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!
===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
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