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

CS Hide & Seek (Not Final, version 1.9)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Emp` (115)
AlMod
Member
Join Date: Nov 2006
Old 01-03-2008 , 01:53   CS Hide & Seek (Not Final, version 1.9)
Reply With Quote #1

Counter-Strike Hide & Seek, v.1.9

Descr:
This plugin changes gameplay of CS to fun H&S game.

Main Info (Gameplay):
All the players get to the CT's, team targets removed (due to not-ending round). One of CT's at 1st round begin as Main VADA. He has vip skin and can't move within [amx_seektime]. Target of VADA is to damage other CT's -> then they'll become VADA too. Game ends when the last non-VADA player becomes VADA or some non-VADA players are not catched. On next round Last catched player becomes Main Vada

Misc Info:
Non-VADA players have lower gravity but VADA's speed is a little more than non-VADA's. Players can buy weapons with frags. For catching player vada get's 1 frag, non-VADA gets frags in dependence of time they catched (Example: 1st catched get 1 frag, 2nd - 2 frags, etc.). Radar is offline. VADAs in scoreboard marked as 'DEAD'

CVars:
  • amx_h&s (default: 1) - Mod cvar
  • amx_seektime (default: 30.0) - Time Main VADA staying at the begin of the round
  • amx_nonvada_gravity (default: 0.4) - non-VADA's gravity.
  • amx_vada_speed 270.0 - VADA's Speed.
  • amx_buymenu 1 - Allow/Disallow buy menu
  • amx_hide 1 - Allow/Disallow hide
  • amx_hide_timer 20 - How long player is hidden
  • amx_hide_reload 40 - Reloading of hide feature


    Client chat commands:
  • /vada - show who is main vada
  • /buy - buy weapons for frags
  • /helpon - show full VADA list
  • /helpoff - hide full VADA list
  • /ammo - get some ammo for weapons
  • /hide - Player becomes 95% invisible for 20 seconds (reload - 40 seconds)
  • /iamspec - move to spectators
  • /iamct - get away from spectators
  • /help - look for in-game help
Changelog:
1.9A - Added new cvars, fixed some code, added function for refreshing settings
1.9 - Tactical Shield added (buy menu)
--- Lost in time ---
1.0 - Main idea of plugin.

To DO list:
Add some cvars, optimize code

Other Info:
Special for this mod i make only 1 map (can download it if you'll need it)

P.S. This mod is getting my server full very fast
Attached Files
File Type: sma Get Plugin or Get Source (h&s.sma - 5412 views - 26.8 KB)

Last edited by AlMod; 01-04-2008 at 02:46.
AlMod is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 01-03-2008 , 02:28   Re: CS Hide & Seek (Not Final, version 1.9)
Reply With Quote #2

Interesting.

Pcvars are a must. Search on how to use them.

You should not change clients' settings ( client_cmd(id,"^"hideradar^"") ). Look into how CSDM scrambles radars when FFA is on.

Code:
	new ent = find_ent_by_class(0,"info_player_deathmatch")
	new temp
	while (ent)
	{
		temp = find_ent_by_class(ent,"info_player_deathmatch")
		entity_set_string(ent,EV_SZ_classname,"info_player_start")
		ent = temp
	}
->
Code:
	new ent
	while( (ent=find_ent_by_class(ent,"info_player_deathmatch")) )
		entity_set_string(ent,EV_SZ_classname,"info_player_start")
There are some grammatically incorrect sentences. ( You is already is spectator -> You are already spectator )

Don't create variables within for/while loops.
Code:
	new players[32],num
	get_players(players,num,"a","ct")
	for (new i=0; i<num; i++)
	{
		new id=players[i]
->
Code:
	new players[32],num, id
	get_players(players,num,"a","ct")
	for (new i=0; i<num; i++)
	{
		id=players[i]
Should have a cvar for VADA speed.

FYI: There isn't a "normal" speed, each gun has its own speed. http://forums.alliedmods.net/showthr...210#post308210

Should have a cvar for buying guns.

Should have a cvar for buying invisibility.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
AlMod
Member
Join Date: Nov 2006
Old 01-03-2008 , 13:09   Re: CS Hide & Seek (Not Final, version 1.9)
Reply With Quote #3

Quote:
Originally Posted by Emp`
Pcvars are a must. Search on how to use them.
I know how to use it, just not fix it yet

