Raised This Month: $ Target: $400
 0% 

[unfinished] Tag Game snippet (I think...)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-20-2013 , 14:12   [unfinished] Tag Game snippet (I think...)
Reply With Quote #1

Rant:
What to write... bad english ?
I try to code plugin, what remind kids game called TAG, but tired continue this and all those testing.

Feel free to use


For Cs:s, maybe HL2:dm & TF2


What I have done
- TAG game system/modes
1 = Regular - Only one player can be IT, trying to catch another player to change roles.

2 = Freeze - Only one player can be IT, freeze other players and unfrozen players can try rescue frozen players.


3 = Team - One player start as IT, infecting other players to became IT also.

- Some wierd random player pick system... happen on event round_start
- Player IT will render as color green with little transparent
- Frozen player will be as color red with little transparent awhile, finally turn to blue, with little transparent
- Simple PrintToServer & PrintToChatAll announces
- // comments in source file, you maybe not understand them ever!
- Player own two kind timers, to delay touch-rate and momentarily immunity againts tag and/or rescue.
Delays are "hardcoded" in TagGame*Rules.sp files.

What I have not done
- commands and cvars
- scoring system
- not check when player die or disconnect
- etc. etc.


What else
- If you want test,
change mode manually from plugin source code and compile/reload plugin from server and use server command
mp_restartgame 1
Of course need at least 2 players/bots or more

- I have separate code in few files, to understand it easier (or least I tried)
  • TagGameTest.sp
    • TagGamePickPlayer.sp
    • TagGameProcess.sp
      • TagGameRegularRules.sp
      • TagGameFreezeRules.sp
      • TagGameTeamRules.sp


This require SDKHooks extension, to recognize players touch and damage by melee weapon (I hope so).
Attached Files
File Type: zip TagGameSnippet.zip (14.4 KB, 82 views)

Last edited by Bacardi; 03-21-2013 at 16:12.
Bacardi is offline
 



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 18:32.


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