AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   WarriorMod (https://forums.alliedmods.net/showthread.php?t=64768)

MistaGee 12-24-2007 07:12

WarriorMod
 
24 Attachment(s)
This plugin is a complete rewrite of my original MM:Source plugin, that's why version numbering starts at 2.

Features:
  • Admin menu integration (Bug: does not appear after sm plugin reload...)
  • Warmup rounds with $16k cash
  • Vote after Warmup: Continue Warmup / Knife / Live
  • config loading, depending on how many players are connected (defaults to ESL config, but can be anything you like - see cVars)
  • kicking/banning a complete team
  • auto mapchange after war, if war_next_map is set
  • Setting Maxrounds/Nextmap via Menu or commands
  • automatic SrcTV demo recording (optional), demos fulfill SteamBans submission requirements if sbsrc >= 4.0.0 installed
  • 3 restarts
  • Knife round (optional): Weapons are stripped from players at round start, winner team gets to vote "stay or leave". The plugin reacts accordingly, going live either immediately or after the teams have been changed.
  • Live mode: Score and Rounds are counted, Stats displayed during freezetime
  • After the first half has been played: Teams are automatically changed, Live is restarted
  • second half: team score is counted again
  • after the second half has been played: Final score is displayed, plugin resets itself.
  • Asking "ready?" before the clanwar starts
  • multilanguage support
  • Team name detection
  • Naming recorded demos according to the detected team names, map name and date/time.
  • Storing results in a MySQL table
    If a database config named warriormod exists this one is used. If not, default is tried - if that doesn't exist either, this functionality is disabled.
cVars:
  • war_version
    Displays the current WarriorMod version.
  • war_rounds (12)
    How many rounds to play. Defaults to 12, but can be any number you want.
  • war_rounds_wu (5)
    How many rounds to play during WarmUp phase. The actual number played can vary from that, as players can vote for warmup to be extended.
  • war_fadetoblack (0)
    ESL configs set fadetoblack to 1. If you don't like this, set this cVar to 0, and fadetoblack will be turned off; set to 1, and it will always be turned on; set to -1 and it will be left unchanged.
  • war_pausable (0)
    Same as fadetoblack for sv_pausable.
  • war_record (1)
    Set to 1 if you want a SrcTV demo to be recorded. The file name will name both teams, the map played, and a timestamp.
  • war_config
    Specifies the config you want to be executed. %s will be replaced by e.g. 3on3.
  • war_config_end
    Config file to be execed when the war is over or the plugin is reset.
    Note: %s will not be replaced here.
  • war_next_map
    Map to be loaded when the current war is finished. If empty, map won't be changed.
  • war_vote
    If 1, the plugin will vote for "Ready?" before knifing / live gaming starts.
  • war_finish (1)
    If 0, the war stops after one team reached a score of MR+1.
  • war_showmoney (0)
    Show money of your team mates in the status panel?
  • war_suddendeath (1)
    On draw, should a sudden death round be played?
Config file: cfg/sourcemod/warriormod.cfg
If it doesn't exist, it will be auto generated using the default values for the cVars.


Admin Commands (Adminlevel: Custom1):
  • war_knife
    Starts a war with a knife round.
  • war_live
    Starts a war, skipping knife round.
  • war_reset
    Resets the plugin, deleting all scores and finishing the demo.
  • war_maxrounds
    Sets or displays maxrounds.
  • war_nextmap
    Sets or displays nextmap.
  • war_warmup
    Starts a warmup round.
  • war_live_end / war_knife_end:
    Like war_live/knife, but wait until round end.
I might still add some features in the future, but the major part of the plugin works as intended and is ready for use. I've played a couple of real clanwars with it, it works as far as I know - if you find any bugs, please let me know.


Changes:
2.1.10:
  • Status panel doesn't block 1-5 keys anymore
  • turn off friendly fire in sudden death
  • Only allow vest to be bought in knife round
  • re-run sb_status when a player joins during the war
2.1.9:
  • After a not so nice cheating incident, the recorded SrcTV demos now fulfill SteamBans submission requirements. Too bad the guy that gave me the idea won't "profit" from this.
2.1.8:
  • Bugfix: Stripping weapons in Knife Round actually works - I stripped too early before, Terrs still had the bomb
  • Bugfix: Switching to knives works correctly, people won't spawn without a weapon at hand (even though that was somehow cool :| )
  • Sudden Death implemented: On Draw, everyone spawns with 1 HP and an M249, bomb is stripped, buying is restricted - last man standing wins.
2.1.7:
  • New panel is shown while restarts are performed
  • Spectators don't get panels but simple chat messages, this way SrcTV will show status info in the demos and to connected clients
2.1.6-2:
  • Round counting bug fixed when second half is restarted
2.1.5:
  • Bugfix: only their own cash was shown to a player
  • Startmoney will be changed back to the old value instead of 800 after warmup
  • fixed a compile warning
2.1.4:
  • war_knife/live_end
  • war_showmoney
  • war_finish
  • Status panel format updated
2.1.2:
  • CVar war_version is no longer included in the auto-created config files.
2.1.1:
  • Bugfix - Typo: "Team sizes not equal" message wasn't shown, so the plugin wouldn't start a war in this case
2.1.0:
  • first full-featured version
  • storing results to MySQL
2.0.14:
  • team name detection
  • demo naming
2.0.13:
  • multilanguage support
2.0.12:
  • startmoney being set to 800 after warmup
  • some minor changes to the menu
2.0.11:
  • "Ready?" votes
  • automatic teamchange
  • Warmup settings integrated into admin menu
2.0.10:
only a testing version, no official release

2.0.9:
  • cvar war_config_end: Is executed by war_reset and after the war ended.
  • Warmup rounds
  • Chat messages, when WU/Knife/Live are initiated
Enjoy,
MistaGee

PS: Be sure to also check out the updated version by Snake60 in this thread.

MistaGee 12-24-2007 10:57

Re: WarriorMod
 
When I just updated the plugin to version 2.0.7, the forum started telling me the cvar war_version was taken. The only plugin (according to GameMonitor) that uses the same cvar is the old, MM:Source version of WarriorMod.

When creating this thread, there was no such error displayed...

Could the game tracker have something to do with this? I listed WM there:
http://www.sourcemod.net/newstats.ph...=0&addon_id=50

[edit]
Bailopan solved the problem.
[/edit]

Igloo 01-10-2008 17:30

Re: WarriorMod
 
Hi,

Would it be possible to have the config file path as a variable that can be set so we can load multiple versions of this running different config's from the same image?

Regards,

Matt "Igloo" Iggo
Multiplay Support

Noobtastic 01-12-2008 10:52

Re: WarriorMod
 
Nice work, it does what it's supposed to do :). Another feature might be warmup rounds with $16000?

MistaGee 01-20-2008 04:09

Re: WarriorMod
 
Quote:

Originally Posted by Igloo (Post 572644)
Would it be possible to have the config file path as a variable that can be set so we can load multiple versions of this running different config's from the same image?

The config files that are executed can be set in the cvar war_config. %s in this value will be replaced by 1on1/2on2/3on3 etc, and the result will be passed to the exec command, so you can use any config files you like.

Quote:

Originally Posted by Noobtastic (Post 573223)
Another feature might be warmup rounds with $16000?

Definitely worth a thought, shouldn't be too hard to implement either...

Gee

Noobtastic 01-20-2008 10:05

Re: WarriorMod
 
Ah, something else that just came to mind...

Can you make it execute the server.cfg file when you choose "Reset plugin"? This would be ideal for our private servers.

RaideR 01-20-2008 21:15

Re: WarriorMod
 
waiting for multilanguage support.... any update news?

MistaGee 01-21-2008 07:17

Re: WarriorMod
 
N00btastic:

I've implemented both the features you asked for, enjoy :)

Quote:

Originally Posted by RaideR (Post 576455)
waiting for multilanguage support.... any update news?

Not yet, as I have no clue how the language system works. I'm going to check that out this week, I think.

Gee

Noobtastic 01-21-2008 13:15

Re: WarriorMod
 
Quote:

Originally Posted by MistaGee (Post 576632)
N00btastic:

I've implemented both the features you asked for, enjoy :)

Nice, thanks for the effort :D.

MistaGee 01-21-2008 18:28

Re: WarriorMod
 
Quote:

Originally Posted by RaideR (Post 576455)
waiting for multilanguage support.... any update news?

I think implementing that doesn't make too much sense for the time being, since the only supported languages are English and Spanish, and I don't think there's much to gain from that... The plugin doesn't display that much info after all, and the few texts that are displayed can be easily understood even by people who don't speak English...

I may implement that sooner or later, but other features have a higher priority to me right now.

Gee


All times are GMT -4. The time now is 20:34.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.