Fix default D-Only settings

This commit is contained in:
shavitush 2016-10-23 19:05:15 +03:00
parent 247087132e
commit f58741ae07
No known key found for this signature in database
GPG Key ID: 0A298F154527B9A4
3 changed files with 5 additions and 29 deletions

View File

@ -170,26 +170,7 @@ Sounds **(NEW!)**
Rankings **(NEW!)**
--
- [x] Create tables. (`mappoints`, `playerpoints`)
- [x] Allow ROOT admins to set ideal points for map and time for the default style. (`sm_setpoints <time in seconds> <points>`)
- [x] Add `sm_points`.
- [x] Implement an algorithm that will calculate points for a record, will also take the time and style into account. Add a +25% bonus if the time is equal or better than the ideal one.
- [x] Use a weighting system for points calculation. The highest ranked time will be weighted 100% and worse times will be weighted as 5% less each time.
- [x] Calculate points for players once they connect to the server.
- [x] Add `sm_top` that will show the top X players, sort by points.
- [x] Calculate rank for players once they connect to the server.
- [x] Add `sm_rank`.
- [x] Calculate points per scored time once it's added to the database.
- [x] Recalculate points for every record on the current map when a ROOT admin changes the point value for it. (retroactive!)
- [x] Add natives. `float Shavit_GetPoints(int client)` `int Shavit_GetRank(int client)` `void Shavit_GetMapValues(float &points, float &idealtime)`
- [x] Add native that checks the total amount of players with over 0 points.
- [x] Add map tiers. `sm_tier` `sm_settier`
- [x] Redirect to stats menu from `sm_top`.
- [x] Deprecate the tables, use a `playertimes` column for map points and a `users` column for total points.
- [x] Find a way to update newly calculated points for all records on a map with the least amount of queries possible.
- [x] Remove idealtime and use the WR time for the default time instead.
- [x] Remove deleted records from `playerpoints`.
- [x] Update every player's total points once per map. (MySQL only)
- [ ] TBA
Web Interface
--
@ -207,7 +188,6 @@ Chat **(NEW!)**
- [x] Add `sm_ranks` `sm_chatranks`.
- [x] Add `Shavit_FormatChat` native.
- [x] Add random rgb and random rgba for CS:S parsing.
- [x] Implement [Simple Chat Processor \(Redux\)](https://forums.alliedmods.net/showthread.php?p=1820365) support and make my own chat processor a fallback solution.
Zones
--

View File

@ -156,19 +156,15 @@
"htmlcolor" "9C5BBA"
"command" "d; donly"
"autobhop" "0"
"easybhop" "0"
"autobhop" "1"
"easybhop" "1"
"airaccelerate" "1000"
"runspeed" "260.00"
"block_pleft" "1"
"block_pright" "1"
"block_pstrafe" "1"
"block_w" "1"
"block_a" "1"
"block_s" "1"
"block_d" "1"
"strafe_count_w" "0"
"strafe_count_a" "0"

View File

@ -1480,7 +1480,7 @@ public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3
fAngle += 360.0;
}
if(iGroundEntity == -1 && !(GetEntityFlags(client) & FL_INWATER) && fAngle != 0.0)
if(iGroundEntity == -1 && (GetEntityFlags(client) & FL_INWATER) == 0 && fAngle != 0.0)
{
float fAbsVelocity[3];
GetEntPropVector(client, Prop_Data, "m_vecAbsVelocity", fAbsVelocity);