Weapons
{{subst:#if:|||
Important step for replacing wikilinks after you've created this page
After you click 'Edit' do what the image shows. If you can't see editing toolbar you need to enable it in 'Preferences' -> Editing -> checkbox 'Enable the editing toolbar'
![]() |
参见: {{LAuto}}
|
--- DON'T JUST BLINDLY DELETE THIS PART. DO REPLACE THE LINKS AND CATEGORIES. THE PICTURE SHOWS HOW TO USE IT ! ---
SEARCH FOR: \[\[(?!#|File(?:[ _]talk)?:|Image(?:[ _]talk)?:|Media:|Template(?:[ _]talk)?:|MediaWiki(?:[ _]talk)?:|Talk:|Category[ _]talk:|Project[ _]talk:|Valve[ _]Developer[ _]Community[ _]talk:|Help[ _]talk:|User(?:[ _]talk)?:|c:|commons:|Dictionary:|Google:|GoogleGroups:|IMDB:|M:|Meta:|Metawikipedia:|MW:|SdkBug:|SourceForge:|Steampowered:|W:|Wiki:|WikiBooks:|Wikipedia:|Wikiquote:|Wiktionary:|WP:)(:?(?:Category|Category|Help|Project|Valve[ _]Developer[ _]Community|Special|)(?:[^\|\]]+))(\|?.*?)\]\]
REPLACE WITH: {{subst:LAuto|$1$2}}
}}
As a courtesy, please do not edit this while this message is displayed.
If this page has not been edited for at least several hours to a few days, please remove this template. This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to edit the page.
The person who added this notice will be listed in its edit history should you wish to contact them.

You can help by finishing the translation.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.(en)
概括性的地图制作(en)系列 讨论你的想法——帮助我们写你需要的文章和想法 |
---|
弹药 | 生物 | 蚁狮 | 光束和激光 | 线缆和绳子 | 动态的天空与云雾 | 颜色理论 | 战斗 | 联合军 | Compression (Source 1) | 门 | 尘土、雾、烟 | 升降机 | 关卡转换 | 环境光效、太阳、天气、室外 | 爆炸 | 火焰 | 植被 | 玻璃和窗户 | Headcrab | Health | 梯子 | 光效 | 优化] | 物理 | 视网膜扫描仪 | 声效和音乐 | 特效 | 地形 | 火车 | 机枪塔 | 水 | Weapons | 僵尸 |
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
- weapon_shotgun named "spawnedweapon"
- point_template named "weapontemplate" with "template01" set to "spawnedweapon".
- env_entity_maker "weapontemplate" as entitytemplate.
- logic_relay to call
forcespawn
on env_entity_maker to spawn in weapon.
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.