View Single Post
Plugin Info:     Modification:          Category:          Approver:   Exolent[jNr] (178)
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 08-04-2008 , 21:55   DoD Pistol Ammo Clips
Reply With Quote #1

DOD_PistolClips - For Day of Defeat 1.3
Written by Vet(3TT3V)

Version Update 3/12/09

Description:
Players drop their pistol when killed. Players can then pick up the pistol and get an ammo clip from it. Simple, but can be a lifesaver.

Options:
- If the 'active' CVar is ON, the pistol must be the active weapon when the player is killed. If OFF, pistol is dropped every time (default).
- If the 'usekey' CVar is ON (default), the player must press his 'Use' key to pick up the clip. If OFF, you can just walk over the pistol to pick up the clip.
- If the 'univ' (short for 'universal ammo') CVar is ON, players can pick up any type of pistol. If OFF (default), then the players can only pick up pistols they normally use. Meaning you can't pick up a Luger if you use Colt clips.

Commands:
dod_pistolclips - Toggles the plugin On and Off (access level 'h')

CVars:
dod_pistolclips_enable <0|1> Disables|Enables the plugin (default - 1)
dod_pistolclips_life <##> Lifetime (seconds) of the dropped pistol (default - 22)
dod_pistolclips_univ <0|1> All pistols use 'universal' ammo clips (default - 0)
dod_pistolclips_report <0|1> Say (in chat) if you picked up a clip (default - 1)
dod_pistolclips_usekey <0|1> Must press the 'Use' key to pick up a clip (default - 1)
dod_pistolclips_active <0|1> Only drop a pistol if using it when killed (default - 0)

Notes:
- Report feature is automatically disabled if using 'Universal' ammo and 'Active' is disabled. This keeps the chat from filling up since many clips are dropped and picked up.
- Compatability with other pistol/ammo plugins is unknown and not supported.
- Bots will not pick up dropped pistols

Installation:
- This plugin requires the supplied w_webley_v1.mdl model for the Webley pistol. Download, unzip, and place the model in your /dod/models/ folder. If applicable, you'll want to upload the model to your FastDownload server as well.
- This plugin requires the HamSandwich module.

Thanks:
- To Wilson[29th ID] at www.dodplugins.net for his 'Update Ammo HUD' tutorial.
- To Diamond-optic at www.dodplugins.net for webley model texture suggestion.

Version History:
v1.4 Added ammopickup soundbite
v1.3 Original Release


Version Update 3/12/09
-
Attached Files
File Type: zip w_webley_v1.zip (28.9 KB, 892 views)
File Type: sma Get Plugin or Get Source (dod_pistolclips.sma - 9188 views - 8.6 KB)
__________________
=====================================
- My Plugins -
=====================================

Last edited by Vet; 03-12-2009 at 23:40. Reason: Version update
Vet is offline
Send a message via MSN to Vet