Parachute от ReHLDS Team вызывает лаги

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
3,593
Реакции
1,576
Помог
141 раз(а)
Ошибка
Поднятие пинга у игроков на сервере при определенных условиях.
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5234 (http://www.amxmodx.org)
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Nov 3 2018 14:55:29
Built from: https://github.com/alliedmodders/amxmodx/commit/9eb1f42
Build ID: 5234:9eb1f42
Core mode: JIT+ASM32
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.4.0.668-dev
Build date: 09:47:42 Sep 29 2018 (1631)
Build from: https://github.com/dreamstalker/rehlds/commit/89be216
ReGamedll
ReGameDLL version: 5.7.0.318-dev
Build date: 21:07:26 Oct 30 2018
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/932001b
Версия Metamod
Metamod-r v1.3.0.128, API (5:13)
Metamod-r build: 17:47:54 Aug 24 2018
Metamod-r from: https://github.com/theAsmodai/metamod-r/commit/0cf2f70
Список метамодулей
Currently loaded plugins:
description stat pend file vers src load unload
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.0.133 ini Start Never
[ 2] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5234 ini Start ANY
[ 3] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 4] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 5] Revoice RUN - revoice_mm_i386.so v0.1.0.32 ini Start Never
[ 6] MySQL RUN - mysql_amxx_i386.so v1.9.0.5234 pl2 ANY ANY
[ 7] SQLite RUN - sqlite_amxx_i386.so v1.9.0.5234 pl2 ANY ANY
[ 8] Fun RUN - fun_amxx_i386.so v1.9.0.5234 pl2 ANY ANY
[ 9] Engine RUN - engine_amxx_i386.so v1.9.0.5234 pl2 ANY ANY
[10] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5234 pl2 ANY ANY
[11] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5234 pl2 ANY ANY
[12] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5234 pl2 ANY ANY
[13] hackdetector RUN - hackdetector_amxx_i386.so v0.15.328.lite pl2 ANY ANY
[14] ReAPI RUN - reapi_amxx_i386.so v5.6.0.160-dev pl2 ANY Never
[15] GeoIP RUN - geoip_amxx_i386.so v1.9.0.5234 pl2 ANY ANY
[16] whois RUN - whois_amxx_i386.so v0.2.270 pl2 ANY ANY
[17] CURL AMXX RUN - curl_amxx_i386.so v1.0.4 pl2 ANY ANY
17 plugins, 17 running
Список плагинов
Currently loaded plugins:
name version author file status
[ 1] fb_forwards 0.1.4 Kanagava & Realu fb_forwards.amx running
[ 2] WebHS 0.1 kanagava fb_web_online.a running
[ 3] FreshBans 1.4.0b kanagava fresh_bans_140_ running
[ 4] SF Warn Menu 0.1.4g serfreeman1337 sf_admin_warns. running
[ 5] CSStatsX SQL 0.7.4+1 serfreeman1337 csstatsx_sql.am running
[ 6] Rank Menu 1.1 h1k3 rankmenu.amxx running
[ 7] AES: StatsX 0.5 Vega serfreeman1337 statsx_cstrike. running
[ 8] Admin Load 3.10.0 F@nt0M adminload.amxx running
[ 9] Admin Commands 1.9.0.5234 AMXX Dev Team admincmd.amxx running
[ 10] Admin Help 1.9.0.5234 AMXX Dev Team adminhelp.amxx running
[ 11] Menus Front-End 1.9.0.5232 AMXX Dev Team menufront.amxx running
[ 12] Commands Menu 1.9.0.5234 AMXX Dev Team cmdmenu.amxx running
[ 13] Players Menu 1.9.0.5234 AMXX Dev Team plmenu.amxx running
[ 14] Teleport Menu 1.9.0.5234 AMXX Dev Team telemenu.amxx running
[ 15] Maps Menu 1.9.0.5234 AMXX Dev Team mapsmenu.amxx running
[ 16] Admin Chat 1.9.0.5234 AMXX Dev Team adminchat.amxx running
[ 17] Anti Flood 1.9.0.5234 AMXX Dev Team antiflood.amxx running
[ 18] Admin Votes 1.9.0.5234 AMXX Dev Team adminvote.amxx running
[ 19] Pause Plugins 1.9.0.5234 AMXX Dev Team pausecfg.amxx running
[ 20] Stats Configuration 1.9.0.5234 AMXX Dev Team statscfg.amxx running
[ 21] AdminMenu 1.1 Nordic Warrior adminmenu.amxx running
[ 22] Admin menu central 0.1 Nordic Warrior adminmenu_centr running
[ 23] Advanced Lottery 0.5 Nordic Warrior advanced_lotter running
[ 24] [ReAPI] Advanced Team 0.1.0 Vaqtincha AdvancedTeamCho running
[ 25] Advert Messages 1.22 neygomon adverts.amxx running
[ 26] AFK Protection 2.3.2 rapara13/Nordic afk.amxx debug
[ 27] AimInfo 2.1 xPaw/Nordic Warr aim_info.amxx running
[ 28] Ball 1.2.1 xPaw/Nordic Warr ball.amxx running
[ 29] BhopHack Detector 0.1 Mistrick bhophack_detect running
[ 30] Bypass Guard 24.01.2019 mx?! bypass_guard_ip running
[ 31] CameraChanger Lite 0.1 Nordic Warrior camera_changer. running
[ 32] Advanced Client Checke 0.3.6 Mistrick cmdchecker.amxx running
[ 33] Connect Exec 1.0 AleX connect_exec.am running
[ 34] Chat Manager 4.3.1 OciXCrom crx_chatmanager running
[ 35] CM: Toggle Chat 4.1 OciXCrom crx_chatmanager running
[ 36] OciXCrom's Rank System 3.2 OciXCrom crx_ranksystem. running
[ 37] Knife Models 2.5.7 OciXCrom crx_knife_model running
[ 38] [ReAPI] Custom Models 1.6.1 neugomon custom_models.a running
[ 39] Demo Recorder 2.4.0 F@nt0M demo_recorder.a running
[ 40] Fix for sky 0.3 NordicWarrior fix_maps.amxx running
[ 41] Gag System 1.1 TheRedShoko @ AM gag_system.amxx running
[ 42] GameName Changer 1.0 neugomon gamename.amxx running
[ 43] High Ping Kicker 1.0 OLO/shadow/Nordi high_ping_kicke running
[ 44] iFLY 1.0 arttty7 iFLY.amxx debug
[ 45] iHOOK 1.0 arttty7 iHOOK.amxx running
[ 46] Invisible Spectator 1.0 ReHLDS Team invisible_spect running
[ 47] key listener 0.7 cheap_suit keylistener.amx running
[ 48] Kill Distance 0.4 Nightscream/Nord kill_distance.a running
[ 49] Knife Duel Arena 1.32 bionext knife_duel_aren debug
[ 50] unknown unknown unknown knife_duel_aren running
[ 51] Language Menu 1.0 F@nt0M langmenu.amxx running
[ 52] Light Menu 0.2 Nordic Warrior light_menu.amxx running
[ 53] Mind Games 1.1 fifayer/Nordic W MindGames.amxx running
[ 54] Money System Best t3rkecorejz MoneySystem.amx running
[ 55] Mute Menu 12.02.2019 w0w/Nordic Warri mute_menu.amxx running
[ 56] MG Grab 2.0 Nickron new_grab.amxx running
[ 57] KillStreakAnnouncer 0.3 Nordic Warrior nkillstreak.amx running
[ 58] Knife Menu 1.2 Nordic Warrior nknifemenu.amxx running
[ 59] Knife shop 0.1 Nordic Warrior nknifeshop.amxx running
[ 60] Online Helper 1.0.1 Nordic Warrior online_helper.a running
[ 61] Paint Marker 1.1 w0w paint_marker.am running
[ 62] [ReAPI] Parachute 1.1 ReHLDS Team parachute.amxx running
[ 63] Pingwinowa bombka 0.1 diablix pingwin.amxx running
[ 64] Random Skies 1.1 rmk by N.W. randomskies.amx running
[ 65] ReChecker Logging 1.0 custom rc_logging.amxx running
[ 66] Reset Score 1.0 Nordic Warrior reset_score.amx running
[ 67] Spectator Bots 2.1 SISA spectator_bots. running
[ 68] SteamID Limiter 0.4 Mistrick steamid_limiter running
[ 69] Money Transfer 1.2 x3/Nordic Warrio tm.amxx debug
[ 70] Train Killer 1.1 Pastout!/Nordic trainkiller.amx running
[ 71] VipMenu 1.0 Nordic Warrior vipmenu.amxx running
[ 72] Yet Another Voteban 1.8 AndrewZ/voed yet_another_vot running
[ 73] Map Manager: Core 3.0.1 Mistrick map_manager_cor running
[ 74] Map Manager: Scheduler 0.1.0 Mistrick map_manager_sch running
[ 75] Map Manager: Rtv 0.0.4 Mistrick map_manager_rtv running
[ 76] Map Manager: Nominatio 0.0.8 Mistrick map_manager_nom running
[ 77] Map Manager: Effects 0.0.8 Mistrick map_manager_eff running
[ 78] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 79] Map Manager: Advanced 0.0.4 Mistrick map_manager_adv running
79 plugins, 79 running
Автор плагина
ReHLDS Team
Версия плагина
1.1
Исходный код
#include <amxmodx>
#include <reapi>

