Added g_layoutVotePercent cvar, for setting percentages for layout votes.
Added g_proximityMinesPrice cvar, for setting price of mines Layout now uses !restart instead of !map, to prevent client map reloads.
This commit is contained in:
1 parent
045f2b667b
commit
cf635a3ca7
5 files changed
+20
-13
No files matched your search
+4
-4
@@ -3754,13 +3754,13 @@ int bg_numWeapons = sizeof( bg_weapons ) / sizeof( bg_weapons[ 0 ] );
|
||||
BG_UpdateWeaponData
|
||||
==============
|
||||
*/
|
||||
void BG_UpdateWeaponData(int proximityMine) {
|
||||
void BG_UpdateWeaponData(int proximityMine, int price) {
|
||||
int i;
|
||||
|
||||
for(i=0; i<bg_numWeapons; i++) {
|
||||
if(bg_weapons[i].weaponNum == WP_GRENADE) {
|
||||
if(proximityMine) {
|
||||
bg_weapons[i].price = PROXIMITY_PRICE;
|
||||
bg_weapons[i].price = price;
|
||||
} else {
|
||||
bg_weapons[i].price = GRENADE_PRICE;
|
||||
}
|
||||
@@ -4317,13 +4317,13 @@ int bg_numUpgrades = sizeof( bg_upgrades ) / sizeof( bg_upgrades[ 0 ] );
|
||||
BG_UpdateUpgradeData
|
||||
==============
|
||||
*/
|
||||
void BG_UpdateUpgradeData(int proximityMine) {
|
||||
void BG_UpdateUpgradeData(int proximityMine, int price) {
|
||||
int i;
|
||||
|
||||
for(i=0; i<bg_numUpgrades; i++) {
|
||||
if(bg_upgrades[i].upgradeNum == UP_GRENADE) {
|
||||
if(proximityMine) {
|
||||
bg_upgrades[i].price = PROXIMITY_PRICE;
|
||||
bg_upgrades[i].price = price;
|
||||
} else {
|
||||
bg_upgrades[i].price = GRENADE_PRICE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user