Quote:
Originally Posted by Emp`
You should not change clients' settings ( client_cmd(id,"^"hideradar^"") ). Look into how CSDM scrambles radars when FFA is on.
I using the HideWeapon msg, look for
Code:
public set_hide_weapon(byte)
{
 message_begin(MSG_ALL,gmsgHideWeapon,{0,0,0},0)
 write_byte(byte)
 message_end()
}
Just not remove it yet (again)

Quote:
Originally Posted by Emp`
Code:
    new ent = find_ent_by_class(0,"info_player_deathmatch")
    new temp
    while (ent)
    {
        temp = find_ent_by_class(ent,"info_player_deathmatch")
        entity_set_string(ent,EV_SZ_classname,"info_player_start")
        ent = temp
    }
->
Code:
    new ent
    while( (ent=find_ent_by_class(ent,"info_player_deathmatch")) )
        entity_set_string(ent,EV_SZ_classname,"info_player_start")
There are some grammatically incorrect sentences. ( You is already is spectator -> You are already spectator )
Got it.

Quote:
Originally Posted by Emp`
Don't create variables within for/while loops.
Code:
    new players[32],num
    get_players(players,num,"a","ct")
    for (new i=0; i<num; i++)
    {
        new id=players[i]
->
Code:
    new players[32],num, id
    get_players(players,num,"a","ct")
    for (new i=0; i<num; i++)
    {
        id=players[i]
Should have a cvar for VADA speed.
Ok

Quote:
Originally Posted by Emp`
FYI: There isn't a "normal" speed, each gun has its own speed. http://forums.alliedmods.net/showthr...210#post308210
I looking for weapon speeds (I think you wan't that i need to make array of speeds for each weapon, right?)

Quote:
Originally Posted by Emp`
Should have a cvar for buying guns.

Should have a cvar for buying invisibility.
Ok tnx
AlMod is offline
Jon
Veteran Member
Join Date: Dec 2007
Old 01-03-2008 , 14:34   Re: CS Hide & Seek (Not Final, version 1.9)
Reply With Quote #4

Sounds like something similar to zombie infection mod. Interesting.
Jon is offline
AlMod
Member
Join Date: Nov 2006
Old 01-04-2008 , 02:46   Re: CS Hide & Seek (Not Final, version 1.9)
Reply With Quote #5

Updated to 1.9A
AlMod is offline
noggin66
Junior Member
Join Date: Jun 2006
Old 01-04-2008 , 19:29   Re: CS Hide & Seek (Not Final, version 1.9)
Reply With Quote #6

How about a second type of Hide n Seek,
Like the old plugin where the CT team were seekers
and the T's were The ones hiding,
the teams would switch ever 2 rounds, or when the seeking team wins, which ever came first.

it could have a separate cvar setting, amx_h&s 2 instead of one (1)
noggin66 is offline
AlMod
Member
Join Date: Nov 2006
Old 01-05-2008 , 02:20   Re: CS Hide & Seek (Not Final, version 1.9)
Reply With Quote #7

I don't want to copy other plugins or ideas, and it is difficult to rebuild my code
AlMod is offline
P4rD0nM3
Veteran Member
Join Date: Feb 2006
Old 01-05-2008 , 16:12   Re: CS Hide & Seek (Not Final, version 1.9)
Reply With Quote #8

Is this the plug-in that I've played in a server in France? OT...T_T.
P4rD0nM3 is offline
lolhax44
BANNED
Join Date: Jan 2008
Old 01-05-2008 , 16:45   Re: CS Hide & Seek (Not Final, version 1.9)
Reply With Quote #9

You Should use enernity_remove("radar")
And remove the radar permently From spawning the next spawn or round
Ectra ectra
lolhax44 is offline
fxfighter
Veteran Member
Join Date: Feb 2007
Location: Trollhättan
Old 01-05-2008 , 17:19   Re: CS Hide & Seek (Not Final, version 1.9)
Reply With Quote #10

To block all dots showing up one the radar is quite easly dont know if you want it or whatever just posting .
Code:
public plugin_init() 
{
register_message(get_user_msgid("Radar"), "radar_block")
}
public radar_block() 
{
return PLUGIN_HANDLED
}
fxfighter is offline
Send a message via MSN to fxfighter
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 12:35.


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