AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [unfinished] Tag Game snippet (I think...) (https://forums.alliedmods.net/showthread.php?t=211299)

Bacardi 03-20-2013 14:12

[unfinished] Tag Game snippet (I think...)
 
1 Attachment(s)
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).

Skippy 03-21-2013 01:40

Re: [unfinished] Tag Game snippet (I think...)
 
I might pick up on this if I get any free time to do it.

Mitchell 03-21-2013 13:04

Re: [unfinished] Tag Game snippet (I think...)
 
Quote:

Originally Posted by Skippy (Post 1916769)
I might pick up on this if I get any free time to do it.

I was thinking about the same thing.

Bacardi 03-21-2013 16:20

Re: [unfinished] Tag Game snippet (I think...)
 
update youtube videos in my first post, if want look how it works before testing.


All times are GMT -4. The time now is 18:32.

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