Page 1 of 1

Stroke Strike

Posted: Tue Nov 23, 2021 2:59 pm
by greenie
What?


Stroke Strike is a fun gamemode I've made after the success of my Golf prototype few years ago which I had done in vscripts.
The goal is simple: Put the Decoy in the spawned Trashcan first. After the round is over, the winner is boosted in HP and everyone is given a gun.
It can run on any map and contains in-game commands to build your own courses hole by hole.

This is my first plugin, I wanted to try out SourcePawn, and I'm loving it so far!
I'm still new to this, please be gentle! It sure isn't one of the cleanest coded plugin. ( ͡° ͜ʖ ͡°)

Features

Custom club viewmodel with sounds!
Score multiplicators for Hole-In-Ones and Shots scored from far away.
Basic admin commands to restart or to set a specific hole.
Ability to tweak the time between shots, going back to a previous location, HP for the winner and more.
Moving players to CT for a more readable scoreboard, that includes forcing their previous team's playermodel (both can be disabled)
Ability to ship your map with Stroke Strike ready entities!
An in-game command based editor to create courses, you can name them as well!
Simple to add more holes, configs are stored by map, each file can be a hole, or even multiple, just drag and drop.
Endless fun!


Commands


Server Commands (for debugging purposes)
sm_golfers - Prints the golf variables for all players
sm_golfdebug <0/1> - Prints debugging messages, if you broke a hole somehow, this will come in handy.
Server / admin commands
sm_golf <0/1/2> - Enable/Disable the gamemode, 0 for disabled, 1 for enabled, 2 for edit mode.

sm_golfstroketime <seconds> - Time between strokes, once time is up, you get damaged and the next throw starts.
sm_golfgoto <hole> - Go to a specific hole number.
sm_golfrestart - Restart the course entirely (reset scores, course progress etc..).
sm_golfwinhp <health> - Set the health multiplicator for the winner based on the number of alive golfers.
sm_golflosehp <health> - Set the health for the losing players.
sm_golfweapons <loser> <winner> - Set the weapons for the losers and winner. (eg. weapon_ak47).
sm_golfrandom <0/1> - Randomize hole orders, 0 for disabled, 1 for enabled.
sm_golfallowback <0/1> - Allow players to go back to their previous position, 0 disabled, 1 enabled.
sm_golfpar <0/1> - Use Par in scoring. 0 for disabled, 1 for enabled.
sm_golfforcect <0/1> - Force players to be moved to the CT team, it makes the scoreboard more readable for scores
sm_golfkeeppm <0/1> - Keep the playermodel from the first team the player has joined. Used with sm_golfforcect
sm_golfforceconfig <0/1> - Ignore Stroke Strike entities, uses the configs instead.
Editing Commands (in-game only, read sm_golf in the second block)
Code:
sm_golfedit - Opens the edit menu for spawn, hole, win positions + spawn and hole position randomizer radius.

sm_golfeditspawn - {REQUIRED} Set the spawn, based on your current position and angles.
sm_golfeditspawnradius <radius> - Set the random spawn position radius.
sm_golfedithole - {REQUIRED} Set the hole, based on your current position.
sm_golfeditholeradius <radius> - Set the random hole position radius.
sm_golfeditwin - Set the winner's respawn point, if none provided, the hole's position will be used.
sm_golfeditinfo <name> <author> [par] - {REQUIRED} Set the info of the hole, use quotes for spaces.

sm_golfeditsave <filename> - Save the currently edited hole, can overwrite, if no arguments provided, a list of the configs will be shown
sm_golfeditdel <filename> - Deletes a specific config, if no arguments provided, a list of the configs will be shown
sm_golfeditload <hole> - sm_golfgoto alias. Will load the positions and info of the hole as well.
Usage Info
Holes are stored inside 'configs/strokestrike/MAPNAME/'.


Issues

Currently, getting stuck inside geometry is a thing. Use another plugin to unstuck for now.
I've ran into issues with uploading assets to players.. No clue if it isn't just my server, typing 'sv_allowupload 1' ON THE CLIENT fixed it somehow.
If every player play too fast and balls stop before the timer starts, they'll be removed and an exception will show up on the server's console (working on it).
You can get out of the map... That's a feature though.. right?
Might conflict with other plugins? No clue, let me know if you find anything.


Plugins you may want with it
Grenade / Projectile ViewCam by Sheepdude
Stuck by Erreur 500

get plugin