Raised This Month: $51 Target: $400
 12% 

Minority Report MOD v1.4 [19/08/2011]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
Korxu
Senior Member
Join Date: Sep 2010
Old 08-18-2011 , 07:59   Minority Report MOD v1.4 [19/08/2011]
Reply With Quote #1

Minority Report MOD v1.4 by Korxu

I CAN'T CONTINUE SUPPORTING THIS PLUGIN.

[INFORMATION]

Minority Report is a simple MOD for CS1.6 based in the film Minority Report (wikipedia). In the film, there are a group of "super-humans" called precogs. The precogs have the hability of predict when a crimen will ocurr and a group of polices work to avoid the crimen.

[GAMEPLAY]

Ported to AMXX is very similar to the film. Now, the terrorists are the criminals and the CTs are the police. Every round is choosen automatically (if there are almost one player in each team) a random member of each team, they are the leaders. For the team CT is the leader of the pre-crime unit, and for terrorist is the criminal detected by the precogs. When the round starts, all players will receive weapons, and the leader win a extra AWP. The objetive is kill the enemy leader before that they. If the leader of the team dies, there are two options. Or the enemy team receives more HP or all the team are killed.

To make it more fun, only the members of the same team can watch who is the leader of the team. You must go killing and if you have lucky, maybe kill the leader ;).

[CVARS AND CUSTOMIZATION]

ADMIN_HUD ADMIN_KICK
- Access to reload the config.
* You can use all ADMIN_* access.

ADMIN_CONFIG ADMIN_RCON
- Access to activate/deactivate the HUD when is blocked to the players.
* You can use all ADMIN_* access.

sz_ChatTag[] = "!g M.R.!y -"
- Tag of the colored messages.
* You can use !g for green color, !y for yellow (default cs1.6) or !t for team color.

sz_RandomFlags[] = "ace"
- Flags for get the random players.
* a = ALIVE PLAYERS, b = DEAD PLAYERS, c = SKIP BOTS, d = SKIP REAL PLAYERS, e = CHECK TEAM, f = CHECK PART OF NAME, g = IGNORE CASE SENSITIVITY.
** FOR PLAY WITH BOTS CHANGE "ace" FOR "ae".

mr_mod_enable 1
- 1 = Activate the MOD.
- 0 = Deactivate it.

mr_cfg_reload 0
- 1 = Reload config every round.
- 0 = Don't reload.

mr_play_bots 0
- 1 = Play with bots in the server.
- 0 = Only humans players.
** REMEMBER CHANGE sz_RandomFlags to "ae".

mr_hud_change 2
- 1 = Only admins can activate/deactivate the huds.
- 2 = All players can.
- 0 = Nobody.

mr_hud_reload 0.5
- Reload hud every 0.5 seconds.

mr_info_enable 1
- 1 = Show info message about the mod.
- 0 = Don't show.

mr_info_reload 300.0
- Show the info message, amount in seconds.

mr_weapons_ct 1
- 1 = Gives knife, usp, deagle, m4a1, famas, 1 HE, 1 SM, 1 FB and kevlar to the CTs.
- 0 = Gives only knife, glock, m4a1 and kevlar.

mr_weapons_t 1
- 1 = Gives knife, usp, deagle, ak47, galil, 1 HE, 1 SM, 1 FB and kevlar to the Ts.
- 0 = Gives only knife, elite, ak47 and kevlar.

mr_weapons_leader 1
- 1 = Gives AWP to the team leaders.
- 0 = Don't give.

mr_die_mode 1
- 1 = If the leader dies, the team is killed.
- 0 = When the leader dies, the enemy team win more HP.

mr_health_win 50
- Amount of HP given if mr_leader_died have the value 0.
* ĦUSE POSITIVE VALUES!. If the value is 0 or less than 0 it gives the default HP value, 50.

mr_win_messages 1
- 1 = Show custom win messages.
- 2 = Show the default win messages.
- 0 = Don't show nothing.

mr_block_buy 1
- 1 = Block buy zone.
- 0 = Don't block.

mr_gamename_enable 1
- 1 = Activate custom gamedesc.
- 0 = Use default cs1.6 gamedesc.

mr_gamename_desc "Minority report"
- The name to show in gamename if mr_gamename have the value 1.


*NOTE* Are this values are the default values.

[ADMIN COMMANDS]

mr_reload_config
- Reload the MOD configuration.
* REMEMBER, with mr_reload_config in 1, the configuration will be reloaded every round.

[USER COMMANDS]

say/say_team /hud
- Activate/deactivate HUD messages.

[INSTALLATION]

A very easy installation .

