Боты не выбирают другие зм классы когда стоит зм класс Headcrab

Статус
В этой теме нельзя размещать новые ответы.
Сообщения
552
Реакции
49
Предупреждения
2
Помог
4 раз(а)
Ошибка
Боты не выбирают другие зм классы когда стоит этот
ОС
Linux
Amx Mod X
AMX Mod X 1.9.0.5249 (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: Jun 19 2019 13:31:53
Built from: https://github.com/alliedmodders/amxmodx/commit/6cecb34
Build ID: 5249:6cecb34
Core mode: JIT+ASM32
Билд
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
ReHLDS version: 3.8.0.709-dev+m
Build date: 08:40:10 Feb 22 2021 (2508)
Build from: https://github.com/dreamstalker/rehlds/commit/dc75d82
ReGamedll
ReGameDLL version: 5.20.0.505-dev
Build date: 11:06:14 Apr 17 2021
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/e86284b
Версия Metamod
Metamod v1.21p37  2013/05/30 (5:13)
by Will Day
http://www.metamod.org/
Patch: Metamod-P (mm-p) v37
by Jussi Kivilinna
http://metamod-p.sourceforge.net/
compiled: May 30 2013, 11:41:16 EET (optimized)
Список метамодулей
Currently loaded plugins:
description stat pend file vers src load unlod
[ 1] SafeNameAndChat RUN - SafeNameAndChat. v1.1 ini ANY ANY
[ 2] Reunion RUN - reunion_mm_i386. v0.1.0.9 ini Start Never
[ 3] ReAuthCheck RUN - reauthcheck_mm_i v0.1.6 ini Start Never
[ 4] VoiceTranscoder RUN - VoiceTranscoder. v2017RC4 ini ANY ANY
[ 5] AMX Mod X RUN - amxmodx_mm_i386. v1.9.0.5 ini Start ANY
[ 6] Rechecker RUN - rechecker_mm_i38 v2.5 ini Chlvl ANY
[ 7] WHBlocker RUN - whblocker_mm_i38 v1.5.696 ini Chlvl ANY
[ 8] ReSemiclip RUN - resemiclip_mm_i3 v2.3.9 ini Chlvl ANY
[ 9] Ultimate Unprec RUN - unprecacher_i386 vBeta 2. ini Chlvl Chlvl
[10] CStrike RUN - cstrike_amxx_i38 v1.9.0.5 pl5 ANY ANY
[11] CSX RUN - csx_amxx_i386.so v1.9.0.5 pl5 ANY ANY
[12] Fun RUN - fun_amxx_i386.so v1.9.0.5 pl5 ANY ANY
[13] FakeMeta RUN - fakemeta_amxx_i3 v1.9.0.5 pl5 ANY ANY
[14] Ham Sandwich RUN - hamsandwich_amxx v1.9.0.5 pl5 ANY ANY
[15] GeoIP RUN - geoip_amxx_i386. v1.9.0.5 pl5 ANY ANY
[16] MySQL RUN - mysql_amxx_i386. v1.9.0.5 pl5 ANY ANY
[17] SQLite RUN - sqlite_amxx_i386 v1.9.0.5 pl5 ANY ANY
[18] Engine RUN - engine_amxx_i386 v1.9.0.5 pl5 ANY ANY
[19] ReAPI RUN - reapi_amxx_i386. v5.19.0. pl5 ANY Never
[20] ReAimDetector RUN - reaimdetector_am v0.2.2 pl5 ANY Never
[21] Orpheu RUN - orpheu_amxx_i386 v2.6.3 pl5 ANY ANY
21 plugins, 21 running
Список плагинов
Currently loaded plugins:
name version author file status
[ 1] Map Manager 2.5.60 Mistrick mapmanager.amxx running
[ 2] mute 1.0 Aziz xman2030_mute.a running
[ 3] Admin Base 1.9.0.5249 AMXX Dev Team admin.amxx running
[ 4] Admin Commands 1.9.0.5249 AMXX Dev Team admincmd.amxx running
[ 5] Admin Help 1.9.0.5249 AMXX Dev Team adminhelp.amxx running
[ 6] Slots Reservation 1.9.0.5249 AMXX Dev Team adminslots.amxx running
[ 7] Multi-Lingual System 1.9.0.5249 AMXX Dev Team multilingual.am running
[ 8] Commands Menu 1.9.0.5249 AMXX Dev Team cmdmenu.amxx running
[ 9] Players Menu 1.9.0.5249 AMXX Dev Team plmenu.amxx running
[ 10] Teleport Menu 1.9.0.5249 AMXX Dev Team telemenu.amxx running
[ 11] Maps Menu 1.9.0.5249 AMXX Dev Team mapsmenu.amxx running
[ 12] Plugin Menu 1.9.0.5249 AMXX Dev Team pluginmenu.amxx running
[ 13] Admin Chat 1.9.0.5249 AMXX Dev Team adminchat.amxx running
[ 14] Anti Flood 1.9.0.5249 AMXX Dev Team antiflood.amxx running
[ 15] Admin Votes 1.9.0.5249 AMXX Dev Team adminvote.amxx running
[ 16] Pause Plugins 1.9.0.5249 AMXX Dev Team pausecfg.amxx running
[ 17] Stats Configuration 1.9.0.5249 AMXX Dev Team statscfg.amxx running
[ 18] Typoe-Myaso2 0.1 fl0wer myasko.amxx running
[ 19] Typoe-Myaso 0.1 fl0wer xman2030_myaso. running
[ 20] Ultimate Gore 1.6 JTP10181 amx_gore_ultima running
[ 21] TimeLeft 1.9.0.5249 AMXX Dev Team timeleft.amxx running
[ 22] Advanced Weapon Tracer 1.3.0 ConnorMcLeod advanced_weapon running
[ 23] NextMap 1.9.0.5249 AMXX Dev Team nextmap.amxx stopped
[ 24] POD-Bot Menu 1.3 g4s|figurE.09 amxx_podbotmenu running
[ 25] Game Namer 1.1 NeuroToxin gamenamechanger running
[ 26] Precache Management 1.0.0 ConnorMcLeod precache_manage stopped
[ 27] Advert Messages 1.2 neygomon adverts.amxx running
[ 28] Fix Remove Entity When zm zm zp_entityfix.am paused
[ 29] ScreenMaker 1.1 neygomon screen_maker.am running
[ 30] fb_forwards 0.1.8 Mazdan & Neugomo fb_forwards.amx running
[ 31] FreshBans 1.4.0b kanagava fresh_bans_1.4. running
[ 32] Menus Front-End 1.5 neugomon menufront_end.a running
[ 33] AMXX Gag 1.4.9 xPaw & Exolent amx_gag.amxx running
[ 34] motd 1.1 L@NPOC@N motd.amxx running
[ 35] unknown unknown unknown warnings.amxx bad load
[ 36] Anti Reklama 1.1 MarcaD anti_reklama.am running
[ 37] unknown unknown unknown health_nade.amx bad load
[ 38] SpecList 1.2a FatalisDK speclist_rus.am running
[ 39] DemoRecoder 1.2 neygomon demorecoder.amx running
[ 40] AFK Manager 1.2 Xramer afk_manager.amx paused
[ 41] Chat Logger 2.1a Jim chat_logger.amx running
[ 42] Zombie Escape 1337 xman2030 xman2030_ze_mod debug
[ 43] [ZP]Level System 6.0 Dambas zp_level_system running
[ 44] Camera View 0.0.1 ConnorMcLeod talrasha_camera debug
[ 45] [CSO] Class String Fin 2.0 BLACK_ROSE zp_class_finger running
[ 46] Undertaker 1.0 DSHGFHDS zp_undertaker.a debug
[ 47] NST Zombie Class Heal 1.0 NST NST_ZbClass_Hea running
[ 48] [ZP] Drowned Zombie 1.2 tuty/CHyC zp_drowned_zomb running
[ 49] Houndeye Zombie 0.4 Morte zp_zclass_hound running
[ 50] xman2030_sirena CS-FADE.RU CS-FADE.RU xman2030_sirena running
[ 51] xman2030_psyho CS-FADE.RU CS-FADE.RU xman2030_psyho. running
[ 52] xman2030_hunter CS-FADE.RU CS-FADE.RU xman2030_hunter running
[ 53] xman2030_class_bansha CS-FADE.RU CS-FADE.RU xman2030_class_ running
[ 54] [ZP] Headcrab zombie 1.2 aaarnas zp_class_headcr running
[ 55] ZM VIP 1.7.2 aaarnas xman2030_vip.am running
[ 56] [FS] Chat 1.1 Inf xman2030_chat.a running
[ 57] [ZP] Addon: Random Sou 1.0 Universe xman2030_random running
[ 58] Heli Button Info 1.0 Shanks' xman2030_showes running
[ 59] [ZP] EASY SAVE AMMO 1.2 CS-FADE.RU xman2030_ammo_a running
[ 60] [ZP] Addon: Win Models 0.1 CS-FADE.RU xman2030_ze_amo debug
[ 61] [ZP Addon] Knives 0.1 ONYX xman2030_knifes running
[ 62] [ZP] Admin Lvl Menu 1.0 Dambas zp_level_admin_ running
[ 63] ZE HUD Final CS-FADE.RU xman2030_ze_hud running
[ 64] NadeModes 11.2 Nomexous & OT xman2030_nademo running
[ 65] [ZP] ZP++ Ice Cube 1.0 DareDevil (Gyiov xman2030_ice_cu running
[ 66] Weapon Model + Sound R 1.2 GHW_Chronic GHW_Weapon_Repl running
[ 67] xman2030_damager CS-FADE.RU CS-FADE.RU xman2030_damage running
[ 68] ZP: Zombie Health 1.0 Yakess yakess_health.a debug
[ 69] AMMO ON THE GROUND 1.3 Sanya@ (Skype: a ammo_on_the_gro running
[ 70] Countdown 1.7.3 T a l R a s h a gameplay_countd running
[ 71] Zp info Big 0.1 TalRasha zp_info_big.amx running
[ 72] [ZP] Addon: Ammo Box 1.1 | 2019 xUnicorn zp_addon_ammobo running
[ 73] Addon Gundrop effect 0.1 PaXaN-ZOMBIE efGundrop.amxx running
[ 74] ammo donate/dhud 1.5 user/zobie-dead zp_ammo_donate. running
[ 75] Team Locker 1.5 Bmann_420 teamlocker.amxx running
[ 76] xman2030_human_revolut CS-FADE.RU CS-FADE.RU xman2030_human_ running
[ 77] xman2030_evolution_bon CS-FADE.RU CS-FADE.RU xman2030_evolut paused
[ 78] xman2030_cons CS-FADE.RU CS-FADE.RU xman2030_cons.a running
[ 79] [ZP] Addon: Evolution 0.0.7 https://vk.com/i xman2030_evolut running
[ 80] xman2030_aura CS-FADE.RU CS-FADE.RU xman2030_aura.a running
[ 81] xman2030_blood CS-FADE.RU CS-FADE.RU xman2030_blood. running
[ 82] ZP Reloading! Shout 0.0.1 xPaw,wbyokomo reloading_weapo running
[ 83] [ZP] Addon: Weather 0.1 | 30.0 inf / xman2030 xman2030_weathe running
[ 84] unknown unknown unknown xman2030_leader running
[ 85] [ZP] Shoot Light 0.1 | 11.0 inf xman2030_shot_l running
[ 86] [ZP] Round ended effec 1.0 *GEORGE* xman2030_ended_ running
[ 87] [ZP] Round Draw Blast 1.0 MeRcyLeZZ xman2030_round_ running
[ 88] Breakable Hint 1.1 Raheem hint.amxx running
[ 89] [ZP]Present 1.0 CrAsH xman2030_presen running
[ 90] Bot Features 0.9 Vaqtincha BotFeatures.amx running
[ 91] ZP Round Results 1.0 MonsteR zp_round_result running
[ 92] Menu_Priv 1.0 CS-FADE.RU xman2030_menu_p running
[ 93] [ZP] VIP menu 1.2 CS-FADE.RU xman2030_vip_me running
[ 94] [ZP] VIP menu 1.2 CS-FADE.RU xman2030_deluxe running
[ 95] [ZP] VIP menu 1.2 CS-FADE.RU xman2030_creato debug
[ 96] ammo paki 4.0 Bagamut xman2030_ammo_m running
[ 97] unknown unknown unknown xman2030_lk.amx running
[ 98] unknown unknown unknown xman2030_jumpbo bad load
[ 99] [ZP] Extra Item Speed 1.2 MeRcyLeZZ zp_extra_speed_ running
[100] unknown unknown unknown xman2030_buy_hp running
[101] Janus 1 1.0 m4m3ts xman2030_janus1 running
[102] [CSO LIKE] Extra: Gull 1.0 Lakerovich xman2030_bloodr running
[103] [Zombie Plague] Weapon 0.7 PlaneShfit1231 / zp_extra_rpg7.a running
[104] [ZP] Extra: CSO Weapon 1.0 KORD_12.7 xman2030_m3.amx running
[105] [ZP] Weapon: M32 1.0 PbI)I(Uu' / Batc xman2030_m32.am running
[106] [ZP] Extra: CSO ClayMo 1.0 TemplateAuthor:K xman2030_Claymo running
[107] [ZP] Air Strike 1.0 Dorus xman2030_air_st running
[108] [CSO LIKE] LaserMG 1.1 Lakerovich cso_weapon_lase running
[109] Janus-11 1.0 m4m3ts zp_extra_janus1 running
[110] [ZP] Extra: HK416 1.0 Crock / =) (Popr yt_extra_janus1 running
[111] Rail Cannon 1.0 m4m3ts zp_extra_railca running
[112] [ZP] Weapon: Shining H 1.0 xUnicorn (t3rkec zp_weapon_magic running
[113] ZP Extraitem: FNP-45 1.0 Base: Batcon; Re zp_extraitems_f running
[114] [ZP] Weapon: JANUS-7 1.0 xUnicorn (t3rkec zp_weapon_janus running
[115] Extraitems: Water Pist 1.0 Base: Batcon & x zp_extraitems_w running
[116] [ZP] Weapon: Crossbow 1.0 xUnicorn (t3rkec zp_weapon_cross running
[117] [ZMO] Extra-Item: Skul 1.0 Mr.Kot3 zmo_weapon_skul running
[118] [ZP] Weapon: DInfinity 1.0 -- zp_weapon_duali running
[119] [ZP] Extra: m134ex 1.0 LARS-DAY[BR]EAKE zp_weapon_m134e running
[120] [ZP] Weapon: Ripper (P 1.0 xUnicorn (t3rkec zp_weapon_chain running
[121] Extraitems: Oz Lion Pi 1.0 Base: Batcon & x zp_extraitems_o running
[122] [ZP] Extra item: Aeoli 1.0 m4m3ts zp_extra_aeolis running
[123] [ZP] Weapon: Salamande 1.0 xUnicorn (t3rkec zp_weapon_flame running
[124] [ZP] Extra: Squeak Gre 1.0.6-wwm Arkshine zp_extra_squeak running
[125] [ZE] Addon: XMAS 2040 0.1 | 30.0 Reega! inf2030_ze_lead running
[126] [ZM] Choose Weapon 1.6.1 t3rkecorejz | Un xman2030_menu_w running
[127] HUINYA HUINYA HUINYA xman2030_def_we running
[128] [ZP] Extra: Anaconda 1.0 Crock / =) (Popr xman2030_anacon running
[129] [ZP] Extra: CSO Weapon 1.0 KORD_12.7 xman2030_Vulcan running
[130] [ZP] Extra: CSO Weapon 1.0 KORD_12.7 xman2030_Sapien running
[131] [ZP] Extra: M1887 1.0 Crock / =) (Popr xman2030_m1887. running
[132] [ZMO]Weapon: Cyclone 1.0 Base: Batcon; Re xman2030_cyclon running
[133] [ZP] Weapon: Shining H 1.0 xUnicorn (t3rkec xman2030_magicm running
[134] [CSO] Ethereal 0.0.1 Shurik07 xman2030_ethere running
( 35) Load fails: Invalid Plugin (plugin "warnings.amxx")
( 37) Load fails: Module/Library "curl" required for plugin. Check modules.ini.
( 98) Load fails: Plugin uses an unknown function (name "BlotterRemoveBomb") - check your modules.ini.
134 plugins, 126 running
Автор плагина
aaarnas
Версия плагина
1.2
Исходный код
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#include <fun>
#include <zombieplague>

#define VERSION "1.2"

// We defined the sounds

#define ZM_PAIN 2
new pain_zm[ZM_PAIN][] = {"headcrab/hc_pain1.wav", "headcrab/hc_pain3.wav" }

#define ZM_DEATH 1
new death_zm[ZM_DEATH][] = {"headcrab/hc_die2.wav" }

#define ZM_IDLE 1
new idle_zm[ZM_IDLE][] = {"headcrab/hc_idle3.wav" }

new const zclass_name[] = { "Headcrab" }
new const zclass_info[] = { "Small and fast" }
new const zclass_model[] = { "headcrabme_t" }
new const zclass_clawmodel[] = { "headcrab_t_knife.mdl" }
const zclass_health = 410
const zclass_speed = 700
const Float:zclass_gravity = 0.65
const Float:zclass_knockback = 2.5

new g_zclass_crab
new g_headcrab[33][2]

public plugin_precache()
{
g_zclass_crab = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)

new i

for (i = 0; i < ZM_DEATH; i++)
precache_sound(death_zm[i])

for (i = 0; i < ZM_IDLE; i++)
precache_sound(idle_zm[i])

for (i = 0; i < ZM_PAIN; i++)
precache_sound(pain_zm[i])
}
public plugin_init()
{
register_plugin("[ZP] Headcrab zombie", VERSION, "aaarnas")
register_cvar("zp_headcrab_version", VERSION, FCVAR_SERVER|FCVAR_SPONLY)
set_cvar_string("zp_headcrab_version", VERSION)
RegisterHam(Ham_Spawn, "player", "FwdHamPlayerSpawnPost")
RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
register_forward( FM_EmitSound, "fw_EmitSound" )
register_event("Damage","event_pain_zombie","be","2!0","3=0")
}
public client_connect(id)
{
g_headcrab[id][0] = false
g_headcrab[id][1] = false
}
public client_disconnected(id)
{
g_headcrab[id][0] = false
g_headcrab[id][1] = false
}
public FwdHamPlayerSpawnPost(id)
{
if(g_headcrab[id][0]) {
g_headcrab[id][0] = false
set_user_hitzones(0, id, 255)
}
if(g_headcrab[id][1]) {
set_user_hitzones(0, id, 255)
g_headcrab[id][1] = false
}
}
public fw_PlayerKilled(id)
{
if(g_headcrab[id][0]) {
g_headcrab[id][0] = false
set_user_hitzones(0, id, 255)
client_cmd(id, "cl_forwardspeed 400; cl_backspeed 400; cl_sidespeed 400")
}
}

public zp_user_infect_attempt(id) {

if(is_user_bot(id))
zp_set_user_zombie_class(id, 0)
}
public zp_user_infected_post(id, infector, nemesis)
{
if(zp_get_user_zombie_class(id) == g_zclass_crab && !nemesis) {
client_cmd(id, "speak sound/headcrab/hc_headbite.wav")
g_headcrab[id][0] = true
g_headcrab[id][1] = true
client_cmd(id, "cl_forwardspeed 2000; cl_backspeed 2000; cl_sidespeed 2000")
set_user_hitzones(0, id, 200)
set_user_footsteps(id, 1)
zm_idle(id)
}
else if(zp_get_user_zombie_class(id) == g_zclass_crab) {
g_headcrab[id][0] = false
set_user_hitzones(0, id, 255)
}
else g_headcrab[id][0] = false
}
public zp_user_humanized_post(id)
{
g_headcrab[id][0] = false
set_user_hitzones(0, id, 255)
client_cmd(id, "cl_forwardspeed 400; cl_backspeed 400; cl_sidespeed 400")
}

public fw_EmitSound(id, channel, sample[])
{

if (!is_user_connected(id) || !zp_get_user_zombie(id) || zp_get_user_zombie_class(id) != g_zclass_crab && !zp_get_user_nemesis( id ))
return FMRES_IGNORED;

if(sample[0] == 'p' && sample[1] == 'l'&& sample[7] == 'd' && !zp_get_user_nemesis( id ))
{
emit_sound(id, CHAN_VOICE, death_zm[random_num(0, ZM_DEATH - 1)], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
return FMRES_SUPERCEDE
}
return FMRES_IGNORED;
}

public event_pain_zombie(id)
{

if (!is_user_connected(id) || !zp_get_user_zombie(id) || zp_get_user_zombie_class(id) != g_zclass_crab)
return PLUGIN_HANDLED

if(is_user_connected(id))
{

if (zp_get_user_zombie(id))
{
if (zp_get_user_zombie_class(id) == g_zclass_crab && !zp_get_user_nemesis( id ))
{
emit_sound(id, CHAN_VOICE, pain_zm[random_num(0, ZM_PAIN - 1)], 1.0, ATTN_NORM, 0, PITCH_NORM)
}
}
}
return PLUGIN_HANDLED
}

public zm_idle(id)
{
if (!is_user_connected(id) || !zp_get_user_zombie(id) || zp_get_user_zombie_class(id) != g_zclass_crab && !zp_get_user_nemesis( id ))
return PLUGIN_HANDLED


if (random_num(1, 35) == 5 && zp_get_user_zombie_class(id) == g_zclass_crab && !zp_get_user_nemesis( id )) {
if(is_user_alive(id) && zp_get_user_zombie(id))
emit_sound(id, CHAN_VOICE, idle_zm[random_num(0, ZM_IDLE -1)], 1.0, ATTN_NORM, 0, PITCH_NORM)
}
if(zp_get_user_zombie_class(id) == g_zclass_crab)
set_task(1.0,"zm_idle",id)

return PLUGIN_HANDLED
}
Всем привет, возникла такая проблема, что когда этот зомби класс стоит на сервер (плагин) то боты ен выбирают никакой другой класс. А когда не стоит он, то они берут его. Кто нибудь знает как это пофиксить?
 
В этой теме было размещено решение! Перейти к решению.
Сообщения
3,593
Реакции
1,576
Помог
141 раз(а)
Попробуй убрать этот код:
Код:
public zp_user_infect_attempt(id) {
   
    if(is_user_bot(id))
        zp_set_user_zombie_class(id, 0)
}
В Зм не очень разбираюсь, но здесь идет установка класса..
 
Статус
В этой теме нельзя размещать новые ответы.

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

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