One Man Army
One Man Army is a Server-side SourceMod plug-in for Counter-Strike: Source that pits one player with guns against everyone else with knives.
Now, initially, that seems a little unfair. So throw in a unique RPG-like system and give the Counter-Terrorists cool abilities and you've got an awesome game of fun. Choose from the 8 basic skills and one of the 3 advanced skills to improve yourself. Also, if the new abilities are not enough for you, search the map for hidden loots that can give bonuses to your abilities such as increased damage, increased abilities or increased defense.
Experience is gained for the Counter-Terrorists by dodging bullets and dealing damage to the one man army. Killing the one man army as a Counter-Terrorist will allow you to become the one man army and fight against the Counter-Terrorists. The game ends when the terrorist reaches the final weapon level, the m249 AKA Para and manages to kill everyone. By default, Counter-Terrorists only have 10 levels and resets every map change.
This plugin requires Sourcemod 1.3 and the Hacks extension!
See post #74
Gameplay video/trailer:
Watch now
Changelog:
[code]1.0 Initial Release
1.1
-Added Health regeneration system
-Added Health increase for the one man army based on how many players he is up against.
-Improved team settings so that when the One man army gets killed the round does not end.
-Changed the kill interval to 5 kills instead of 2.
Code:
1.2
- Added: Stealth feature for CTs. (Crouch + moving = partially visible, crouch + still = invisible)
- Added: secondary pistol tier (requires x amount of headshots to attain a pistol (10 headshots is the first level, glock)
- added: gravity modifications to compensate for the insane speed.
- Added: Spawn protection: When the OMA spawns, if there is any ct in the T spawn area, they will be sent back to CT spawn.
- Added: The CTs at speed level 3 will recieve an he grenade from then onward, and at speed level 5 they will recieve a smoke grenade.
- Changed: When a player dies as the OMA, he loses a level, and will start at one level lower if they become the OMA again.
- Changed: the speed level now adapts to what base level the OMA is at.
- Fixed: Team settings system, a bug where there could sometimes be 2 terrorists.
- Fixed: CTs can no longer steal the OMA's weapon and use it against the new one.
- Fixed: bug: the plugin sometimes failed to set the correct client id for the person that was actually the OMA.
- Fixed: bug: plugin failed to give the OMA his elites after getting 70 headshots
- Possible fix: Plugin was removing the OMA's weapons after getting hurt by CTs.
1.3
- fixed bug where T might not sometimes get his weapon
- fixed bug where CT did not respawn when he fell to his death
- Fixed gravity bug where the CT's gravity gets set to .1
- fixed speed level system not resetting on a new OMA starting on scout level
- Modified speed level system so that when you die, it checks if you have a level below what the OMA has and adjusts your level if necessary.
- Modified regen values, swapped sides (CTs now regen faster than Ts) and also increased the amount of health the OMA recieves when he gets a kill
- Added a round ending system for when the OMA attains the final level (the para) the game warns the players he will win if not stopped, and CTs will stop respawning once the OMA reaches this level.
- Added: If the CT hits the OMA with an HE nade he will recieve another until he misses.
- Added Admin command sm_oma_who which will tell the admin who the one man army is supposed to be and how many kills this round he has.
- Added Admin command sm_rechecklvl which will recheck the levels and setting the appropriate levels for both teams.
- cleaned up the code a bit
1.4
- Removed Speed system
- Removed sm_rechecklvl (not needed as the speed system was thrown out)
- Fixed Health not regenerating sometimes for the one man army
- Fixed Money not disappearing so no one can buy.
- Fixed The plugin no longer requires the players to all rejoin the server or changing the map for the system to "kick in"
- Added Experience-based system for the CTs that has a maximum of 10 levels. a player recieves 5 skill points each time they level. Experience is gained from dodging bullets and damaging and/or killing the one man army
- Added RPG-like menu that uses the skill points gained from leveling to change a player's stats. Current available skills are: HP, AP, HE Grenade, Smoke Grenade, Health Regeneration, Armor Regeneration, and Super Stealth(Increased speed when cloaked).
- Changed Cloaking system is now not dependent on if you are moving. A CT can fully cloak when they are crouching or walking, if they run, jump or attack, they will de-cloak.
- Added the admin cmd sm_skillreset. Allows an admin to reset a player's skills and give him a full refund of skill points.
1.5
- Added OMA level 2 mode. Once a player has won a round, he will then be able to choose his next weapon from a list. The weapons are set up in a weapon tree. Lvl2 has 10 kills per weapon
- Added message for when a player has won that will alert players he has won the round
- Added the cvar sm_oma_debug. Enables debug messages that will print in every player's console. (If your server crashes, please include a copy of your console with this enabled)
- Added the cvar sm_oma_allowbots. Determines whether bots can become the oma army. (currently testing, requesting feedback)
- Changed the way the cloaking system detects a player's actions. Plugin now requires sourcemod 1.3
- Changed Skills no longer reset just every map change, they now reset each time a player has won a round.
- Fixed the grenade spam at spawn is now fixed.
- Fixed crash bug associated with the changing of weapons.
- Fixed bot crash bug.
- Fixed bug involving a typo with the beretta elites in an if statement condition, which would cause a constant give and take of the weapon.
1.51
- Added Countdown timer to display how long till you respawn
- Added Item clean up function to clean up dropped items
- Added game message that informs all players that one man army is on and how to cloak.
- Added translations file.
- Fixed OMA can no longer suicide and still be the OMA the next round.
- Fixed round no longer ends when OMA suicides.
- Fixed Skills and experience not completely resetting at the end of each round
- Fixed M249 not being given if OMA died on the last level when he became the OMA again
- Fixed Players not respawning if OMA died on the last level.
- Fixed Message was displaying that the OMA won the round when the round ended, even if he did not win.
- Fixed ragdoll remover sometimes not removing the bodies.
- Fixed Rounds ending because time ran out on objective maps
- Fixed Respawn timer now properly adds respawn time each time a player dies.
1.52
- Added Hacks extension
- Added cvar sm_oma_dmg. when enabled, a message will be displayed when the OMA dies stating who did the most damage and are now the new OMA.
- Changed Player can now carry as many grenades as indicated by their grenade level.
- Changed HE nade max level is now 5 and Smoke grenade max level is now 3
- Fixed Player can no longer see player names as OMA but can still temporarily see death messages.
- Fixed opening message still displayed even if OMA plugin was turned off.
- Fixed cvar sm_oma_allowbots now functions properly and does not stop in mid-function anymore.
- Added compatibility with both cvars sm_oma_allowbots and sm_oma_dmg
- Fixed respawn time not resetting when the round was over if an OMA won.
- Fixed a rare player disconnect crash.
- Updated translations file.
1.6
- Added buy menu
- Added experience system for the OMA
- Added skill: Steal Money
- Added skill: Find Money
- Added Items system
- Added Find items and cash functionality - touch a movable prop and it will tell you if you found something
- Added Goodiebox - when the OMA kills a CT there is a chance that a "goodie box" will drop and can give the OMA health, armor repair/boosts, etc.
- Added new item cvars for the buy menu, if any of these prices are set to -1 it will restrict the item.
- Added new cvar sm_oma_xpreq "1000" how much experience is required for the OMA to level up
- Added new cvar sm_oma_maxlvl "18" The level at which to give the OMA the final weapon to end the game
- Added new cvar sm_oma_teamplay "1" When enabled, the OMA can choose up to 4 teammates at level 2.
- Added buyzones are now removed at the start of every round
- Changed Money is now enabled
- Changed map now ends when the OMA wins.
- Changed After level 5, CTs lose experience when they die, but they can buy it back via the buy menu.
- Changed OMA mode 2 is now a loot item in the goodie box.
I will be adding a more complete changelog later, also, the translations are not completely done yet either, mostly english only for now.
Admin Commands:
sm_skillreset <#userid/name> Resets players skill set, so they can reassign their skills.
CVARS:
sm_onemanarmy_enable "1" Enable or disable this plugin
sm_oma_who Displays info about the one man army
sm_oma_debug "0" enables debug messages that are sent to the player's console
sm_oma_allowbots "1" Determines whether bots are allowed to be the OMA.
sm_oma_dmg "0" when enabled, the most damage done to the OMA determines the next oma on death.
sm_oma_kevlar "650" the cost of regular kevlar
sm_oma_kevlar_ct "100" the cost of kevlar for Counter-Terrorists
sm_oma_helmet "350" the cost of a helmet
sm_oma_hegrenade "400" the cost of an HE grenade
sm_oma_smokegrenade "300" the cost of a smoke grenade
sm_oma_nvgoggles "1250" the cost of night vision goggles
sm_oma_xpreq "1000" how much experience is required for the OMA to level up
sm_oma_maxlvl "18" The level at which to give the OMA the final weapon to end the game
sm_oma_teamplay "1" When enabled, the OMA can choose up to 4 teammates at level 2.
Chat Commands:
/buymenu - opens buy menu
/skillmenu - opens skill menu
/knifestats - opens menu that displays the stats for your knife
/armorstats - opens menu that displays the stats for your armor
buy - alternate chat command that opens the buy menu
Current Official Maps:
oma_zombie_attack_v4
oma_zombie_onslaught_beta5
oma_roomofconfusion_beta7b
oma_tower_of_resistance_v4
oma_undergroundcomplex_v1
oma_flatattack_beta2
Credits:
Predcrab - Speed code.
Greyscale - Grenade code.
Upcoming Features:
-Warmup round
-Add shop stock for grenades to reduce nade spam
-Overhaul of HE grenades and Smoke grenades skills
-Increase XP requirements from lvl 1-10 to lvl 1-20
-Change of when game ends: When CT reaches level 20 or when OMA reaches level 20 (weapons are independent of level)
Installation:
Extract onemanarmy.zip into the addons folder.
(if you downloaded the map pack)
extract
omamaps.zip to the cstrike/maps folder.