Combat: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎See also: added WiseNPCrapjump and enabled external links)
m (Nesciuse moved page Combat/en to Combat without leaving a redirect: Move en subpage to basepage)
 
(18 intermediate revisions by 16 users not shown)
Line 1: Line 1:
{{Abstract Mapping}} __NOTOC__
{{LanguageBar}}
 
{{Abstract Mapping}}
<br />
__NOTOC__
A hub for articles about creating fighting and combat in Source maps and mods.
A hub for articles about creating fighting and combat in Source maps and mods.


== Mapping ==
== General [[NPC]]s ==
* [[ai_relationship]] - sets which [[NPC]]s will fight or ally with which others
* {{ent|ai_relationship}} - Sets which NPCs will fight or ally with which others
* [[Standoffs]] - controls how NPCs behave during combat
* [[List of default AI relationships]]
* [[Assaults]] - organized attacks and battle lines
* {{ent|info_node}}, [[Hint nodes]] and [[Nodegraph]] for NPC navigation. Without the former, NPCs generally will not move.
* [[Squads]] - getting NPCs to act as a team
* [[States]]
* [[AI Programming]] - not combat-specific
 
== General [[NextBot]]s ==
* [[Nav Mesh]] — Without this, NextBots will be unable to move.
* [[Example of NextBot Behaviors]]
 
