Weapons: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(?)
Tag: Manual revert
 
(15 intermediate revisions by 11 users not shown)
Line 1: Line 1:
NOTE: For the most up-to-date stats on weapons, visit the official [http://www.planethalflife.com/aoa/weapons.html weapons page].
{{LanguageBar}}
{{Abstract Mapping}}
==Adding weapons to a map==
:1. Making [[point entity]] with [[Classname]] [[:Category:weapons|weapon_...]] (For example: [[weapon_ak47]], [[weapon_portalgun]]...)


==Crowbar==
:2. Set you need [[keyvalues]] (For example:[[targetname]], [[rendermode]]...)
The Crowbar deals massive amounts of damage at short range with a minimal point investment. If your primary weapon is explosive or runs out of ammo easily, just a few points in this weapon can go a long way to save you in an emergency.


==Stun Baton==
You first weapon is done!
The Stun Baton does not gain as much damage per level as the Crowbar, but gets a higher range increase. As a result, higher levels of the Baton are not wasted on damage overkill, while your range makes it much easier to hit in most situations. If you're feeling gutsy, The Stun Baton surpasses the Crowbar as a primary weapon. Get [http://www.planethalflife.com/aoa/attributes.html#Stamina Stamina] so you can outrun your enemies, and some self-defense skills so you can survive a few hits on your approach.


==Gravity Gun==
==Dynamic Spawns==
Most people are content with a level 0 Gravity Gun unless they level theirs just for the fun of it, however the extra power can come in handy when packing barricades or taking down enemies when you're out of ammo. Also works nicely in tandem with Grenades.
Using [[env_entity_maker]], [[logic_relay]], and [[point_template]] you can spawn weapons into the map.


==Pistol==
===Example===
''Write my pros and cons please!''
*[[weapon_shotgun]] named ''"spawnedweapon"''
*[[point_template]] named ''"weapontemplate"'' with ''"template01"'' set to ''"spawnedweapon"''.
*[[env_entity_maker]] ''"weapontemplate"'' as ''entitytemplate''.
*[[logic_relay]] to call <code>forcespawn</code> on '''env_entity_maker''' to spawn in weapon.


==.357 Magnum==
Depending on need, you can use Flags "Start constrained" or "Deny player pickup" to control weapon after spawning.
''Write my pros and cons please!''


==Shotgun==
==Customizing Weapons==
''Write my pros and cons please!''
With the entity [[point_clientcommand]] and <code>sv_cheats 1</code> you can modify parameters for weapons. (ex: <code>"sk_plr_dmg_pistol 100"</code>)
This can also be done with weapon scripts. See [[Changing clip sizes]].


==Machine Gun==
==See also==
''Write my pros and cons please!''
[[:Category:Weapons]]
 
==Pulse Rifle==
''Write my pros and cons please!''
 
==Crossbow==
''Write my pros and cons please!''
 
==RPG==
''Write my pros and cons please!''
 
==SLAM==
''Write my pros and cons please!''
 
==Grenade==
''Write my pros and cons please!''

Latest revision as of 08:21, 22 June 2025

English (en)中文 (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

Adding weapons to a map

1. Making point entity with Classname weapon_... (For example: weapon_ak47, weapon_portalgun...)
2. Set you need keyvalues (For example:targetname, rendermode...)

You first weapon is done!

Dynamic Spawns

Using env_entity_maker, logic_relay, and point_template you can spawn weapons into the map.

Example

Depending on need, you can use Flags "Start constrained" or "Deny player pickup" to control weapon after spawning.

Customizing Weapons

With the entity point_clientcommand and sv_cheats 1 you can modify parameters for weapons. (ex: "sk_plr_dmg_pistol 100") This can also be done with weapon scripts. See Changing clip sizes.

See also

Category:Weapons