Creating an HL2DM megacharger: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Thunder4ik (talk | contribs) m (Unicodifying, replaced: [[Image: → [[File: (8)) |
||
Line 9: | Line 9: | ||
===The Charger=== | ===The Charger=== | ||
[[ | [[File:HL2DM Megacharger.jpeg|thumb|right|300px|The Charger]] | ||
Create an <code>[[item_suitcharger]]</code> entity, set its name to <code>megacharger</code> and tick the <code>Citadel recharger</code> flag. | Create an <code>[[item_suitcharger]]</code> entity, set its name to <code>megacharger</code> and tick the <code>Citadel recharger</code> flag. | ||
Enter the following outputs: | Enter the following outputs: | ||
{| {{OutputsTable}} | {| {{OutputsTable}} | ||
| [[ | | [[File:Io12.png]] || OnEmpty || megacharger_light || HideSprite || <none> || 0.00 || No | ||
|- | |- | ||
| [[ | | [[File:Io12.png]] || OnEmpty || megacharger_light_ || TurnOff || <none> || 0.00 || No | ||
|- | |- | ||
| [[ | | [[File:Io12.png]] || OnFull || megacharger_light || ShowSprite || <none> || 0.00 || No | ||
|- | |- | ||
| [[ | | [[File:Io12.png]] || OnFull || megacharger_light_ || TurnOn || <none> || 0.00 || No | ||
|} | |} | ||
===Charger Model=== | ===Charger Model=== | ||
[[ | [[File:HL2DM Megacharger 02.jpeg|thumb|right|300px|The Charger Model]] | ||
Create <code>[[prop_dynamic]]</code> entity and enter the following properties: | Create <code>[[prop_dynamic]]</code> entity and enter the following properties: | ||
Line 40: | Line 40: | ||
===Charger Glow=== | ===Charger Glow=== | ||
[[ | [[File:HL2DM Megacharger 03.jpeg|thumb|right|300px|The Charger Glow]] | ||
Create an <code>[[env_sprite]]</code> entity and enter the following properties: | Create an <code>[[env_sprite]]</code> entity and enter the following properties: | ||
Line 60: | Line 60: | ||
===Charger Light=== | ===Charger Light=== | ||
[[ | [[File:HL2DM Megacharger 04.jpeg|thumb|right|300px|The Charger Light]] | ||
Create a <code>[[light]]</code> entity and enter the following properties: | Create a <code>[[light]]</code> entity and enter the following properties: | ||
Latest revision as of 01:50, 7 January 2024
Introduction
This guide will show you how to create megachargers seen in dm_lockdown. This is a good way to make megachargers distinct from normal chargers in your deathmatch map.
Creation
The Charger
Create an item_suitcharger
entity, set its name to megacharger
and tick the Citadel recharger
flag.
Enter the following outputs:
Charger Model
Create prop_dynamic
entity and enter the following properties:
Property Name | Value |
---|---|
World Model | models/props_combine/Combine_Dispenser.mdl |
Disable Shadows | Yes |
Collisions | Not Solid |
Position the model so it covers the suitcharger's model.
Charger Glow
Create an env_sprite
entity and enter the following properties:
Property Name | Value |
---|---|
Name | megacharger_light |
Render FX | Slow Pulse |
Render Mode | World Space Glow |
FX Color | 0 255 0 |
Scale | 0.25 |
Size of Glow Proxy Geometry. | 5 |
Charger Light
Create a light
entity and enter the following properties:
Property Name | Value |
---|---|
Name | megacharger_light_ |
Pitch Yaw Roll | -60 0 -90 |
Brightness | 0 255 64 25 |
Inner angle | 5 |
Outer angle | 30 |
Pitch | -60 |