weaponbox
Jump to navigation
Jump to search
Warning: Make sure you capitalize the string exactly as showcased above, or else it won't work!
| CWeaponBox |
weaponbox is a point entity available in all
GoldSrc games except
Ricochet.
It is a capsule with ammo and weapons inside of it. It can be found in Deathmatch or in the chapter "Xen" and beyond it. However, it does not respawn in multiplayer.
The vanilla FGD entry for this entity has no keyvalues listed. Turn off SmartEdit and add the weapon/ammo name as the key and the amount as the value for it to work as intended.
List of the supported ammunition types:
- 9mm
- buckshot
- 357
- ARgrenades
- Hand Grenade
- Trip Mine
- bolts
- uranium
- Satchel Charge
- Hornets
- rockets
- Snarks
- Penguins (only in
) - 556 (only in
) - 762 (only in
) - spores (only in
) - shock (only in
)
- shells
- nails
- rockets
- cells
Improved FGD code
The following FGD entry, which only works in
J.A.C.K. (due to needing quoted keyvalues), will allow setting ammo without using SmartEdit.
Todo: SmartEdit names
@PointClass size(-16 -16 0, 16 16 64) color(0 128 0) studio("models/w_weaponbox.mdl") base(Targetname,Angles,Appearflags,RenderFields) = weaponbox : "Weapon/Ammo Container."
[
357(integer)
9mm(integer)
ARgrenades(integer)
bolts(integer)
buckshot(integer)
"Hand Grenade"(integer)
Hornets(integer)
"Satchel Charge"(integer)
Snarks(integer)
"Trip Mine"(integer)
uranium(integer)
]
@PointClass size(-16 -16 0, 16 16 64) color(0 128 0) studio("models/w_weaponbox.mdl") base(Targetname,Angles,Appearflags,RenderFields) = weaponbox : "Weapon/Ammo Container."
[
357(integer)
9mm(integer)
ARgrenades(integer)
bolts(integer)
buckshot(integer)
"Hand Grenade"(integer)
Hornets(integer)
"Satchel Charge"(integer)
Snarks(integer)
"Trip Mine"(integer)
uranium(integer)
Penguins(integer)
556(integer)
762(integer)
spores(integer)
shock(integer)
]
@PointClass size(-16 -16 0, 16 16 64) color(0 128 0) studio("models/w_weaponbox.mdl") base(Targetname,Angles,Appearflags,RenderFields) = weaponbox : "Weapon/Ammo Container."
[
shells(integer)
nails(integer)
rockets(integer)
cells(integer)
]
External links
weaponbox on TWHL wiki