Surf Olympics v1.5.2a
Explicit Details:
Data is seperated in 2 different files. MapRecords.vault and EndZones.vault located at amxmodx/data/vault . To delete records use the command: surf_delete , ingame to pop-up a menu for ease of record deletion. This does not require a map change.
Code:
/*
* ====================================================================================================
* ====================================================================================================
* ---------------------------SURF_OLYMPICS-v1.5.2a--------BY: OneEyed---------------------------
* ====================================================================================================
* ====================================================================================================
* COMMENTS:
* Install the plugin normally, and get ready to beat some freagin records!
* ====================================================================================================
* REQUIRED:
* AMXX 1.70
*
* MODULES:
* CSTRIKE
* ENGINE
* FAKEMETA
* NVAULT
* ====================================================================================================
* CVARS:
* surf_flyspeed <#> - Changes flying speed of surf_endzone tool
* surf_teamstack < 0 | 1 | 2 > - Forces players to be in a certain team.
* surf_godmode < 0 | 1 > - Enables/Disables godmode on players.
* surf_semiclip < 0 | 1 > - Enables/Disables semi-clip on players.
*
* COMMANDS:
* surf_endzone - Enables Surf EndZone Creation Tool
* surf_delete - Enables Map Record Catagory Deletion menu.
* surf_on < 0 | 1 > - Enables/Disables plugin 99%.
*
* CHAT COMMANDS:
* /spec - Makes you a spectator.
* /respawn - Respawns you.
* /top3 - Opens Map Top Records list.
* /help - Opens help menu.
* ====================================================================================================
* PLUGIN DETAILS:
* When you spawn in, your in standby mode. As soon as you jump, your game is activated and your
* records get recorded. Current records are Map Completion, Speed, Hang Time, Distance, and
* Height. The plugin automatically respawns users when you die or fall down. Players also have
* a simulated Semi-clip, so they don't get stuck inside each other, but still allow to block
* each other. To complete the map, touch the designated EndZone lightning bolt.
*
* ====================================================================================================
* CREDITS:
* - Rukia found how to know if your on ladder. (drove me nuts yet it was so easy)
* - teame06/VEN for HLTV event.
* - teame06 help with new menu system, and Team_Select menu, and some inspiration =).
* - Xtrem3 found a major hang time exploit.
* - iron helix found a major height exploit.
* - XAD - used the same font color from his statsx motd.
* - door for helping me test some features.
* - Gorlag/Batman for his Flying code.
* - BASIC-MASTER, I copied his Special Effect. (not the code, just effect)
* - BAILOPAN for some of the weapon removal code from CSDM v1.
* - BAILOPAN, for his information on code optimization. (READ IT)
* -- <a href="http://www.sourcemod.net/devlog/?p=62" target="_blank" rel="nofollow noopener">http://www.sourcemod.net/devlog/?p=62</a> ====================================================================================================
*/
Try it out @ these official Surf Olympic servers!
64.34.92.137:27015 - [Surf Olympics] - Countersurf.com NY Server
65.78.134.29:27059 - Syn [Surf-Olympics] http://Syn-Scripts.com drgservers.com
ChangeLog:
v1.5.2a:
- Reverted back to old method, will crash again on surf_xss and surf_maya if you have plugins that precache models. It's the maps fault for having to many brush models. Attempting to fix, completely breaks my plugin on normal maps.
v1.5.2:
- Fixed crashing in surf_xss and surf_maya.
v1.5.1:
- Fixed a bug with the semi-clip cvar.
- Fixed a entity leak error with weapon removal.
v1.5:
- Commentator can be turned on/off through a #define.
- New CVARs:
- surf_godmode < 0 | 1 > (Turns God Mode OFF/ON, for everyone.)
- surf_semiclip < 0 | 1 > (Turns Semi-Clip OFF/ON, for everyone.)
- New COMMANDs:
- surf_delete (Opens menu to delete records of current map.)
- surf_on < 0 | 1 > (Turns plugin OFF/ON completely.)
- New Top Record System:
- One person can't dominate an entire record, there will always be three
- different players for every record catagory. Saved by STEAMID not name.
- Weapons from game_player_equip entity are removed upon death, to prevent spam.
- Players can now easily jump on top of users in Semi-Clip mode.
v1.1:
- Changed the HUD system a little bit, to be less laggy.
- Fixed an accidental logical error with clearing airtype records.
- Blocked trigger_hurts that heal from teleporting.
- Added Personal Statistics to /top3 window.