public plugin_init()
{
register_plugin("[ReAPI] Parachute", "1.1", "ReHLDS Team");

RegisterHookChain(RG_PM_AirMove, "PM_AirMove", false);
}

public PM_AirMove(const playerIndex)
{
if (!(get_entvar(playerIndex, var_button) & IN_USE) || get_entvar(playerIndex, var_waterlevel) > 0)
return;

new Float:flVelocity[3];
get_entvar(playerIndex, var_velocity, flVelocity);

if (flVelocity[2] < 0.0)
{
flVelocity[2] = (flVelocity[2] + 40.0 < -100.0) ? flVelocity[2] + 40.0 : -100.0;
set_entvar(playerIndex, var_sequence, ACT_WALK);
set_entvar(playerIndex, var_gaitsequence, ACT_IDLE);
set_pmove(pm_velocity, flVelocity);
set_movevar(mv_gravity, 80.0);
}
}
Суть проблемы: заметил, что если выставить настройки клиента rate 30000 и фпс свыше ста, 200-400. то при использовании данного парашюта у игроков на сервере начинает подниматься пинг.

Прикладываю видео.

 
В этой теме было размещено решение! Перейти к решению.
Последнее редактирование:
Сообщения
432
Реакции
411
Помог
14 раз(а)
Ну для начала отключить все плагины кроме этого и посмотреть реакцию
 
