I just had this idea of a gun rack system, and quickly made this proof of concept, so the sprites and code aren't the best. But if there is some interest in this, I'd be willing to work on improving it and turn it into a proper submission (probably for the Props category, seems most fitting). Of course any help will be appreciated too.
If it's possible, I'd like to make actual gun cabinets that you can open and close. edit
actually scratch that idea, I just need some good sprites of racks, shelves, cabinets, etc.
Name: Gun Rack
Connection: none
Palette: Doom
Summon: GunrackS1, GunrackS2, GunrackS3, GunrackS4, GunrackL1, GunrackL2, GunrackL3, GunrackL4, Ammoshelf
Ambient Sound: No
De-/Activatable: No
Destroyable: No
Special Effects: No
Brightmaps: No
Actor modification: No
ACS: No
Description:
A simple gun rack wallsprite, comes in several variants. Usage:
- Open a map editor and create a wall.
- Place a rack against the wall, at least 1 mp away to avoid clipping. Also make sure the angle faces 90° away from the wall.
- Place some weapons close to the rack (within 64 mp).
This is how the screenshot above looks like in UDB:
The weapons will be automatically attached to the gun rack. Supports custom weapons as long as they inherit from the base weapon class.
Small racks can hold up to 3, large racks up to 6 weapons. You can pick up and use the weapons as normal.
Known issues:
- Some large weapons such as the BFG9000 may overlap with other weapons.
- A weapon that was picked up from a rack retains its flags and properties even when dropped, which may look wrong.
download:
https://drive.google.com/file/d/1AfEYz6KeSwoPR6UTMuQTNY2g3Op5eEeV/view?usp=sharinghttps://drive.google.com/file/d/1AfEYz6KeSwoPR6UTMuQTNY2g3Op5eEeV/view?usp=sharing
edit: added ammoshelf. Same concept, its a wallsprite that auto-attaches nearby ammo items
another edit: now supports dropped/summoned items