Weapon Shop Mod V3.0

Add Another Mod

 

Mod File number (downloads) -

MD5

Type -

Map

Server / Client -

Server Side

Mod Sub Cat -

N/A

Mod Version -

Total Views -

Mod screen shot -

Weapon Shop Mod V3.0

Mod PK3

PK3 MD5

Mod External Info -

Game Type -

MOHAA

 

 

Mod Creator -

Purple Elephant1au

 

 

 

 

Mod Status -

Fully working no errors

 

Team -

N/A

 

Theme -

Rating

Extra Credits -

 

Iinstall / info

Its works by spawning crates ( or you choose the model )
and they act as a shop which you can buy weapons off. At the cost of kills

You can place multiple crates around a map to use,
Plays go up to them
Press [USE] and they will get a menu like hud on the right hand side with an option of each weapon
Navigate Using Lean keys ( V3)
Leaving the area will cause shop to close.

if spawn event is used , ie level.giveback = 1 , players start with pistol , if not , they start with any weapon

If they buy a weapon they already bought , they get ammo as the same price

Has different settings , each can be changed via the weaponshop/weapon_shop_settings.txt

Updated for version 2
Code:

///////////////////////----------------------------------------------------------////////////////////////////

level.rifle = 10 /// Cost For a rifle
level.sniper = 20 /// Cost For a Sniper
level.smg = 30 /// Cost For a SMG
level.mg = 40 /// Cost For a MG
level.shotgun = 70 /// Cost For a Shotgun
level.rocket = 50 /// Cost For a Rocket

//////////////////////////

level.pistol_ammo_cost = 1 ///Cost of Pistol ammo
level.pistol_ammo_amount = 10 /// Amount of Pistol ammo they get

level.rifle_ammo_cost = 5 ///Cost of Rifle ammo
level.rifle_ammo_amount = 20 /// Amount of Rifle ammo they get

level.smg_ammo_cost = 10 ///Cost of SMG ammo
level.smg_ammo_amount = 40 /// Amount of SMG ammo they get

level.mg_ammo_cost = 20 ///Cost of MG ammo
level.mg_ammo_amount = 80 /// Amount of MG ammo they get

level.grenade_cost = 10 ///Cost of Grenades
level.grenade_amount = 3

level.rocket_ammo_cost = 20 ///Cost of Rocket ammo
level.rocket_ammo_amount = 4 /// Amount of Rocket ammo they get

level.shotgun_ammo_cost = 20 ///Cost of Shotgun ammo
level.shotgun_ammo_amount = 25 /// Amount of Shotgun ammo they get

//////////////////////////

level.shealcost = 10 ///Cost of Small Health
level.shealamount = 20 /// Amount of Health they get for Small
level.mhealcost = 20 ///Cost of Medium Health
level.mhealamount = 40 /// Amount of Health they get for Medium
level.lhealcost = 30 ///Cost of Large Health
level.lhealamount = 90 /// Amount of Health they get for Large

//////////////////////

level.radius = 150 /// Sets the radius of the shop area , if a player leaves it closes
level.giveback = 1 /// Whether or not to give the player their bought weapons back when they spawn
level.model = "static/worktable.tik" /// Model of the shop
level.shopcolor = "purple" /// Colors include Purple , Blue , Green , Red , White

//////////////////////////////////////////////////////////////////////////////////////////////////////////////

level.test = 0 /// Used for testing , displays iprints and a crate to add kills near normal crate Make 0 to turn testing off
level.testmodel = "static/nazi_crate.tik" /// Model of the testing box

///////////////////////----------------------------------------------------------////////////////////////////

Readme.txt Updated Version 2
Code:

/*
////////////////////////////////////////////////////////////////////////////////////////////////////////////

Weapon Shop Mod - By Purple Elephant

Version 2
04/05/2013
Updates from v1:

Added More menus for health and ammo
rainbow color added
A hud telling players to press USE to access shop
changed crate to table
added static models to top of the table in an array

-------------------------------------------------------------------------------------------------
Requires:
---------
Reborn patch ( latest ) >>> http://www.x-null.net
Used for TDM or FFA games ( not objective )

Note:
-------
Uses Reborn Events - keypress
- disconnect

Also Can use - connected
- spawn
Depending on settings

Uses ihuddraws Numbers 99 - 110
Uses custom grenade.tik files for setting amount of grenades

Usage:
--------

ADD the following
*******************************
Place in dmprecache AFTER level waittill spawn

exec weaponshop/weapon_shop.scr

In EACH map.scr , 1 For each box you want , examples are for dm/mohdm4 , can add to dmprecache for testing purposes
/// Path /// Coord
exec weaponshop/weapon_shop.scr::setup_boxes ( 10.55 -1590.52 240.13 )
exec weaponshop/weapon_shop.scr::setup_boxes ( 10.55 -1790.52 240.13 )
*******************************

Do NOT forget to change settings in weaponshop/weapon_shop.txt

///////////////////////////////////////////////////////////////////////////////////

Any suggestions im open to it lol

Updated to Version 3:

NO more binds Tongue , so doesnt need keypress or disconnect events
Uses another ihud index for addition instructions

Players now navigate menu with the Lean keys and select with the fire key

Updated to Version 2:
Updates from v1:

Added Toggleable menus for gun , health and ammo
rainbow color added
A hud telling players to press USE to access shop
changed crate to table
added static models to top of the table in an array to make it look more appealing

Video