View Single Post
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 05-30-2016 , 16:50   [CS:GO] Simple Ball Plugin (Soccerjam)
Reply With Quote #1

Description

This plugins let's you spawn a simple ball on your servers. The ball can be kicked by pressing the use (E) button. When the ball holder is attacked, he will drop the ball.



Commands
  • !ball : Admin-Menu to set/refresh/remove the ball

Customization

You can customize certain things. Open the source code, at the top you'll find:
Quote:
// ***
// only modify if you know what you're doing
#define BALL_ENTITY_NAME "simpleball"
#define BALL_CFG_FILE "configs/ballspawns.cfg"
#define BALL_PLAYER_DISTANCE 55.0
#define BALL_KICK_DISTANCE 55.0
#define BALL_KICK_POWER 600.0
#define BALL_HOLD_HEIGHT 15
#define BALL_KICK_HEIGHT_ADDITION 25
#define BALL_RADIUS 16.0
#define BALL_AUTO_RESPAWN 35.0
#define BALL_ADMIN_MENU_FLAG ADMFLAG_BAN
// thanks.
// ***
Installation

Simply export the contents of the .zip file to your server's csgo folder.

Known Bugs

When you set your first ball ever, the server might crash. After this one crash, the plugin works flawless. The issue lies with the key valus file, but in the moment I can't seem to understand what is causing the crash.

Credits

Credits go to t.sang. His soccerjam mod is the base of this simplified plugin.
Attached Files
File Type: zip Simple Ball CSGO v1.1.zip (1.75 MB, 539 views)
File Type: zip Simple Ball CSGO v1.2.zip (1.74 MB, 1398 views)
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers

Last edited by mottzi; 06-14-2016 at 16:43.
mottzi is offline
Send a message via MSN to mottzi