== {{hl2|4}} ==
=== Control ===
* {{ent|ai_goal_police}} - Station a guard at a door (non-lethal)
* [[Assaults]] - Organized attacks along a path
* Door kicks (through the use of {{ent|scripted sequence}}s)
* {{ent|path_corner}} - Used to create patrol routes (see External links for tutorial)
* Rappelling (see [[#External links|external link]])
* Rappelling (see [[#External links|external link]])
* Door kicks (through the use of [[scripted sequence|scripted sequences]])
* [[Standoffs]] - Controlling how NPCs behave during combat
* [[ai_goal_police]] - station a guard at a door (non-lethal)
* [[Squads]] - Getting NPCs to act as a team
* [[path_corner]] - used to create patrol routes (see external links for tutorial)
=== Creation ===
* [[Turrets]] - fixed, movable, and usable varieties
* [[Combine]]
* [[Headcrab]]
* [[Mapping with Antlions]]
* {{ent|npc_combine_s}} - Used to place Combine soldiers of any type (see the "model" property)
* {{ent|npc_citizen}} - Used to place human rebels
* {{ent|npc_sniper}}
* {{ent|npc_strider}}
* [[Turrets]] - Fixed, movable, and usable varieties
* [[Zombie]]
Most NPCs can fight, but some require special set-up:
* Dropships: {{ent|npc_combinedropship}}; see external link
* Gunships and helicopters ({{ent|npc_combinegunship}} and {{ent|npc_helicopter}}) (see [[#External links|External links]])
{{todo|add all HL2 enemy entities?}}


=== Entities ===
== {{Left 4 Dead|4}}/{{Left 4 Dead|4 2}} ==
Most NPCs can fight, but some require special set-up:
{{todo|add things.}}
* Dropships: [[npc_combinedropship]]; see external link
* Gunships and helicopters ([[npc_combinegunship]] and [[npc_helicopter]]) (see [[#External links|external link]])
* [[Striders]] ([[npc_strider]])
* [[env_headcrabcanister|headcrab cannisters]]
* [[npc_sniper]]


=== Notes ===
== {{Team Fortress 2|4}} ==
* NPCs will not move far, if at all, unless they have [[info_node]]s. See [[Node graph]].
Most "NPCs" in TF2 use the NextBot system.
* All types of Combine soldier are placed with [[npc_combine_s]] entities; see the '''model''' property.
=== Control ===
* Human rebels are placed with [[npc_citizen]] entities.
* {{ent|bot_action_point}} — Specifies an action to perform
* {{ent|bot_controller}} — Creates & controls a bot
* {{ent|bot_hint_engineer_nest}} — Tells MvM Engineer bots where to build a "nest"
* {{ent|bot_hint_sentrygun}} — Tells MvM Engineer bots where to build a Sentry Gun
* {{ent|func_tfbot_hint}} — Tells Engineer bots where to build or (MvM) Sniper bots where to stand
=== Creation ===
* {{ent|bot_generator}} — Generates multiple <code>tf_bot</code>s
* [[Team Fortress 2 Halloween Bosses]]
* {{ent|tf_zombie_spawner}} — "Intended" way to spawn skeletons
* [[TFBot Technicalities]]


== Programming ==
=== Entities ===
* [[list of default AI relationships/table]]
{{warning|The following are supposed to be dynamically spawned (via {{ent|point_template}} or similar) and may have issues when spawned on their own.}}
* [[States]]
* {{ent|eyeball_boss}}{{!fgd}} — MONOCULUS!
* [[AI Programming]] - not combat-specific
* {{ent|headless_hatman}}{{!fgd}} — Horseless Headless Horsemann
* {{ent|merasmus}}{{!fgd}} — MERASMUS!
* {{ent|obj_sentrygun}} — Sentry Gun {{note|Unlike the other entities here, this isn't an NPC and has little to no discernible AI.}}{{tip|Suffers no issues when placed as a normal map object.}}
* {{ent|tf_bot}} — Training/MvM bot
* {{ent|tf_zombie}}{{!fgd}} — Skeleton


== See also ==
== See also ==
* [[WiseNPCrappel]], [[WiseNPCrapjump]] - Rappeling metro police
* {{hl2}}[[AI Metrics]]
* [[:Category:AI]]
* {{hl2}}[[Half-Life 2 Level Creation]]
* {{l4d}}[[Left 4 Dead Level Creation]]
* {{l4d2}}[[Left 4 Dead 2 Level Creation]]
* {{hl2}}[[WiseNPCrappel]], [[WiseNPCrapjump]] - Rappelling metro police


== External links ==
== External links ==
* [http://type3studios.com/civilization/tutorials/sdknuts/npc Collection of NPC tutorials]
* {{hl2}} [http://web.archive.org/web/20090901104251/http://type3studios.com/civilization/tutorials/sdknuts/npc Collection of NPC tutorials] {{Archived|date=1 September, 2009}}
* {{tf2}} [https://tf2maps.net/threads/scream-fortress-and-you-a-guide-to-all-things-spooky.40118/ TF2Maps] on Halloween (incl. Halloween bosses and skeletons)
* {{tf2}} [https://tf2maps.net/threads/guide-mann-vs-machine-attributes-full-version.20732/ TF2Maps] on special MvM bots
 
[[Category:Hubs]] [[Category:AI]]

Latest revision as of 05:28, 12 July 2024

English (en)Русский (ru)中文 (zh)Translate (Translate)
Abstract Mapping series Discuss your thoughts - Help us develop the articles or ideas you want

Ammunition | List of HL2 Animals and Creatures | Mapping with Antlions | Beams and Lasers | Cables and Ropes | Moving Clouds | Color Theory in Level Design | Combat | Combine | Compression (Source 1) | Doors | Dust, Fog, & Smoke | Elevators | Level Transitions | Environmental Lighting, Sun, Weather, & Outdoors | Explosions | Fire | Half-Life 2 Foliage | Glass & Windows | Headcrab | Health | Ladders | Lighting | Optimization (level design) | Physics | Retinal scanners | Sound and Music | Special effects | Terrain | Trains | Turrets | Water | Weapons | Zombie


A hub for articles about creating fighting and combat in Source maps and mods.

General NPCs

General NextBots

Half-Life 2 Half-Life 2

Control

Creation

Most NPCs can fight, but some require special set-up:

Todo: add all HL2 enemy entities?

Left 4 Dead Left 4 Dead/Left 4 Dead

Todo: add things.

Team Fortress 2 Team Fortress 2

Most "NPCs" in TF2 use the NextBot system.

Control

Creation

Entities

Warning.pngWarning:The following are supposed to be dynamically spawned (via point_template or similar) and may have issues when spawned on their own.

See also

External links