Download the .amxx file with "Get Plugin" (or the .sma with "Get Source", but if you download the .sma you need to compile it again) and put it in "cstrike/addons/amxmodx/plugins". Now, add "mr_mod_2.0.amxx" to "plugins.ini", located in "cstrike/addons/amxmodx/configs".

Put "mr_mod.cfg" in the amxx configs dir "cstrike/addons/amxmodx/configs", and change the map or restart your server.

[CREDITS]

Javivi - Help me with code optimization, block the buy zone and config reload idea (Thanks!)
Exolent - Fix my stock problem (Thanks!)

[CHANGELOG]
Code:
18/08/2011 (v1.0)          - Initial release!.
           (v1.1)          - Added gamedesc.
           (v1.2)          - Fix HP in die_mode.
           (v1.3)          - Re-writed all the code.
                           - Added config file.
           (v1.4)          - Fix bug when get a random players.
                           - Fix play with bots players.
                           - Added a cvar to play with bots.

[TO DO LIST]

If you have an idea and you want to share it publish it here! Thanks!
Code:
- Add posibility to change the gamename of the server. [DONE (18/08/2011)]

[HISTORY]
Code:
- v1.0 | 21 views.

- v1.1 | 4 views.

- v1.2 | 9 views.

- v1.3 | 6 views.

Last edited by Korxu; 11-07-2015 at 16:47.
Korxu is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-18-2011 , 08:05   Re: Minority Report v1.0 [18/08/2011]
Reply With Quote #2

*.amxx file removed.
__________________
xPaw is offline
Javivi
AlliedModders Donor
Join Date: Dec 2008
Old 08-18-2011 , 08:57   Re: Minority Report v1.0 [18/08/2011]
Reply With Quote #3

Nice job, Korxu.
__________________
Javivi is offline
Korxu
Senior Member
Join Date: Sep 2010
Old 08-18-2011 , 09:12   Re: Minority Report v1.0 [18/08/2011]
Reply With Quote #4

@xPaw Ok.

@Javivi thanks!

EDIT: Change wikipedia link to English version.
Korxu is offline
Stereo
Veteran Member
Join Date: Dec 2010
Old 08-18-2011 , 09:15   Re: Minority Report v1.0 [18/08/2011]
Reply With Quote #5

I'll try this, Good!
Stereo is offline
Se7ven
Senior Member
Join Date: Feb 2011
Location: Romania
Old 08-18-2011 , 09:24   Re: Minority Report v1.0 [18/08/2011]
Reply With Quote #6

Quote:
Originally Posted by Javivi View Post
Nice job, Korxu.
__________________
WwW.HighCS.Ro From Romania For You
Se7ven is offline
Send a message via AIM to Se7ven Send a message via Yahoo to Se7ven
Korxu
Senior Member
Join Date: Sep 2010
Old 08-18-2011 , 09:41   Re: Minority Report v1.0 [18/08/2011]
Reply With Quote #7

@Stereo & @Se7ven thanks! ;)

EDIT: Change post structure, and UPDATED to 1.1 (see changelog).

Last edited by Korxu; 08-18-2011 at 11:38. Reason: UPDATED 1.1
Korxu is offline
Korxu
Senior Member
Join Date: Sep 2010
Old 08-18-2011 , 13:15   Re: Minority Report v1.1 [18/08/2011]
Reply With Quote #8

LOL? More than 33.000 views, WTF?

And sorry for the double post.
Korxu is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-18-2011 , 14:21   Re: Minority Report v1.1 [18/08/2011]
Reply With Quote #9

Quote:
Originally Posted by Korxu View Post
* ĦUSE FLOAT VALUES!.

* ĦUSE FLOAT VALUES!.
They don't have to use float values.
get_pcvar_float() returns a float value regardless if it's an integer or float.

Quote:
Originally Posted by Korxu View Post
mr_team_hp 50
- Amount of HP given if mr_leader_died have the value 0.
* ĦUSE POSITIVE VALUES!.
Maybe you should limit that in your plugin to prevent errors.
An absolute value check or a default value if <= 0.

Quote:
Originally Posted by Korxu View Post
mr_gamename_sz "Minority report"
- The name to show in gamename if mr_gamename have the value 1.
* ĦUSE ONLY CHARACTERS!.
Any value for this cvar will work.
If I set mr_gamename_sz to 0, it will display "0" in the game name, because get_pcvar_string() returns the cvar value in a string format.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 08-18-2011 , 15:55   Re: Minority Report v1.1 [18/08/2011]
Reply With Quote #10

Sounds interesting, Nice
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
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 19:43.


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