Пользователь
- Сообщения
- 273
- Реакции
- 2
- Ошибка
-
Got a velocity too low on gib
- ОС
- Linux
- Amx Mod X
-
amxmodx 1.9.5294
- Билд
-
ReHLDS version: 3.13.0.813-dev
- ReGamedll
-
ReGameDLL version: 5.26.0.668-dev
- Версия Metamod
-
Metamod-r v1.3.0.138, API (5:13)
- Список метамодулей
-
[ 1] Reunion RUN - reunion_mm_i386.so v0.1.92d ini Start Never
[ 2] Revoice RUN - revoice_plus_mm.so v2.0.5 ini ANY Never
[ 3] AMX Mod X RUN - amxmodx_mm_i386.so v1.9.0.5294 ini Start ANY
[ 4] ReSemiclip RUN - resemiclip.so v2.3.9 ini Chlvl ANY
[ 5] YaPB RUN - yapb.so v4.4.957 ini Chlvl ANY
[ 6] ReAPI RUN - reapi_amxx_i386.so v5.24.0.300-dev pl3 ANY Never
[ 7] Engine RUN - engine_amxx_i386.so v1.9.0.5294 pl3 ANY ANY
[ 8] FakeMeta RUN - fakemeta_amxx_i386.so v1.9.0.5294 pl3 ANY ANY
[ 9] CStrike RUN - cstrike_amxx_i386.so v1.9.0.5294 pl3 ANY ANY
[10] CSX RUN - csx_amxx_i386.so v1.9.0.5294 pl3 ANY ANY
[11] Ham Sandwich RUN - hamsandwich_amxx_i386.so v1.9.0.5294 pl3 ANY ANY
- Список плагинов
-
[ 1] Admin Chat 1.9.0.5294 AMXX Dev Team adminchat.amxx running
[ 2] Admin Commands 1.9.0.5294 AMXX Dev Team admincmd.amxx running
[ 3] Anti Flood 1.9.0.5294 AMXX Dev Team antiflood.amxx running
[ 4] Commands Menu 1.9.0.5294 AMXX Dev Team cmdmenu.amxx running
[ 5] Info. Messages 1.9.0.5294 AMXX Dev Team imessage.amxx running
[ 6] Menus Front-End 1.9.0.5294 AMXX Dev Team menufront.amxx running
[ 7] Players Menu 1.9.0.5294 AMXX Dev Team plmenu.amxx running
[ 8] Plugin Menu 1.9.0.5294 AMXX Dev Team pluginmenu.amxx running
[ 9] Restrict Weapons 1.9.0.5294 AMXX Dev Team restmenu.amxx running
[ 10] Scrolling Message 1.9.0.5294 AMXX Dev Team scrollmsg.amxx running
[ 11] Admin Votes 1.9.0.5294 AMXX Dev Team adminvote.amxx running
[ 12] CS Misc. Stats 1.9.0.5294 AMXX Dev Team miscstats.amxx running
[ 13] CS Stats Logging 1.9.0.5294 AMXX Dev Team stats_logging.a running
[ 14] Stats Configuration 1.9.0.5294 AMXX Dev Team statscfg.amxx running
[ 15] [Lite CSDM]: Base 1.0 Flymic24 LiteCSDM.amxx running
[ 16] [CSDM]: Guns 0.0.1 Flymic24 CSDM_Gun.amxx running
[ 17] Gore lite 0.1 Vaqtincha gorelite.amxx running
[ 18] Map Manager: Core 3.2.1 Mistrick map_manager_cor running
[ 19] Map Manager: Scheduler 0.2.1 Mistrick map_manager_sch running
[ 20] Map Manager: Rtv 0.1.5 Mistrick map_manager_rtv running
[ 21] Map Manager: Nominatio 0.3.5 Mistrick map_manager_nom running
[ 22] Map Manager: Online so 0.0.4 Mistrick map_manager_onl running
[ 23] Map Manager: Effects 0.1.3 Mistrick map_manager_eff running
[ 24] Map Manager: Informer 0.0.5 Mistrick map_manager_inf running
[ 25] Map Manager: Sounds 0.0.3 Mistrick map_manager_sou running
- Автор плагина
- Vaqtincha
- Версия плагина
- 0.1
- Исходный код
-
// Copyright © 2021 Vaqtincha
/**■■■■■■■■■■■■■■■■■■■■■■■■■■■■ CONFIG START ■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
// #define GIB_CUSTOM_MODEL "models/gibs/hgibs2.mdl"
#define GIB_MAX_COUNT 3 // max gib spawn (def 4)
#define GIB_LIFETIME 5 // kill delay in seconds (def 25)
#define GIB_BLOOD_DECALS 2 // 0 disabled (def 5)
#define BLOOD_STREAM_RED 70
#define BLOOD_STREAM_MAX_SPEED 170
/**■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ CONFIG END ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■*/
#include <amxmodx>
#include <reapi>
#include <fakemeta>
// #include <hamsandwich>
#define PL_VERSION "0.1"
#define IsPlayer(%1) (1 <= %1 <= MaxClients)
enum { GIB_CVAR_DISABLED, GIB_CVAR_ALWAYS, GIB_CVAR_ONLYHS }
new g_iGibMode, bool:g_bHeadShotStream
#if defined GIB_CUSTOM_MODEL
public plugin_precache()
{
precache_model(GIB_CUSTOM_MODEL)
}
#endif
public plugin_init()
{
register_plugin("Gore lite", PL_VERSION, "Vaqtincha")
RegisterHookChain(RG_CBasePlayer_Killed, "CBasePlayer_Killed", .post = false)
RegisterHookChain(RG_SpawnRandomGibs, "CGib_SpawnRandomGibs", .post = false)
RegisterHookChain(RG_CGib_Spawn, "CGib_SpawnP", .post = true)
#if defined GIB_CUSTOM_MODEL
RegisterHookChain(RG_CGib_Spawn, "CGib_Spawn", .post = false)
#endif
bind_pcvar_num(create_cvar("amx_gore_mode", "1", .description = "", .has_min = true, .min_val = 0.0, .has_max = true, .max_val = 2.0), g_iGibMode)
bind_pcvar_num(create_cvar("amx_gore_hs_stream", "1", .description = "", .has_min = true, .min_val = 0.0, .has_max = true, .max_val = 1.0), g_bHeadShotStream)
}
public CBasePlayer_Killed(const pPlayer, const pevAttacker, const iGib)
{
if (!IsPlayer(pevAttacker) || pPlayer == pevAttacker)
return HC_CONTINUE
new bool:isHeadShot = bool:(get_member(pPlayer, m_LastHitGroup) == HITGROUP_HEAD)
if (g_iGibMode == GIB_CVAR_ALWAYS || (g_iGibMode == GIB_CVAR_ONLYHS && isHeadShot))
SetHookChainArg(3, ATYPE_INTEGER, GIB_ALWAYS)
if (g_bHeadShotStream && isHeadShot && get_entvar(pPlayer, var_waterlevel) != 3)
{
new Float:vecOrigin[3], bool:isDucking = bool:(get_entvar(pPlayer, var_flags) & FL_DUCKING)
GetHeadPosition(pPlayer, vecOrigin)
// server_print("%i", floatround(DistanceToCeiling(pPlayer, vecOrigin)))
message_begin_f(MSG_PVS, SVC_TEMPENTITY, vecOrigin)
write_byte(TE_BLOODSTREAM)
write_coord_f(vecOrigin[0])
write_coord_f(vecOrigin[1])
write_coord_f(vecOrigin[2] + (isDucking ? 10.0 : 35.0))
write_coord(random_num(-30, 30)) // x
write_coord(random_num(-30, 30)) // y
write_coord(1000) // z
write_byte(BLOOD_STREAM_RED) // color
write_byte(min(floatround(DistanceToCeiling(pPlayer, vecOrigin)), BLOOD_STREAM_MAX_SPEED))
message_end()
}
return HC_CONTINUE
}
#if defined GIB_CUSTOM_MODEL
public CGib_Spawn(const pGib, const szGibModel[])
{
if (equali(szGibModel, "models/hgibs.mdl"))
{
SetHookChainArg(2, ATYPE_STRING, GIB_CUSTOM_MODEL)
}
}
#endif
public CGib_SpawnP(const pGib, const szGibModel[])
{
if (pGib > 0 && equali(szGibModel, "models/hgibs.mdl"))
{
set_member(pGib, m_Gib_lifeTime, GIB_LIFETIME.0) // def 25.0
set_member(pGib, m_Gib_cBloodDecals, GIB_BLOOD_DECALS) // def 5
}
}
public CGib_SpawnRandomGibs(const pevVictim, const cGibs, const human)
{
if (human)
{
SetHookChainArg(2, ATYPE_INTEGER, GIB_MAX_COUNT) // def 4
}
}
GetHeadPosition(const pPlayer, Float:vecOutput[3])
{
new Float:vecOrigin[3], Float:vecViewOfs[3]
get_entvar(pPlayer, var_origin, vecOrigin)
get_entvar(pPlayer, var_view_ofs, vecViewOfs)
vecViewOfs[0] += 7.0
for (new i = 0; i < 3; i++)
vecOutput[i] = vecOrigin[i] + vecViewOfs[i]
}
Float:DistanceToCeiling(const pPlayer, Float:vecOrigin[3])
{
new Float:vecEnd[3], Float:flFraction
vecEnd[0] = vecOrigin[0]
vecEnd[1] = vecOrigin[1]
vecEnd[2] = vecOrigin[2] + 9999.0
new ptr = create_tr2()
engfunc(EngFunc_TraceHull, vecOrigin, vecEnd, IGNORE_MONSTERS, HULL_HUMAN, pPlayer, ptr)
get_tr2(ptr, TR_flFraction, flFraction)
free_tr2(ptr)
return flFraction * 9999.0
}
в консоли сервера видел Got a velocity too low on gib и у клиента
Помогите пожалуйста пофиксить или найти аналог не хуже
Помогите пожалуйста пофиксить или найти аналог не хуже