AlliedModders

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

InstantDeath 10-25-2008 23:05

Domination Deathmatch
 
24 Attachment(s)
http://www.dominationdeathmatch.com/...t/domdmbig.png
Domination Deathmatch
a new type of team deathmatch that is dependent on money. By default, everyone has 5 lives, and starts off with $800 normally. Players buy weapons that they want but depending on what weapon they use will determine how much money they get for the kill. Players also receive special awards based on how they kill the enemy and how many times they kill that enemy. There are also many possible customizations available for server admins.

Plugin website: www.dominationdeathmatch.com

Domination Deathmatch
Current Features:
  • Limited player respawning (lives system)
  • Increased cash rewards for killing someone with a specific weapon
  • Domination reward - when a player has killed a specific person without being killed by that person so many times in a row, they steal $1000 from victim (or all the money they have if they have less than $1,000) and are awarded $500 each bonus kill.
  • Advanced spawn protection - a L4D like spawning system, player is invisible and invincible until they press fire and will then receive their weapons
  • buy lives menu
  • built in automatic ATM/bank system
  • Extra lives rewards
  • buy health menu/automatic health system
  • Headshot streaks award lives. Default is 4 headshots in a row.
  • corpse cleanup
  • custom buy menu with rebuy
  • custom weapon pricing for custom buy menu
  • build in weapon restrictions
  • Credits System
  • Cash For Dead System - When players run out of lives and don't have enough money to buy another life, they are put in the Cash For Dead system. Whenever a teammate kills an enemy, they receive a fourth of the reward from their team's ATM account.(not the enemy's)

The amount of money received based on the gun used:
ak47 = 500
aug = 500
awp = 420
deagle = 1080
elite = 1160
famas = 500
fiveseven = 1250
flashbang = 1400
g3sg1 = 410
galil = 590
glock = 1160
hegrenade = 1560
knife = 2200
m249 = 380
m3 = 690
m4a1 = 500
mac10 = 1150
mp5navy = 880
p228 = 1350
p90 = 710
scout = 650
sg550 = 510
sg552 = 600
smokegrenade_projectile = 1400
tmp = 850
ump45 = 780
usp = 1260
xm1014 = 690

default item cost:
ak47_cost = 2500
aug_cost = 3500
awp_cost = 4750
deagle_cost = 650
elite_cost = 800
famas_cost = 2250
fiveseven_cost = 750
flashbang_cost = 200
g3sg1_cost = 5000
galil_cost = 2000
glock_cost = 400
hegrenade_cost = 300
m249_cost = 5750
m3_cost = 1700
m4a1_cost = 3100
mac10_cost = 1400
mp5navy_cost = 1500
p228_cost = 600
p90_cost = 2350
scout_cost = 2750
sg550_cost = 4200
sg552_cost = 3500
smokegrenade_cost = 300
tmp_cost = 1250
ump45_cost = 1700
usp_cost = 500
xm1014_cost = 3000
kevlar = 650
kevlarhelmet = 1000
helmet_cost = 300
defusekit = 200
nvgoggles = 1250


CVARS:

sm_dominationdm_enable "1" Enable or disable this plugin
dm_respawn_count "5" Number of times a player may respawn
dm_respawn_count "10" Number of times a player may respawn
dm_respawn_time "5.0" Delay in seconds before the player may respawn

dm_headshotbonus "250" The ammount of cash that is awarded for a headshot kill
dm_extralifecost "2000" How much Extra lives cost.
dm_dominationreq "3" How many kills in a row it takes to have dominated a person
dm_dominationcash "1000" How much cash is stolen by the attacker when they dominate a person
dm_dominationcash_bonus "500" How much cash is awarded to the attacker when they continue to dominate a person
dm_maxwithdrawal "800" The maximum amount of money allowed to be withdrawed from team account at a time.
dm_headshotreq "4" How many headshot kills in a row before lives are rewarded.
dm_weapondom_req "10" How many kills in a row with the same weapon is required for a weapon domination
dm_weapondom_cash "10000" How much cash is stolen from enemy team on a weapon domination
dm_customspawn "1" Whether custom spawning is on or not



mp_buytime 300 this is now set by the plugin, so that buy time never ends.

Admin Cmds:

sm_dmweapon <weaponname> <cash> Set the amount of cash awarded for a specific weapon
sm_addspawn <ct/t> adds a custom spawn to the spawnlist. for right now, it always starts at spawnpoint 1, so if you were to add some later, you will have to manually correct the file.
sm_itemcost <item> <cost> allows an admin with ban privilages to change the pricing of weapons or items in the custom buy menu.
sm_backpack <userid> allows an admin to view whats inside a player's backpack currently. (this is technically useful for me only, but i left it in)


Console Commands:
buy_menu - opens custom buy menu
dm_rebuy - rebuys last bought weapons
dm_swap_primary - Places primary weapon in backpack or swaps primary weapons.
dm_automenu <on/off> allows the client to turn auto-menu off or on by console command

Changelog:
Code:

1.23
      Initial Release
1.24
      - Fixed lives system not resetting for all players.
1.25
      - Fixed Spawn protection system not functioning properly
1.3
  -Added the Domination Reward
  -Upgraded spawn protection system
  -fixed cash rewards from kills sometimes not giving the right amount
-added !buylife chat command to re-enable the buy life menu
  -Added Translations file (the file is ready to be translated)
-added new and revised Cvars
  -Fixed miscellaneous bugs.
1.4
-defusing/detonating the bomb will now result in the winning team receiving an extra life the next round.
-ATM accounts for every player, including each team.
-Instead of a player's wallet resetting to $800 when it goes below that amount, the player withdraws the needed amount to equal $800 from their team's ATM account.
-Added new domination reward, Multiple dominations - The player steals the number of dominations times 1000 from the enemy ATM account. (ex. player steals $2000 for 2 domination streaks.)
-Bankrupting the enemy team's ATM account will result in the person that caused it to receive an extra life.
-Reduced chat spam, some notices now appear in panels and hint text boxes.
1.41
-Added buy health menu
-added automated health option
-added !buyhealth chat command
-ATM deposit and withdrawal messages now appear in the client's console instead of chat.
-Translations file updated
1.44
-Changed: the info panel now appears when you die or gain a life.
-Changed and Moved: Removed the chat commands, !atm and !teamatm, now are listed in the !info panel.
-Improved the Automatic health system so that it does not deduct more money that the player has.
-corpses now are removed right after player death to reduce load on the server.
-Added headshot streaks, now when a player gets 4 or more headshots in a row (until player dies) he receives a life each increase.
-Fixed the auto spawn on join sometimes not spawning a player after joining the game
-Changed: Instead of withdrawing the needed amount from the team's account to reset player's wallet to 800, if player's wallet gets below $800, it will always withdraw $800 from team's account.
-Added cvar dm_maxwithdrawal, allows server owner to set how much a player recieves when his wallet goes below $800.
-Added cvar dm_headshotreq, sets the number of headshots in a row required before awarding lives.
-Changed: When team bankrupts another team, the entire team now gets a life.
-Updated Translations file with new phrases for above updates.
1.5
-Added Weapon Domination reward, player steals $10,000 from enemy ATM account for 10 kills in a row with that specific weapon
-Custom Buy menu : now you can buy any weapon, anywhere!
removed !buyhealth cmd and is now integrated into buy menu.
-Added 'buy' chat command and buy_menu console command to open custom buy menu
-Buy menu now appears on spawn with the option to disable on spawn
-Buy health menu now has the option to hide the menu on kills
-Fixed Automated health system from charging a player needlessly when he has full health
-Added a 'waiting list' feature that gives players that are dead, with no lives and not enough money, enough money to buy another life to withdraw 1/4th from their team's ATM account of the amount a teammate receives when he kills an enemy. It will force a player to buy a life when he gets the cost of a life + 800.
-Updated translations file for above updates.
1.51
-fixed server crash issue with menus.
-fixed not being able to buy the awp sometimes.
1.57
-Fixed: Join/leave crash: server would sometimes crash when a player joined or left the server
-Added Custom spawning for maps: cs_assault, de_dust, de_dust2, & de_aztec
-buy menus are now more uniform(some sections of the buy menu were panels, each buy menu's exit button is now always 0)
-fixed: Equipment buy menu for CTs was giving the wrong item for the item selected
-added admin cmd: sm_addspawn, adds a custom spawn for the selected map
-Added: ATM account now also updates when player buys something with the custom buy menu
1.6
-Added rebuy option
-fixed the Cash For Dead system not respawning players after charging for a life
-Added: a message for how to reopen the buy menu now appears when the buy menu is closed by the user or the menu times out
-fixed Weapon specific kill counter not resetting when a player used a different weapon but has not died
-fixed variable initializations on map changes.
1.65
-Revamped Weapon Domination reward, players now receive (# of times dominating) * (weapon reward). this occurs at the interval of 5 (5, 10, 15, 20, etc..)
-Added Team Domination Mode : Instead of receiving the weapon reward, The dominating team's attacker receives the same amount for the kill, but it is taken from the player's ATM account or the enemy team's ATM account if the victim does not have enough money in his ATM account.
-added the sm_dominationdm_enable cvar, allows the owner to disable the plugin without having to unload the plugin
-Updated the translations file for the above changes
1.7
Rebuy is now automated (the manual option is still there)
Added console command dm_rebuy . allows user to rebuy weapons without having to use the buy menu.
Improved spawn protection: temporarily removes your currently equipped weapons while you are being protected, then gives you your weapons back. You can still buy while you are being protected, but you wont receive them till protection is removed from you. (because your weapons are gone you are now completely invisible)
Changed: Team Domination Mode is now dependent on the amount of players on the team when there are more than 6 people on a team.
Fixed domination deathmatch messages still being displayed even though the plugin was disabled.
Fixed: respawn bug: player was sometimes respawned twice at the same time (usually when the round ended)
Updated Translations file.
1.71
Fixed: buylife menu would always appear on death if you were the only person on your team
Fixed: weapon Famas was missing from the buy menu
1.75
Added: Players can now carry two primary weapons(not at the same time), via the backpack.
Revamped auto menu settings, auto menu is now on by default
Added Credits system, allows user to buy weapons and equipment with credits(when they do not have enough money). Credits are awarded when the player ends a domination streak on himself.
Fixed: cash for dead system messages were being sent to the wrong person
Added: "You do not have enough money" message appears when a player tries to buy a weapon when he does not have enough money.
Updated Translations file for above changes/additions.
1.76
Fixed: Respawn bug when a player fell to his death
Fixed: Credits not resetting on map change
1.8Fixed: Bug where player could not switch weapons when using the backpack
Fixed: Bug when player put one weapon in the backpack, pulled it out and could no longer use the backpack for that round.
Changed: Default life setting is now set to 10
Changed: Default extra life cost is now $2000 instead of $1000
Changed: The option for No on the Buy life menu now explains you will be put into the Cash for Dead system.
Added: new option for the buy life menu, buy 5 lives for $1000, but you have to switch teams.
Added: 3 new Team Domination modes: 2 times normal damage, Player Steal, and Health Regeneration
Added: simple team balancer code to fix the game back when a team wins by stealing the other team's players
Updated Translations File
2.0
Fixed: order of operations error in Team Domination mode: 2x damage, was giving players health instead of increasing damage.
Fixed: Players can no longer pick up weapons and use them while being protected.
Changed: Spawn Protection now is now unlimited until a player presses "fire". There is now a constant message at the bottom telling the player to "Press fire to spawn". Players can buy weapons and items while being protected and will recieve them when they press fire. A player will not be allowed to spawn if he is too close to an enemy player.
Changed: Updated translations file.
Added: Admins can now change weapon prices for the custom buy menu by using the new admin command, dm_item_cost.
Added: new client command dm_automenu
removed: cvar dm_spawnprotect_time.



2.1

  • Fixed: equipment menu not charging credits when it was supposed to.
  • Fixed: rebuy charging money when it was supposed to be charging credits.
  • Fixed: player can no longer rebuy a weapon if he already had it pre-spawn.
  • Fixed: Player can no longer rebuy a weapon if he has it currently equipped.
  • Fixed: Logic error in the backpack feature
  • Fixed: Logic error in buy life menu: was pointing to the wrong value for buy 5 lives + teamswap choice.
  • Fixed: "ghosts" can no longer block living players.
  • Fixed: sm_itemcost no longer allows values below -1 to be set as a weapon price.
  • Changed: the required distance to spawn now adjusts to how many players are currently in the server.
  • Changed: protected players will now ignore weapons on the ground instead of picking them up and force-dropping them.
  • Changed: cleaned code up a little
  • Added: This plugin now requires the Hacks extension.
  • Added: Setting a weapon price to -1 will prevent the player from buying or picking up said weapon.
  • Updated Translations file

Credits:
The SourceMod team
Pred - coding for part of spawn protection.
Bl4nk - help with getting primary and secondary ammo
everyone that helped me in the IRC channel.
everyone whose plugins I reviewed to learn SourcePawn.

Upcoming Features:

- none, suggest one!

Available Chat commands:
Code:

!buylife  - buy life menu
!info - displays number of lives and domination streaks
help - lists some helpful info in chat
!spawn - deducts one life and respawns the player
buy - opens custom buy menu



Requires:
Hacks extension


Installation:
  • Copy dominationdm.smx file to addons/sourcemod/plugins folder
  • Copy dominationdm.phrases.txt to addons/sourcemod/translations folder
  • Copy spawnlist.cfg to addons/sourcemod/configs folder
http://img.photobucket.com/albums/v1...eath/menus.jpg
I'm currently running a server with this plugin on it. come check it out:

SAMURAI16 10-26-2008 13:14

Re: Domination Deathmatch
 
for (new i = 1; i < maxclients; i++)
I don't know why are you not loop trough all players

InstantDeath 10-26-2008 13:15

Re: Domination Deathmatch
 
what line are you referring to?

SAMURAI16 10-26-2008 13:32

Re: Domination Deathmatch
 
both mapstart and round_freeze_end event

InstantDeath 10-26-2008 13:37

Re: Domination Deathmatch
 
So you're saying that for loop doesn't loop through all the players? do i need to change the < to a <= ?

SAMURAI16 10-26-2008 13:40

Re: Domination Deathmatch
 
yes

InstantDeath 10-27-2008 22:27

Re: Domination Deathmatch
 
Thanks, its fixed now.


I would love to hear some comments or suggestions about this plugin.
I also hope some of you have gotten the chance to check it out in action on my server :mrgreen:

http://module.game-monitor.com/74.52...strike2-02.png

InstantDeath 10-31-2008 18:40

Re: Domination Deathmatch
 
I just updated the plugin, comments or suggestions are welcome.

This version's changes/additions:

1.3
  • Added the Domination Reward
  • Upgraded spawn protection system
  • fixed cash rewards from kills sometimes not giving the right amount
  • added !buylife chat command to re-enable the buy life menu
  • Added Translations file (the file is ready to be translated)
  • added new and revised Cvars
  • Fixed miscellaneous bugs.

InstantDeath 11-08-2008 23:27

Re: Domination Deathmatch
 
I've finally fixed the issues I was having while trying to implement the new features.

I've also added a few new chat commands which i will find and make a list, later.

For now, here's the changelog:

1.4
  • defusing/detonating the bomb will now result in the winning team receiving an extra life the next round.
  • ATM accounts for every player, including each team.
  • Instead of a player's wallet resetting to $800 when it goes below that amount, the player withdraws the needed amount to equal $800 from their team's ATM account.
  • Added new domination reward, Multiple dominations - The player steals the number of dominations times 1000 from the enemy ATM account. (ex. player steals $2000 for 2 domination streaks.)
  • Bankrupting the enemy team's ATM account will result in the person that caused it to receive an extra life.
  • Reduced chat spam, some notices now appear in panels and hint text boxes.

halmin 11-09-2008 08:02

Re: Domination Deathmatch
 
can't DownLoad :(


All times are GMT -4. The time now is 13:31.

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