Сообщения
3,593
Реакции
1,576
Помог
141 раз(а)
voed, ничего не изменилось.

25 Фев 2019
Еще по net_graph внизу можно видеть, как растет choke, чем дольше я лечу.
 
Сообщения
1,701
Реакции
1,512
Помог
26 раз(а)
thegame, Are_you_ready, Проблема тут не в плагине, а в движке. Вот так он считает внутри движка SV_CalcPing, а вот эта функция выдаёт пинг для amxx PF_GetPlayerStats. Проблему можно решить если переписать плагин на метамод, ну я так заморачиваться не собираюсь.
 
Сообщения
345
Реакции
77
Помог
14 раз(а)
Тестил, подобный баг вызвать не получилось

Код:
#include <amxmodx>
#include <reapi>

public plugin_init()
{
    register_plugin("[ReAPI] Parachute", "1.1", "ReHLDS Team");
    RegisterHookChain(RG_PM_AirMove, "PM_AirMove", false);
}

public PM_AirMove(const playerIndex)
{
    if (!(get_entvar(playerIndex, var_button) & IN_USE)
    || get_entvar(playerIndex, var_waterlevel) > 0) {
        return;
    }
    new Float:flVelocity[3];
    get_entvar(playerIndex, var_velocity, flVelocity);
    if (flVelocity[2] < 0.0)
    {
        flVelocity[2] = (flVelocity[2] + 40.0 < -100.0) ? flVelocity[2] + 40.0 : -100.0;
        set_entvar(playerIndex, var_sequence, ACT_WALK);
        set_entvar(playerIndex, var_gaitsequence, ACT_IDLE);
        set_pmove(pm_velocity, flVelocity);
        //set_movevar(mv_gravity, 80.0);
    }
}
 

iOS

Сообщения
323
Реакции
99
Помог
5 раз(а)
sbelov020, дело в set_movevar(mv_gravity, 80.0)
Он там не нужен.
 
Статус
В этой теме нельзя размещать новые ответы.

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу