Forlix.org

2010/03/10 - 09:34
38.107.191.94 - 1062v
 
Last modified 2009/12/26
 

SoBall SourceMod plugin (2009/03)

This addon for SourceMod on a CS:S server allows you to offer players to spawn their own soccer balls in any map, just by typing !soccer in the chat. Maps can be excluded by configuration file (eg. soccer maps). The balls can be used to kill other players, by shooting a ball at them (knife a ball to "shoot" it). The frag will be displayed very much like any ordinary frag in CS:S in the top right corner of the screen. Teamkills will therefore be easily visible and can be punished using a third party tool such as Mani-Admin-Plugin or another SourceMod plugin, in contrast to this plugins predecessor, where people could teamkill without being exposed.
Soccer ball on de_dust2
Soccer ball on de_dust2

Detailed features:

  • Players gain and loose score points from ball frags/deaths as if it was an ordinary kill by knife or rifle
  • While this plugin is running, all prop_physics entities in the map can be used exactly the same as the soccer balls for killing players, and will yield score points
  • Spawning a ball is simple, type "!soccer" in chat, a menu appears, aim at a spot where to spawn the ball, press 1, and the ball is spawned. A chat message exposing this command is displayed each round start
  • Balls per player and round can and should be limited to a reasonable amount using the convars below (the default values are a very good starting point)
  • Ball spawns can be logged to the server log if desired
  • A configuration file provides control over on which maps the plugin should be disabled, for example if you are also running soccer maps on your server (like me), you would want to put them in the file, so that players cannot spawn additional balls in those maps and disrupt the game. The plugin will completely unload if the current map is listed there, preventing unnecessary server load
  • The max. distance balls can be spawned at can be limited
  • A spawn protection time can also be specified
  • Ball spawning can be denied when aiming at players
  • The plugin sets "phys_pushscale" to 900 to make it possible to "shoot" physics objects with the knife. If you have any maps where you want to exclude the plugin and which are not soccer maps, be sure to add "phys_pushscale 1" to your server.cfg to ensure the default setting on those maps
  • Eleven soccer maps are already added to the exclusion list within the config file
  • Multilanguage support - English and German phrase-files already included

Changes in v1.05: (2009/05)

  • Fixed bug when being used in conjunction with floodcheck

Changes in v1.17: (2009/12)

  • Added multilanguage support
  • Added ConVar to allow or deny spawning balls on players
  • Now uses SourceMods native chat trigger system
  • A restrict-sound is now played when spawning was denied (too far, on player, etc.)
  • Numerous improvements in the code

Configuration ConVars:

forlix_soball_log_ball_spawns
- Enables (1) or disables (0) ball spawn logging

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

forlix_soball_spawnprotection_time
- Time in full seconds after freezetime end in which balls cannot be spawned

forlix_soball_spawncount_per_round
- Amount of balls a player can spawn per round (0 for none)

forlix_soball_spawndistance_max
- Maximum distance a player can spawn a ball at (0 for infinity)

forlix_soball_allow_spawn_on_players
- Allow (1) or deny (0) spawning balls on players (aiming at them, then spawning)

forlix_soball_chat_trigger
- Set this to one of the ChatTrigger strings configured in SourceMod's core.cfg

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

The plugin file (.smx) goes into "cstrike/addons/sourcemod/plugins", the configuration file (.cfg) goes into the "cstrike/addons/sourcemod/configs" folder, and the phrase-files go into "cstrike/addons/sourcemod/translations" with their corresponding sub-folders.

The model and material files for the soccer ball are in a seperate ZIP-file with the directory structure included, so make sure to keep it when unzipping them, and dont forget to add them to your HTTP download server if you make use of sv_downloadurl.


THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


SoBall spawn menu
SoBall spawn menu
Download:

The plugin binary has been built for SourceMod version 1.2.



Forlix SoBall v1.17

forlix_soball.zip (14 kB, SourceMod plugin)
forlix_soball_mdl.zip (117 kB, HL2 physics model)

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

Powered by Apache 2.2

Powered by Perl        Valid XHTML 1.1