PDA

View Full Version : DoD One Weapon Mod


Hell Phoenix
07-24-2007, 04:39 PM
DoD One Weapon Mod
Hell Phoenix
http://www.charliemaurice.com/plugins
Description:
Allows for a single weapon to be used by everyone. Also gives them infinate
ammo.
Thanks To:
twistedeuphoria for the infiniteammo plugin...I used some of the code here

Versions:
1.0
* First Public Release!
1.1
* Fixed getting weapon while a spectator
* Fixed a bug where anyone could enable OWM...whoops
1.2
* Fixed the menu not turning on/off OWM
* Changed the way weapons are removed to hopefully get rid of the crash on linux
* Optimised some code
Todo:
* unlimited clips...not ammo (if this is possible...not sure how to do it yet)
* add PKN type mode

Cvarlist (default value):
dod_owm_weapon 6 - Use the values below for each weapon.
dod_owm_mode 1 - 1 kills user before giving them weapon, 0 just strips all
weapons and give the current allowed weapon.
dod_oneweapon 0 - 0 is Disable, 1 is Enable (use this in a config file if you
want to turn it on for a certain map).
Admin Commands:
dod_owm_menu - Brings up weapon menu and enable/disable

User Commands:
None
Weapon values (for using with cvar):
1 spade
2 american knife
3 c96
4 p38
5 colt
6 bar
7 thompson
8 m1carbine
9 mp40
10 mp44
11 bazooka
12 panzerschreck
13 garand
14 k98
15 k98_scoped
16 springfield
17 mg42
18 30cal
19 German Nades
20 US Nades

Hell Phoenix
07-27-2007, 02:10 PM
Updated to V1.1

* Fixed getting weapon while a spectator
* Fixed a bug where anyone could enable OWM...whoops

Hell Phoenix
08-13-2007, 03:23 PM
Updated to V1.2

* Fixed the menu not turning on/off OWM
* Changed the way weapons are removed to hopefully get rid of the crash on linux
* Optimised some code