Forlix.org

2010/07/30 - 20:03
38.107.191.88 - 1989v
 
Last modified 2010/07/13
 

Forlix SoScore (2009/03)

This addon for SourceMod on a CS:S server provides enhanced scorekeeping and goal announcements on soccer maps such as ka_soccer_2006. When a goal is shot the shooters name is displayed in a center-message (replacing the boring "Terrorists win!"-message), and the passers name is also displayed in a chat message. Both get score points - the shooter gets +1 in the "Score"-column, the passer gets +1 in the "Deaths"-column of the CS:S built-in scoreboard. This allows easy tracking and everyone can check in a glimpse who has shot how many goals. The plugin includes smart automatic respawning and multilanguage support.
SoScore goal announcement messages
SoScore goal announcement messages

Detailed features:

  • Players get score points for shooting goals and making goal assists
  • Scores are displayed on the CS:S built-in scoreboard
  • Players have godmode enabled on them and cannot get hurt by the ball
  • Deaths, kills or suicides wont affect the scores, should they occur at all
  • Goal shooters and passers are logged to the server log if desired
  • Supports mp_restartgame (will reset the scores accordingly)
  • Can be configured for use with almost any soccer map out there, all that is required is adding an entry for the new map in the config file - Instructions for this can be found in the .cfg itself
  • Ten common soccer maps are already preconfigured
  • If a map is not listed there, the plugin will unload when that map loads, avoiding unnecessary server load, for example when your server also offers non-soccer maps
  • The plugin can ban a player automatically for shooting a predefined number of own goals
  • Typing "!soscore" in chat displays a short "Howto" on the interpretation of the scoreboard
  • Almost all public messages are translated to the clients language thanks to multilanguage support, English and German phrase-files are already included
  • Hot-reload feature - plugin can be reloaded between round-start and round-end (but not after round-end!) without interrupting the game or loosing the scores
  • If forlix_floodcheck is running on the server, this plugin will ignore the !soscore command while the player is flooding
  • Forwards are provided for third-party extensions, possible use for example could be a ranking system based on goals and passes, etc.

Changes in v1.2: (2009/04)

  • Respawn function allows people to join and start playing without any delay
  • AFK to Spectator function prevents AFK players from blocking the game
  • Plugin announcements can now be restricted from once per round start to once per connect

Changes in v1.28: (2009/05)

  • Added ConVar to control godmode and health points
  • Improved AFK detection
  • Fixed bug when being used in conjunction with floodcheck

Changes in v1.3: (2009/06)

  • Added ConVar for limiting the number of players on each team
  • Reformatted goal-score message (now on two lines)

Changes in v1.4: (2009/07)

  • Completely redesigned, solid respawning system with smart delays
  • Multilanguage support added, allowing for customization and translation of most phrases
  • Infopanel command now using SourceMods native chat-trigger system
  • Improved teamlimiting feature, team-full messages now in clients language
  • AFK to Spectator function has been outsourced to forlix_afktospec
  • Four new soccer maps added to the config file

Changes in v1.44: (2009/08)

  • Fixed some issues with the respawn system
  • Now supports auto-assign team selection (by player count, team-scores, or random)
  • Bots are now (re)spawned correctly
  • Own-goal counts will now reset on mp_restartgame
  • Two more soccer maps added to the config file
  • Plugin now offers 2 forwards for extensions (OnBallShot and OnGoalScored)

Changes in v1.45: (2009/10)

  • Fixed "Invalid memory access" when creating a bot navigation file with SoScore loaded

  SoScore respawn message
SoScore respawn message

Configuration ConVars:

forlix_soscore_log_goal_scores (default 1)
- Enables (1) or disables (0) goal score logging

forlix_soscore_announcement_type (default 0)
- How often the plugin may announce itself to players: Every round-start (0), Once after connect (1)

forlix_soscore_spawn_mode (default 2)
- Disabled (0), Spawn new players after round-start (1), Respawn after death and team change as well (2)

forlix_soscore_respawn_blocktime (default 8)
- Time in full seconds after death in which players are unable to respawn

forlix_soscore_own_goal_ban_num (default 3)
- Number of own goals required for a player to get banned (0 to disable)

forlix_soscore_own_goal_ban_time (default 150)
- Time in minutes a player will be banned for (0 for permanent)

forlix_soscore_player_godmode_health (default 200)
- Health value for players in godmode (0 to disable godmode and use default health)

forlix_soscore_team_limit (default 8)
- Limits the number of players on each team to the specified amount (0 to disable)

forlix_soscore_chat_trigger (default "!")
- Set this to one of the ChatTrigger strings configured in SourceMod's core.cfg

forlix_soscore_version
- Version tracking (don't modify this) - Servers running this plugin (Game-Monitor.com)


If you are having trouble configuring for a new map, check your server console. The plugin will output detailed error messages on startup, about what is wrong with the data entered by you (eg. if certain entities were not found).


Forwards for third-party extensions:

forward ForlixSoScore_OnBallShot(shooter, team);
- Called everytime the ball is shot. Provides the client index of the player that shot it, and his team index.
The client index (and the team index) can be zero (in case the world shot it, example: C4), otherwise the supplied client is guaranteed to be in-game.

forward ForlixSoScore_OnGoalScored(winning_team, loosing_team, shooter, assistant, bool:owngoal);
- Called everytime a goal has been scored. Provides the indexes of the winning- and loosing-team, the client indexes of shooter and assistant, as well as a boolean indicating if the goal was an own goal.
The team indexes are guaranteed to be set, the client indexes can both be zero. If they are non-zero, the clients supplied are guaranteed to be in-game. In case of an own goal an assistant will never be supplied.

Check out the sample plugin forlixsoscore_forwardsample.sp if you're not sure about the usage of these.


CS:S scoreboard - credits for goal and pass
CS:S scoreboard - credits for goal and assist
Download:

The plugin binary has been built for SourceMod version 1.2.



Forlix SoScore v1.45
License: GPL v3

forlix_soscore.zip (SourceMod plugin)

Source code (latest beta)
forlix_soscore_src.zip (Plugin source)

© 2006-2010 Forlix.org | Terms of use | Contact

Powered by Apache 2.2

Powered by Perl        Valid XHTML 1.1