gunslinger23 / maniadminplugin

Automatically exported from code.google.com/p/maniadminplugin
1 stars 1 forks source link

Refunded $0 for loss of weapon #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Use latest 1.2V binaries
2. Add ma_restrict "awp" "1" to server.cfg
3. Change mani_weapon_restrict_refund_on_spawn to 1 in mani_server.cfg
4. Change mani_weapon_restrict_prevent_pickup to 0

What is the expected output? What do you see instead?

When the a weapon is restricted to one per team, if an AWP is dropped in the 
game it's possible for the person to pick it up and keep it until the next 
round, upon the start of the next round the AWP should then be removed from the 
player, this works correctly however the refund system doesn't and refunds $0 
instead of the value of the said weapon.

What version of the product are you using? On what operating system?
Mani Admin Plugin 1.2V (July 18th binaries) using SRCDS Dedicated server on 
Windows XP Home Edition

Please provide any additional information below.

Original bug report:

http://www.mani-admin-plugin.com/joomla/index.php?option=com_kunena&Itemid=58&fu
nc=view&catid=6&id=86236

Original issue reported on code.google.com by ja...@jmwhite.co.uk on 19 Jul 2010 at 10:26

GoogleCodeExporter commented 9 years ago
I think the code for refunding is solid...

This is interesting tho :

ma_listweapons
Weapon name [weapon_xm1014] Price [0]
Weapon name [weapon_usp] Price [0]
Weapon name [weapon_ump45] Price [0]
Weapon name [weapon_tmp] Price [0]
Weapon name [weapon_smokegrenade] Price [0]
Weapon name [weapon_sg552] Price [0]
Weapon name [weapon_sg550] Price [0]
Weapon name [weapon_scout] Price [0]
Weapon name [weapon_p90] Price [0]
Weapon name [weapon_p228] Price [0]
Weapon name [weapon_mp5navy] Price [0]
Weapon name [weapon_mac10] Price [0]
Weapon name [weapon_m4a1] Price [0]
Weapon name [weapon_m3] Price [0]
Weapon name [weapon_m249] Price [0]
Weapon name [weapon_knife] Price [0]
Weapon name [weapon_hegrenade] Price [0]
Weapon name [weapon_glock] Price [0]
Weapon name [weapon_galil] Price [0]
Weapon name [weapon_g3sg1] Price [0]
Weapon name [weapon_flashbang] Price [0]
Weapon name [weapon_fiveseven] Price [0]
Weapon name [weapon_famas] Price [0]
Weapon name [weapon_elite] Price [0]
Weapon name [weapon_deagle] Price [0]
Weapon name [weapon_c4] Price [0]
Weapon name [weapon_awp] Price [0]
Weapon name [weapon_aug] Price [0]
Weapon name [weapon_ak47] Price [0]

Original comment by keeper....@gmail.com on 22 Jul 2010 at 3:01

GoogleCodeExporter commented 9 years ago
Ok, seems like the structure for CCSWeaponInfo changed moving to the OB.

ma_listweapons
Weapon name [weapon_xm1014] Price [3000]
Weapon name [weapon_usp] Price [500]
Weapon name [weapon_ump45] Price [1700]
Weapon name [weapon_tmp] Price [1250]
Weapon name [weapon_smokegrenade] Price [300]
Weapon name [weapon_sg552] Price [3500]
Weapon name [weapon_sg550] Price [4200]
Weapon name [weapon_scout] Price [2750]
Weapon name [weapon_p90] Price [2350]
Weapon name [weapon_p228] Price [600]
Weapon name [weapon_mp5navy] Price [1500]
Weapon name [weapon_mac10] Price [1400]
Weapon name [weapon_m4a1] Price [3100]
Weapon name [weapon_m3] Price [1700]
Weapon name [weapon_m249] Price [5750]
Weapon name [weapon_knife] Price [0]
Weapon name [weapon_hegrenade] Price [300]
Weapon name [weapon_glock] Price [400]
Weapon name [weapon_galil] Price [2000]
Weapon name [weapon_g3sg1] Price [5000]
Weapon name [weapon_flashbang] Price [200]
Weapon name [weapon_fiveseven] Price [750]
Weapon name [weapon_famas] Price [2250]
Weapon name [weapon_elite] Price [800]
Weapon name [weapon_deagle] Price [650]
Weapon name [weapon_c4] Price [0]
Weapon name [weapon_awp] Price [4750]
Weapon name [weapon_aug] Price [3500]
Weapon name [weapon_ak47] Price [2500]

Original comment by keeper....@gmail.com on 22 Jul 2010 at 3:37

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r378.

Original comment by keeper....@gmail.com on 22 Jul 2010 at 3:40