
Admin Tools
Purple weapon limiter
Creator
Purple Elephant1au
Version
N/A
Game Type
MOHAA
Reborn Compatible
Unknown
Description
/*
Purple Elephants Complete Weapon Limiter
Version 1.02
19 November 2014
*Added CKR Realism Support
Version 1.01
14 November 2014
*Added Weapon swap
Usage:
Place
-------------------------------
exec global/weapons.scr::main
-------------------------------
In global/dmprecache.scr
If you are NOT using my eventhandler, you will need to place
-------------------------------------------
local.result = registerev "spawn" global/weapons.scr::spawn
------------------------------------------
to your global/dmprecache.scr
////////////////////////////////////////////////////////////////
Cvar settings
-------------
Each weapon and its ammo are controlled via cvars.
Example for sniper
set pe_sniper 1_2_3
1 = On or off 0 or 1
2 = Clipsize - Amount of rounds are in one clip
3 = Starting Amount - This is the Starting amount of ammo given BEFORE clip is loaded, clip amount is then taken from Starting amount.
Note: Grenades and Rockets DO NOT use the clipsize amount, they are limited to 1 only, so for them you would just use 1_2
ie
set pe_grenade 1_2
1 for ON
2 for Amount of grenades
Other Cvars include:
-----------------
set ckr_realism "1" 1 ON 0 OFF - If ON, CKR Realism Settings are applied, note this removed the settings like clipsize and dmstartammo from the other cvars
Both of these are triggered if the player chooses a weapon which is turned OFF
set pe_weapon_message "1" 1 ON 0 OFF - If ON , player will be displayed a list of allowed weapons, if OFF , no message will be displayed
set pe_weapon_choice "0" 1 ON 0 OFF - If ON , a player will get to choose another weapon and respawn , if OFF , players will be forced to a Sniper as default
set pe_weapon_swap "1" 1 ON 0 OFF - If ON , player will be allowed to swap his weapon for the other teams equilivent weapon
set pe_weapon_swap_time # - Sets the time in Seconds of how long between weapon swaps , set high if you only want them to be able to swap once
set pe_weapon_swap_key 'key' - Sets the keybinded key players use to swap weapons
set pe_allweapons # 1 = All weapons - Player gets all weapons , including those of the other team
2 = All Team Weapons - Player gets all weapons of their team
3 = All Allowed Team Weapons - Player gets all of the Allowed weapons of their team
4 = All Allowed Weapons - Player gets all of the Allowed weapons , including those of the other teams
So you can have a variety of different weapon variations
Say you want sniper only , you set
pe_sniper 1_5_47
and all others off
OR
If you wanted dual rifles, you would set
pe_rifle 1_10_60
All others off,
and Also
pe_allweapons 4
Example Config:
------------------------------
set ckr_realism "0"
set pe_weapon_message "1"
set pe_weapon_choice "0"
set pe_weapon_swap "1"
set pe_weapon_swap_time = "10"
set pe_weapon_swap_key = "i"
set pe_shotgun "0_5_35"
set pe_rifle "1_5_55"
set pe_sniper "1_5_47"
set pe_smg "1_20_140"
set pe_mg "0_30_180"
set pe_pistol "1_8_16"
set pe_rocket "0_6"
set pe_grenade "1_2"
------------------------------
Related MOHAA Mods
More Admin Tools →Engine & Patch Compatibility
Community-tested verification on official patches & Reborn
0.00 reviews
Community Rating & Discussions
Rate this mod and share feedback or installation tips with fellow players.
Your Rating:
Leave a Comment / ReviewLog in to join the discussion
Loading discussions...
Downloads
479
Total Downloads
Date Added
November 19, 2014
Download
Mod Information
Rating5.0/5



