Tested in HL2DM, Should ideally work in CS:S, TF2 and CS:GO as well.
Setup Below.
TL;DR?
Setup the Database Configuration.
Use sm_createhardpoint 2x on a few different spots on the map.
Restart plugin and map.
Have fun.
Planbook:
Add HudText Supplements for non-supported games (really just csgo lol)
Change the ircrelay dependency lol.
Add random cycle to Hardpoints
Create player stats module (mini gameME ideally)
Fix bugs that people post
Dependencies:
ClientPrefs > Sourcemod Default
DBI > SourceMod Default
Commands:
Spoiler
Quote:
Admin CMDs: sm_createhardpoint/sm_inserthardpoint <NO ARGS> - Create a hardpoint. sm_deletehardpoint/sm_removehardpoint <Hardpoint ID> - Remove a hardpoint
Player CMDs: !!Uses Clientprefs Database to save!!
sm_hardpointhud/sm_hudmenu <NO ARGS> - Open up the menu to decide where the HUD Should Display.
Config + CVars:
Spoiler
Code:
cfg/sourcemod/plugin.hardpoint.cfg
// This file was auto-generated by SourceMod (v1.8.0.5967)
// ConVars for plugin "hardpoint.smx"
// The damage multipler for explosions while in the hardpoint (default is 75% of normal damage)
// -
// Default: "75"
hardpoint_blast_damage "75"
// The default database driver to use (mysql = 1 or sqlite = 2)
// -
// Default: "mysql"
hardpoint_dbtype "mysql"
// The amount of time a hardpoint should last
// -
// Default: "60.0"
hardpoint_lifetime "60.0"
Database Config:
Spoiler
Code:
Config Name: hardpoint_database
Format Example in databases.cfg:
"hardpoint_database"
{
"driver" "mysql"
"host" "127.0.0.1"
"database" "hardpoint_database"
"user" "root"
"pass" ""
//"timeout" "0"
"port" ""
}
Can use MySQL or SQLite if you don't have a webserver or MySQL Hosting.