aim_realism.amxx проблема в логах

Статус
В этой теме нельзя размещать новые ответы.

KOF

Сообщения
3
Реакции
0
Ошибка
L 09/06/2022 - 17:53:51: [AMXX] Displaying debug trace (plugin "aim_realism.amxx", version "2.2.7")
L 09/06/2022 - 17:53:51: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 09/06/2022 - 17:53:51: [AMXX] [0] d0235c5b58cb1998c20bfdc1f568d946.sma::fwTraceLine (line 276)
L 09/06/2022 - 17:53:52: Invalid CVAR pointer
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5263 (http://www.amxmodx.org)
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.11.0.767-dev
Build date: 03:13:55 Oct 25 2021 (2753)
ReGamedll
ReGameDLL version: 5.21.0.556-dev
Версия Metamod
Metamod-r v1.3.0.128, API (5:13)
Список метамодулей
[ 1] Reunion          RUN   -    reunion_mm_i386.so          v0.1.92d         ini  Start Never
[ 2] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5263 ini Start ANY
[ 3] HitBox Fix RUN - hitbox_fix_mm_i386.so v1.0.11 ini Start ANY
[ 4] VoiceTranscoder RUN - VoiceTranscoder.so v2017RC5 ini ANY ANY
[ 5] ReAuthCheck RUN - reauthcheck_mm_i386.so v0.1.6 ini Start Never
[ 6] ReSRDetector RUN - resrdetector_mm_i386.so v0.1.0 ini Chlvl ANY
[ 7] Rechecker RUN - rechecker_mm_i386.so v2.5 ini Chlvl ANY
[ 8] WHBlocker RUN - whblocker_mm_i386.so v1.5.696 ini Chlvl ANY
[ 9] ReSemiclip RUN - resemiclip_mm_i386.so v2.3.9 ini Chlvl ANY
[10] MySQL RUN - mysql_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[11] SQLite RUN - sqlite_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[12] Fun RUN - fun_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[13] Engine RUN - engine_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[14] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[15] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[16] ReAPI RUN - reapi_amxx_i386.so v5.21.0.248-dev pl2 ANY Never
[17] ReAimDetector RUN - reaimdetector_amxx_i386.so v0.2.2 pl2 ANY Never
[18] CSX RUN - csx_amxx_i386.so v1.9.0.5263 pl2 ANY ANY
[19] SxGeo RUN - sxgeo_amxx_i386.so v2.2 pl2 ANY Never
19 plugins, 19 running
Список плагинов
amxbans_rbs.amxx
reaimdetector.amxx
csstats_mysql.amxx
army_ranks_ultimate.amxx
statscfg_rbs.amxx
statsx_rbs.amxx
ultimate_gag.amxx
chat_rbs.amxx
ultimate_models.amxx
ultimate_weapons.amxx
vip_rbs.amxx
skill_elo.amxx
csstats_resetscore.amxx
killassist_rbs.amxx
mapsmenu_rbs.amxx
esp_rbs.amxx
radio_rbs.amxx
aim_realism.amxx debug
afkkicker_rbs.amxx
ad_from_server.amxx
voteban_rbs.amxx
ultimate_flags.amxx
admincmd_rbs.amxx
amxmodmenu_rbs.amxx
ultimate_informer.amxx
snipers_rbs.amxx
ptb_rbs.amxx
mapchooser_rbs.amxx
damager_rbs.amxx
NoTeamFlash.amxx
demorecorder_rbs.amxx
hpk_rbs.amxx
parachute_rbs.amxx
restmenu_rbs.amxx
backweapons_rbs.amxx
Автор плагина
WATCH_DOGS UNITE
Версия плагина
version "2.2.7
Исходный код
/*
===========================================================================================================================================
C:\
= Aim Realism - AMX Mod X script. Copyright В© 2020-2022, WATCH_DOGS UNITED
=
= Credits:
=
= О»MX Mod X - Plugin creation opportunity; В© Copyright AMX Mod X Dev Team.
= WATCH_DOGS UNITED - Plugin creation.
= VEN - "Fix_Recoil" plugin base code ( 2007 ); used to control the bullets accuracy by distancement.
= hellmonja - Code required for shotgun pellets to act properly and to be drawn correctly in "Advanced Weapon Tracers" plugin.
= mlibre - Code for the realism function to work only when players shot; keeps your gameplay more lighter.
= ot_207 - Some codes of the "recoil_control" plugin ( 2009 ); used to set the weapon recoil.
= v3x - Static crosshair [ CS-GO like ( observer crosshair ) ]. Helps you detect recoil and hit targets accurately.
= ConnorMcLeod - Code to detect snipers scope; the static crosshair is hidden automatically when on scope for this to work properly.
= Bugsy - Boolean variables; used to detect flashbang explosion event.
= Ark_Procession - By reporting the plugin functionality, helped us improve it.
=
= Description
=
= This plugin makes your weapons as accurate as a real one;
= Accuracy works in any case: stopped, running, jumping, on air, on ladder, on water, using snipers without scope, etc.
= All weapons accuracy and recoil can be edited and saved in a proper configuration file.
=
= If you're shooting from a ladder you'll notice a slight difference in accuracy also realistic;
= Accuracy of shotgun pellets adjusted to be as realistic as possible;
= Fixes the game's engine bad shot registration bug;
= Fixes bad shot registration bug when playing online on slow speed internet connections;
= Includes customizable crosshairs via console;
= Allows you to see players name even in long ranges;
= Includes a new BotProfile made for realism;
= Fixes the slow players health update in spectator mode. New
=
= BotProfile Characteristics
=
= Includes all CS / CZ bots
=
= The Easy level is actually all mixed levels, that is, any bot from any level will participate;
= Bots act in a more independent way;
=
= 4 levels (Easy, Normal, Hard and Expert) instead of 8 (Easy, Fair, Normal, Tough, Hard, VeryHard, Expert and Elite)
=
= No injustices:
=
= Bots from a same level have the same skill;
= Bots can`t know your exact position.
=
= Skills are scaled:
=
= Easy: 25 | Normal: 50 | Hard: 75 | Expert: 100
=
= Attack delays are scaled:
=
= Easy: 1.2 | Normal: 0.6 | Hard: 0.3 | Expert: 0.15
=
= A total of 210 bots with static skins (bots that already had static skins in original will keep the same)
=
= Bot skins was divided for better variation: 42 bots for every of the 5 CZ player classes.
=
= Changelog
=
= Dec 22, 2020 - v1.0 - Initial release
=
= Aug 05, 2021 - v2.0 - Optimized code + Added features
=
= [ ADDED ] - Cvar for custom recoil
= [ ADDED ] - Shotgun pellets accuracy control
= [ ADDED ] - Cvar for custom shotgun pellets accuracy
= [ ADDED ] - Customizable crosshair: No Crosshair, Static and Accurate ( Standard + Static )
= [ ADDED ] - Cvar for custom crosshairs
= [ ADDED ] - Snipers crosshair ( static crosshair )
= [ ADDED ] - Cvar for snipers crosshair
= [ ADDED ] - Command to display crosshair modes in console
=
= [ OPTIMIZED ] - Realism function code reduced and ultra optimized for bullet processing performance
= [ OPTIMIZED ] - Now the realism function works even if the targets are behind walls and objects
= [ OPTIMIZED ] - Realism function now works only when you shoot keeping your gameplay more lighter
=
= [ UNALTERED ] - Recoil stills the same as v1.0 ( 0.237 ) as already the best approximation for realism.
=
=
= Aug 11, 2021 - v2.1 - Optimized code + Added features + Removed commands
=
= [ OPTIMIZED ] - You can now enable/disable standard and static crosshairs with proper cvars.
= [ OPTIMIZED ] - Now you can use the snipers crosshair independent that static crosshair is disabled on other weapons.
=
= [ REMOVED ] - command to show crosshair modes.
= [ REMOVED ] - cvar to set crosshair modes.
=
= [ ADDED ] - cvar for standard crosshair.
= [ ADDED ] - cvar for static crosshair.
=
=
= Aug 30, 2021 - v2.2 - Code optimized + Updated txt file + BotProfile updated to Hitman Edition.
=
= [ OPTIMIZED ] - Realism function code reduced.
= [ UNDONE ] - Shotgun pellets now are better represented in "Advanced Weapon Tracers" plugin even if shooting entities.
= [ OPTIMIZED ] - Now bots have from 25 ( Easy ) to 100 ( Expert ) sequential skills with a more agitated behavior.
=
= [ ADDED ] - Custom static crosshair tutorial.
=
=
= Sep 02, 2021 - v2.2.1 - Now compatible with latest Amx Mod X versions.
=
= Sep 03, 2021 - v2.2.2 - Code optimized + Shotgun precision works even with entities ( breakable objects , doors etc. ).
=
= Sep 25, 2021 - v2.2.3 - Code optimized + Added crosshair options for spectator mode + BotProfile updated.
=
= [ ADDED ] - cvar for standard crosshair on spectator mode.
= [ ADDED ] - cvar for static crosshair on spectator mode.
= [ ADDED ] - cvar for snipers crosshair on spectator mode.
=
= Sep 27, 2021 - v2.2.4 - Changed "observer" to "static" crosshair and "normal" to "standard" crosshair for better understanding.
=
= Oct 04, 2021 - v2.2.5 - Code optimized + optimized shotgun system for long ranges + BotProfile updated.
=
=
= Jan 23, 2022 - v2.2.6 - Code optimized + Now the plugin is fully customizable.
=
= [ OPTIMIZED ] - Now you can control weapon recoil on every weapon separately.
= [ OPTIMIZED ] - You can now control shotgun pellets accuracy on every shotgun separately.
= [ OPTIMIZED ] - Paused time for avoiding flashbang effect conflict reduced to only 0.1s with no interference!
=
= [ REMOVED ] - Cvar aim__shotguns_accuracy.
=
= [ ADDED ] - Now you can control the bullets accuracy via cvar on every weapon or all weapons at the same time.
= [ ADDED ] - Cvar for recoil control mode.
= [ ADDED ] - Cvars for recoil control for every weapon.
= [ ADDED ] - Cvar for accuracy control mode.
= [ ADDED ] - Cvar for accuracy control for all weapons.
= [ ADDED ] - Cvars for accuracy control for every weapon.
= [ ADDED ] - Now you can configure the plugin with a proper configuration file in the "configs" folder.
=
= [ UNALTERED ] - No settings was changed in this version. BotProfile stills the same as v2.2.5.
=
=
= Feb 24, 2022 - v2.2.7 - Code optimized + BotProfile updated.
=
= Commands
=
= aim__realism - Allows the plugin to control the weapons accuracy and recoil. Default: 1 ( On )
=
= ACCURACY MEANS THE BULLET DIRECTION IN RELATION TO THE CROSSHAIR CENTER.
=
= aim_accuracy__mode - Weapons accuracy control mode; mode 1 = all weapons; mode 2 = specified weapons. Default: 1 ( all )
= aim_accuracy - Controls the accuracy of all weapons except shotguns. "aim_accuracy__mode" must be = 1. Default: 9999
= aim_accuracy_<weapon> - Controls the accuracy of the specified weapon. "aim_accuracy__mode" must be = 2. Default: 9999
=
= NOTE: THE HIGHER THE ACCURACY VALUE, THE LESS DAMAGE DIFFERENCE IN CLOSE AND LONG RANGES.
=
= RECOIL MEANS THE SHAKE OF THE SHOT WHICH CONSEQUENTLY CHANGES THE CROSSHAIR DIRECTION.
=
= aim_recoil__mode - Weapons recoil control mode; mode 1 = all weapons; mode 2 = specified weapons.
= aim_recoil - Controls the recoil of all weapons. "aim_recoil__mode" must be = 1. Default: 0.237
= aim_recoil_<weapon> - Controls the recoil of the specified weapon. "aim_recoil__mode" must be = 2. Default: 0.237
=
= NOTE: THE HIGHER THE RECOIL VALUE, THE LESS CONTROL OVER THE CROSSHAIR DIRECTION.
=
= aim__standard_crosshair - Allows the standard crosshair to be displayed. Default value: 1 ( Allowed )
= aim__static_crosshair - Allows the static crosshair to be displayed. Default value: 1 ( Allowed )
= aim__snipers_crosshair - Allows the static crosshair to be displayed while holding sniper rifles. Default value: 1 ( Allowed )
=
= aim_spec_standard_cross - Allows the standard crosshair on spectator mode. Default value: 1 ( Allowed )
= aim_spec_static_cross - Allows the static crosshair on spectator mode. Default value: 1 ( Allowed )
= aim_spec_snipers_cross - Allows the snipers crosshair on spectator mode. Default value: 1 ( Allowed )
=
= Note: Static crosshair is the observer crosshair, so keep the observer crosshair enabled in your game options section.
=
= Plugin File Info
=
= Lines: 334 - Code: 158
= Size : 14 KB - Code: 4,65 KB
=
===========================================================================================================================================
*/

#include <amxmodx>
#include <fakemeta_util>
#include <hamsandwich>

#define WEAPON get_user_weapon
#define SHOTGUN (WEAPON(id) == CSW_M3 || WEAPON(id) == CSW_XM1014)
#define num get_pcvar_num
#define ALIVE is_user_alive
#define SNIPER (WEAPON(id) == CSW_AWP || WEAPON(id) == CSW_SCOUT || WEAPON(id) == CSW_G3SG1 || WEAPON(id) == CSW_SG550)
#define EQUIPMENT_BITSUM (1 << 2 | 1 << CSW_KNIFE | 1 << CSW_HEGRENADE | 1 << CSW_FLASHBANG | 1 << CSW_SMOKEGRENADE | 1 << CSW_C4)

new P_Cvars[13], target, body, bool: FLASHED, bool: ON_SCOPE[33], WR_VARS[CSW_P90 + 1], WA_VARS[CSW_P90 + 1], PLAYER_WEAPON[33]

public plugin_init()
{
register_plugin("Aim Realism", "2.2.7", "WATCH_DOGS UNITED")
P_Cvars[0] = register_cvar("aim__realism", "1")
P_Cvars[1] = register_cvar("aim_recoil", "0.237")
P_Cvars[2] = register_cvar("aim__snipers_crosshair", "1")
P_Cvars[3] = register_cvar("aim__standard_crosshair", "1")
P_Cvars[4] = register_cvar("aim__static_crosshair", "1")
P_Cvars[5] = register_cvar("aim_standard_cross_spec", "1")
P_Cvars[6] = register_cvar("aim_static_cross_spec", "1")
P_Cvars[7] = register_cvar("aim_snipers_cross_spec", "1")
P_Cvars[8] = register_cvar("aim_recoil__mode", "1")
P_Cvars[9] = register_cvar("aim_accuracy_m3", "2020")
P_Cvars[10] = register_cvar("aim_accuracy_xm1014", "2020")
P_Cvars[11] = register_cvar("aim_accuracy__mode", "1")
P_Cvars[12] = register_cvar("aim_accuracy", "9999")
register_forward(FM_TraceLine, "fwTraceLine", 0)
register_event("SetFOV", "Event_SetFOV", "b")
register_event("CurWeapon", "Cross_Mode", "b", "1=1")

new weapon_name[20], cvar_rec_name[21], cvar_acc_name[23]
for (new i = CSW_P228; i <= CSW_P90; i++)
{
if (!(EQUIPMENT_BITSUM &(1 << i)) && get_weaponname(i, weapon_name, charsmax(weapon_name)))
{
RegisterHam(Ham_Weapon_PrimaryAttack, weapon_name, "Recoil_Control", 1)
formatex(cvar_rec_name, charsmax(cvar_rec_name), "aim_recoil_%s", weapon_name[7])
formatex(cvar_acc_name, charsmax(cvar_acc_name), "aim_accuracy_%s", weapon_name[7])
WR_VARS[i] = register_cvar(cvar_rec_name, "0.237")
WA_VARS[i] = register_cvar(cvar_acc_name, "9999")
}
}
}

public plugin_cfg()

server_cmd("exec addons/amxmodx/configs/aim_realism.cfg")

public grenade_throw(id, grenadeIndex, weaponId)
{
if (num(P_Cvars[0]) && weaponId == CSW_FLASHBANG)
{
set_task(1.58, "Generic_Flashed")
set_task(1.69, "Generic_No_Flashed")
}
}

public Generic_Flashed()

FLASHED = true

public Generic_No_Flashed()

FLASHED = false

public fwTraceLine(const Float: start[3], Float: dest[3], HIT_PARAM, id, ptr)
{
if (!num(P_Cvars[0]) ||
!ALIVE(id) ||
HIT_PARAM != DONT_IGNORE_MONSTERS ||
WEAPON(id) == CSW_KNIFE)
return

static button;
button = pev(id, pev_button)

if (button && IN_ATTACK && FLASHED != true)
{
if (!SHOTGUN)
{
if (num(P_Cvars[11]) == 1)
velocity_by_aim(id, num(P_Cvars[12]), dest)

if (num(P_Cvars[11]) == 2)
velocity_by_aim(id, num(WA_VARS[PLAYER_WEAPON[id]]), dest)

xs_vec_add(start, dest, dest)
}

if (SHOTGUN && get_user_aiming(id, target, body, 2000) && target)
{
if (WEAPON(id) == CSW_M3)
velocity_by_aim(id, num(P_Cvars[9]), dest)

if (WEAPON(id) == CSW_XM1014)
velocity_by_aim(id, num(P_Cvars[10]), dest)

xs_vec_add(start, dest, dest)
}

engfunc(EngFunc_TraceLine, start, dest, HIT_PARAM, id, ptr)
}
}

public Recoil_Control(ent, Float: push[3])
{
if (num(P_Cvars[0]))
{
new id = pev(ent, pev_owner)
pev(id, pev_punchangle, push)

switch (get_pcvar_num(P_Cvars[8]))
{
case 1:
xs_vec_mul_scalar(push, get_pcvar_float(P_Cvars[1]), push)
case 2:
xs_vec_mul_scalar(push, get_pcvar_float(WR_VARS[PLAYER_WEAPON[id]]), push)
}

set_pev(id, pev_punchangle, push)
}
}

public Event_SetFOV(id)

ON_SCOPE[id] = (read_data(1) < 55)

public Cross_Mode(id)
{
PLAYER_WEAPON[id] = read_data(2)

if (!ON_SCOPE[id])
{
new CM = 64

if (num(P_Cvars[3]) && ALIVE(id) ||
num(P_Cvars[5]) && !ALIVE(id))
CM = 0

message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("HideWeapon"), _, id)
write_byte(CM)
message_end

if (ALIVE(id) && num(P_Cvars[4]) && !SNIPER ||
ALIVE(id) && num(P_Cvars[2]) && SNIPER ||
!ALIVE(id) && num(P_Cvars[6]) && !SNIPER ||
!ALIVE(id) && num(P_Cvars[7]) && SNIPER)
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("Crosshair"),
{ 0, 0, 0 }, id)
write_byte(1)
message_end
}
}
}
Привет всем подскажите пожалуйста кто занят как исправить ошибку в логах ?
 
Сообщения
3,050
Реакции
1,739
Помог
80 раз(а)
Почему список модулей взят из консоли, а список плагинов из файла??:?
Тема закрыта.
 
Статус
В этой теме нельзя размещать новые ответы.

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

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