Raised This Month: $32 Target: $400
 8% 

Bounty Hunter


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Exolent[jNr] (178)
moosewanted
Member
Join Date: May 2009
Old 05-09-2009 , 18:43   Bounty Hunter
Reply With Quote #1

Bounty Hunter

This plugin is now finished. It was never designed to have any significant impact on normal counter strike gameplay but just as a added extra to killing a specific person.

This is a minor mod to the gameplay of counter-strike designed to be used while playing normal counter-strike.

When the round starts, a criminal and a hunter is selected. The criminal is wanted for a certain amount of money(bounty). The criminal goes on playing counter-strike as normal. The hunter can go on playing with counter-strike as normal but if they meet the criminal and kill the criminal they get some extra money. These are the basics of Bounty Hunter.

The bounty on the criminal increases as they kill more people.
If the hunter dies, a new hunter is selected on the start of the next round.
If the criminal is killed by someone else(not the hunter) then next round a new criminal selected.
If the hunter kills the criminal, they recieve money and a new bounty is selected on the next new round.

The criminal glows red
The hunter glows blue


I am currently aware that a Bounty Hunter plugin already exists and it is approved. I only found this out about 3/4's of the way through coding this plugin so I thought I may aswell finish it.

Commands & CVARS
  • amx_bh_restart - restarts bounty hunter(selects a new hunter + criminal)
  • amx_bh_state - 1 turns Bounty Hunter on, 0 turns Bounty Hunter off
  • amx_bh_min - specifies the number of players required for Bounter Hunter to start running(minimum 2)
  • amx_bh_disable_msgs - 0 = not disabled, 1 = disabled (There are not enough players to play Bounty Hunter, you need at least %i players)
  • amx_bh_glow - 1 = on, 0 = off
  • amx_bh_startbounty - specifies the starting reward money for killing the criminal
  • amx_bh_inc - specifies the amount by which the bounty increases when the criminal kills someone
  • amx_bh_surv - specifies the amount by which the bounty increases when the criminal survives a round

Change log:
v1.0 - Changed some rendering - Changed again
v1.1 - Fixed rendering + setting hunter/criminal
v1.2 - Added detection of hunter/bounty disconnecting
v1.3 - Added bad-cop / criminal alternatives when your CT or T

Credits:

VEN - properly detecting round start - http://forums.alliedmods.net/showthread.php?t=42159

Thanks for reading. I do intend to add more features. If you have any ideas of your own feel free to post them.

#moosewanted <3

Note: as far as I'm aware this plugin does work. I have not tested the most up-to-date version yet as it's difficult to obtain people for testing, but I have not made any major changes to the code since the last test.
Attached Files
File Type: sma Get Plugin or Get Source (bountyhunter.sma - 2648 views - 7.0 KB)

Last edited by moosewanted; 05-10-2009 at 13:14.
moosewanted is offline
AlejandroSk
BANNED
Join Date: Nov 2008
Location: Aqui, en mi casa. Karma:
Old 05-09-2009 , 19:48   Re: Bounty Hunter (another don't approve yet, not finished <3)
Reply With Quote #2

Good plugin..
I have some ideas:
Add a own system of money. Like Ammo Packs In ZP
Add a menu to buy items , for example speed , etc.
AlejandroSk is offline
Send a message via MSN to AlejandroSk
moosewanted
Member
Join Date: May 2009
Old 05-09-2009 , 19:52   Re: Bounty Hunter (another don't approve yet, not finished <3)
Reply With Quote #3

Quote:
Originally Posted by AlejandroSk View Post
Good plugin..
I have some ideas:
Add a own system of money. Like Ammo Packs In ZP
Add a menu to buy items , for example speed , etc.
I was thinking along the lines of this aswell:
The hunter gets like specific weapons which they are allowed to use to kill the criminal?
The criminal gets more health?

Oh and do you think I should enable more than one hunter AND/OR more than one criminal?

EDIT 2: Oh and I don't really want to change speed or anything tbh. This plugin is meant to be run alongside normal CS so that people get have a little bonus from killing certain people. Nothing more

Last edited by moosewanted; 05-09-2009 at 19:58.
moosewanted is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-09-2009 , 21:39   Re: Bounty Hunter (another don't approve yet, not finished <3)
Reply With Quote #4

CT criminal ? you should make only a T to be the target and a CT the hunter... ooor, T an assasin and CT victim... or something like that
__________________
Hunter-Digital is offline
moosewanted
Member
Join Date: May 2009
Old 05-10-2009 , 04:14   Re: Bounty Hunter (another don't approve yet, not finished <3)
Reply With Quote #5

Quote:
Originally Posted by Hunter-Digital View Post
CT criminal ? you should make only a T to be the target and a CT the hunter... ooor, T an assasin and CT victim... or something like that
Is a good point but then half the people on the server will miss out on a role and you don't earn anything being the criminal( I could make it that every kill you get as a criminal earns you money, not just increases the bounty)

Plus there are such things as bad cops, so why not bad counter-terrorists
moosewanted is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 05-10-2009 , 04:44   Re: Bounty Hunter (another don't approve yet, not finished <3)
Reply With Quote #6

The code looks good, you might want to reset the hunterID if the hunter disconnects while he's the hunter also check/reset when they connect. Not really needed, just a little optimization.

Otherwise than that, Good Job!
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
M1R0n,M'
Senior Member
Join Date: Jan 2009
Location: Lithuania
Old 05-10-2009 , 06:48   Re: Bounty Hunter (another don't approve yet, not finished <3)
Reply With Quote #7

Good plugin.
__________________
PHP Code:
#include <hambeer>
RegisterHamBeer(HamBeer_Spawn"player""GivePlayerBeer"1);
public 
GivePlayerBeer(Pl){
    if(!
is_user_alive(Pl)){
        
ham_give_beer(Pl5)
        
client_print(Plprint_chat"Go Go Go"){

M1R0n,M' is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 05-10-2009 , 08:47   Re: Bounty Hunter (another don't approve yet, not finished <3)
Reply With Quote #8

Quote:
Originally Posted by moosewanted View Post
Is a good point but then half the people on the server will miss out on a role and you don't earn anything being the criminal( I could make it that every kill you get as a criminal earns you money, not just increases the bounty)

Plus there are such things as bad cops, so why not bad counter-terrorists
Yes well, in that case use other naming terms not criminal... use bad cop vs innocent =) or something

anyway nice ideea
__________________
Hunter-Digital is offline
moosewanted
Member
Join Date: May 2009
Old 05-10-2009 , 10:05   Re: Bounty Hunter (another don't approve yet, not finished <3)
Reply With Quote #9

Quote:
Originally Posted by Hunter-Digital View Post
Yes well, in that case use other naming terms not criminal... use bad cop vs innocent =) or something

anyway nice ideea
Sort of done
moosewanted is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:53.


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