Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-09-22 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
September 21, 2012, 09:44:48 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Goldbets  (Read 1252 times)
Necavi
Full Member
***
Posts: 217


View Profile
« on: November 05, 2011, 07:05:15 AM »

This is a modified version of Teambets (also modified by a member of these forums, but not to this degree) which has been changed to use a pot-based system (to avoid injecting large amounts of gold into a server's economy) although I have removed several of the features, I'd be happy to re-add them if people would actually use them.

sm_goldbet_enable
sm_goldbet_maximum Which controls the maximum amount a player can bet, defaulting to 40
sm_goldbet_minimum Controls the minimum amount a player can bet, defaulting to 5
sm_goldbet_betratio Defines the amount you can win per gold you bet

Update: Fixed the translation issue as well as a minor bug (due to some issues with integer math, sometimes it would award no gold, even if you won)

Also, due to this plugin's simplicity and usefulness I wouldn't mind if this was one of the packaged addons (especially after I add my last addition, less requests).
« Last Edit: November 06, 2011, 05:14:35 PM by Necavi » Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2032



View Profile WWW Email
« Reply #1 on: November 06, 2011, 01:18:07 PM »

looks good, commit it to svn
Logged

DarkEnergy
Necavi
Full Member
***
Posts: 217


View Profile
« Reply #2 on: November 06, 2011, 05:11:02 PM »

Commited, as well as updated to add two more cvars, fix it so that rebetting is impossible and a few other small improvements.
Logged

loranger
Newbie
*
Posts: 16


View Profile
« Reply #3 on: January 30, 2012, 02:55:02 AM »

can you make a version compatible for teamfortress2?  with actual team name blu and red
Logged
Necavi
Full Member
***
Posts: 217


View Profile
« Reply #4 on: January 30, 2012, 03:35:43 AM »

Committed with TF2 support.

Addendum: Translations will be broken by this, you need to change "Invalid_Team_for_Bet" to "Invalid_Team_for_Bet_CSS" and "Invalid_Team_for_Bet_TF2".
« Last Edit: January 30, 2012, 03:42:58 AM by Necavi » Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2032



View Profile WWW Email
« Reply #5 on: January 31, 2012, 11:21:52 AM »

u mean, update translations from the svn
Logged

DarkEnergy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!