- Ошибка
-
L 11/05/2023 - 16:45:27: [AMXX] Displaying debug trace (plugin "yt_class_revenant_ice_0.amxx", version "0.1")
L 11/05/2023 - 16:45:27: [AMXX] Run time error 10: native error (native "entity_set_float")
L 11/05/2023 - 16:45:27: [AMXX] [0] yt_class_revenant_ice_0.sma::ball_think (line 223)
- ОС
- Linux
- Amx Mod X
-
AMX Mod X 1.9.0.5262 (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: Oct 23 2019 07:26:46
Built from: https://github.com/alliedmodders/amxmodx/commit/be3f2f5
Build ID: 5262:be3f2f5
Core mode: JIT+ASM32
- Билд
-
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 21:47:32 Aug 8 2018 (7882)
- ReGamedll
-
ReGameDLL version: 5.21.0.556-dev
Build date: 08:43:58 Jul 22 2022
Build from: https://github.com/s1lentq/ReGameDLL_CS/commit/1081301
- Версия 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)
- Список метамодулей
-
[ 1] SafeNameAndChat RUN - SafeNameAndChat. v1.1 ini ANY ANY
[ 2] dproto_EF RUN - dproto_i386.so v0.9.391 ini Start Never
[ 3] ProcessCmds RUN - processcmds_mm_i v1.2.0 ini Start Never
[ 4] AMX Mod X RUN - amxmodx_mm_i386. v1.9.0.5 ini Start ANY
[ 5] Semiclip RUN - semiclip_mm_i386 v2.2+MA ini ANY ANY
[ 6] YaPB RUN - yapb.so v4.4.913 ini Chlvl ANY
[ 7] VoiceTranscoder RUN - VoiceTranscoder. v2020MA2 ini ANY ANY
[ 8] MySQL RUN - mysql_amxx_i386. v1.9.0.5 pl4 ANY ANY
[ 9] FakeMeta RUN - fakemeta_amxx_i3 v1.9.0.5 pl4 ANY ANY
[10] CSX RUN - csx_amxx_i386.so v1.9.0.5 pl4 ANY ANY
[11] Ham Sandwich RUN - hamsandwich_amxx v1.9.0.5 pl4 ANY ANY
[12] GeoIP RUN - geoip_amxx_i386. v1.9.0.5 pl4 ANY ANY
[13] gRIP RUN - grip_amxx_i386.s v0.1.5 B pl4 ANY ANY
[14] ReAPI RUN - reapi_amxx_i386. v5.22.0. pl4 ANY Never
[15] Engine RUN - engine_amxx_i386 v1.9.0.5 pl4 ANY ANY
[16] Fun RUN - fun_amxx_i386.so v1.9.0.5 pl4 ANY ANY
[17] CStrike RUN - cstrike_amxx_i38 v1.9.0.5 pl4 ANY ANY
[18] SQLite RUN - sqlite_amxx_i386 v1.9.0.5 pl4 ANY ANY
- Список плагинов
-
[ 1] AMXBans: Core 1.9.0 MA: 1.6.14 Larte Team amxbans_core.am running
[ 2] AMXBans: Main 1.9.0 MA: 1.6.14 Larte Team amxbans_main.am running
[ 3] Admin Commands 1.9.0.5262 AMXX Dev Team admincmd.amxx running
[ 4] Slots Reservation 1.9.0.5262 AMXX Dev Team adminslots.amxx running
[ 5] Multi-Lingual System 1.9.0.5262 AMXX Dev Team multilingual.am running
[ 6] [Customizable] AmxModM 0.0.5 Albertio amxmodmenu.amxx running
[ 7] Commands Menu 1.9.0.5262 AMXX Dev Team cmdmenu.amxx running
[ 8] Players Menu 1.9.0.5262 AMXX Dev Team plmenu.amxx running
[ 9] Teleport Menu 1.9.0.5262 AMXX Dev Team telemenu.amxx running
[ 10] Map Manager 2.5.61 Mistrick mapmanager.amxx error
[ 11] Maps Menu 1.9.0.5262 AMXX Dev Team mapsmenu.amxx running
[ 12] Plugin Menu 1.9.0.5262 AMXX Dev Team pluginmenu.amxx running
[ 13] Admin Chat 1.9.0.5262 AMXX Dev Team adminchat.amxx running
[ 14] Scrolling Message 1.9.0.5262 AMXX Dev Team scrollmsg.amxx running
[ 15] Info. Messages 1.9.0.5262 AMXX Dev Team imessage.amxx running
[ 16] Admin Votes 1.9.0.5262 AMXX Dev Team adminvote.amxx running
[ 17] Pause Plugins 1.9.0.5262 AMXX Dev Team pausecfg.amxx running
[ 18] Stats Configuration 1.9.0.5262 AMXX Dev Team statscfg.amxx running
[ 19] [ZP] Stats 1.0 =) zp_sayme.amxx running
[ 20] StatsX 1.9.0.5262 AMXX Dev Team statsx.amxx running
[ 21] [BG] Provider: GeoIP 0.2 mx?! bg_provider_geo running
[ 22] [BG] Provider: ip-api. 0.1 mx?! bg_provider_ip- running
[ 23] Bypass Guard 1.0.1 mx?! bypass_guard.am running
[ 24] [GM] AntiAdv 0.0.2 [GM] NWC gm_antiadv.amxx running
[ 25] Reklama 20.05.2020 mx?! reklama.amxx running
[ 26] [ZP] Addon: Display th 0.1.6 meTaLiCroSS round.amxx running
[ 27] PLUGIN VERSION AUTHOR zp_lighting_vot running
[ 28] Yet Another Voteban 1.8 AndrewZ/voed yet_another_vot running
[ 29] AMXBans: Screens 1.9.0 MA: 1.6.14 Larte Team amxbans_ssban.a running
[ 30] ZM VIP 1.9.1 BETA aaarnas zm_vip.amxx running
[ 31] ChatAdditions: Core v1.9.1 Sergey Shorokhov ChatAdditions_C debug
[ 32] ChatAdditions: SQLite v1.9.1 Sergey Shorokhov CA_Storage_SQLi debug
[ 33] CA: Anti Flood v1.9.1 Nordic Warrior CA_AntiFlood.am debug
[ 34] CA: Mute v1.9.1 Sergey Shorokhov CA_Mute.amxx debug
[ 35] CA: VoteGAG 1.0.0-alph Sergey Shorokhov CA_Addon_VoteGa debug
[ 36] CA Addon: Request UnGA v1.9.1 steelzzz CA_Addon_Reques debug
[ 37] CA: Gag v1.9.1 Sergey Shorokhov CA_Gag.amxx debug
[ 38] [ZP] Core/Engine 5.0.8 ZP Dev Team zp50_core.amxx running
[ 39] [AMXX] Settings API 1.0 MeRcyLeZZ amx_settings_ap running
[ 40] [CS] Player Models API 1.2 WiLS cs_player_model running
[ 41] [CS] Teams API 1.2 WiLS cs_teams_api.am running
[ 42] [CS] MaxSpeed API 1.0 WiLS cs_maxspeed_api running
[ 43] [CS] Weapon Models API 1.1 WiLS cs_weap_models_ running
[ 44] [CS] Weapons Restrict 0.4 WiLS cs_weap_restric running
[ 45] [CS] Ham Hooks for Bot 1.0 WiLS cs_ham_bots_api running
[ 46] [ZP] Class: Zombie 5.0.8 ZP Dev Team zp50_class_zomb running
[ 47] [ZP] Class: Human 5.0.8 ZP Dev Team zp50_class_huma running
[ 48] [ZP] Class: Nemesis 5.0.8 ZP Dev Team zp50_class_neme running
[ 49] [ZP] Class: Survivor 5.0.8 ZP Dev Team zp50_class_surv running
[ 50] [ZP] Class: Zombie: Cl 5.0.8 ZP Dev Team zp50_class_zomb running
[ 51] [CSO Like] ZClass: Hea 0.2 | 03.0 inf (nimroK) cso_zclass_heav running
[ 52] [ZP 4.3] ZClass: Regen 1.1 ImmortalAmxx amxxclassregene running
[ 53] [ZP] Zombie Class: Thi 1.1 BaRSiK zp_zclass_thief running
[ 54] [ZP] Zombie Class: Cer 0.1 DJHD! zp_zclass_cerbe running
[ 55] [ZP] Zombie Class: KF 0.2 meTaLiCroSS zp_zcls_siren1. running
[ 56] [ZP] SMOKER ZOMBIE 1.0 Mr.Best zp_class_smoker running
[ 57] [ZP] Class: x-Voodoo 2019 | 1.0 xUnicorn (t3rkec zp_zclass_voodo running
[ 58] [ZP | AMXX] Sting Fing 0/0/2 m0rt3m zp_class_sting_ running
[ 59] [ZP] Wallclimb 1.0 WallClimb by Pyt zp_class_climb. running
[ 60] [ZP] Class : Leap Zomb 1.4.2 Fry! zp_zlongjump.am running
[ 61] [ZP] Zombie Class: Par 0.1 =), LARS-BLOODLI yt_class_revena debug
[ 62] [ZP] Respawn Zombie Cl 5.0 CHyC/PomanoB zp_zombie_respa running
[ 63] [ZP] Zombie Class: Sup 1.1 Re.Act!ve zp_zclass_suppl running
[ 64] [ZP] Invisible Zombie 1.0 Fry! zp_class_invisi running
[ 65] [ZP Class] Flying Zomb 0.1 ONYX zp_class_flying running
[ 66] [ZP] Class: Human: Cla 5.0.8 ZP Dev Team zp50_class_huma running
[ 67] [ZP] Human Armor 5.0.8 ZP Dev Team zp50_human_armo running
[ 68] [ZP] Game Modes Manage 5.0.8 ZP Dev Team zp50_gamemodes. running
[ 69] [ZP] Game Mode: Infect 5.0.8 ZP Dev Team zp50_gamemode_i running
[ 70] [ZP] Game Mode: Multip 5.0.8 ZP Dev Team zp50_gamemode_m paused
[ 71] [ZP] Game Mode: Swarm 5.0.8 ZP Dev Team zp50_gamemode_s paused
[ 72] [ZP] Game Mode: Nemesi 5.0.8 ZP Dev Team zp50_gamemode_n paused
[ 73] [ZP] Game Mode: Surviv 5.0.8 ZP Dev Team zp50_gamemode_s paused
[ 74] [ZP] Game Mode: Plague 5.0.8 ZP Dev Team zp50_gamemode_p paused
[ 75] [ZP] Game Mode: Armage 5.0.8 ZP Dev Team zp50_gamemode_a paused
[ 76] [ZP] Items Manager 5.0.8 ZP Dev Team zp50_items.amxx running
[ 77] [ZP] Items Manager: Am 5.0.8 ZP Dev Team zp50_items_ammo running
[ 78] [ZP] Item: Weapons 5.0.8 ZP Dev Team zp50_item_weapo running
[ 79] [ZP] Item: Nightvision 5.0.8 ZP Dev Team zp50_item_night running
[ 80] [ZP] Item: Antidote 5.0.8 ZP Dev Team zp50_item_antid running
[ 81] [ZP] Item: Zombie Madn 5.0.8 ZP Dev Team zp50_item_zombi running
[ 82] [ZP] Item: Infection B 5.0.8 ZP Dev Team zp50_item_infec running
[ 83] [ZP] Extra Item: Strip 1.6 Hezerf zp_extra_strip. running
[ 84] [ZP] Admin Commands 5.0.8 ZP Dev Team zp50_admin_comm running
[ 85] [ZP] Admin Menus 5.0.8 ZP Dev Team zp50_admin_menu running
[ 86] [ZP] Admin Models 5.0.8 ZP Dev Team zp50_admin_mode running
[ 87] [ZP] Custom Buy Menus 5.0.8 ZP Dev Team zp50_buy_menus. running
[ 88] [ZP] Buyzones 5.0.8 ZP Dev Team zp50_buy_zones. running
[ 89] [ZP] Rewards: Ammo Pac 5.0.8 ZP Dev Team zp50_rewards_am running
[ 90] [ZP] Rewards: Frags & 5.0.8 ZP Dev Team zp50_rewards_fr running
[ 91] [ZP] Deathmatch 5.0.8 ZP Dev Team zp50_deathmatch running
[ 92] [ZP] Random Spawning 5.0.8 ZP Dev Team zp50_random_spa running
[ 93] [ZP] Zombie Features 5.0.8 ZP Dev Team zp50_zombie_fea running
[ 94] [ZP] Zombie Sounds 5.0.8 ZP Dev Team zp50_zombie_sou running
[ 95] [ZP] Zombie Damage 5.0.8 ZP Dev Team zp50_zombie_dam running
[ 96] [ZP] Human Unlimited A 5.0.8 ZP Dev Team zp50_human_ammo running
[ 97] [ZP] Flashlight 5.0.8 ZP Dev Team zp50_flashlight running
[ 98] [ZP] Nightvision 5.0.8 ZP Dev Team zp50_nightvisio running
[ 99] [ZP] Leap/Longjump 5.0.8 ZP Dev Team zp50_leap.amxx running
[100] [ZP] Pain Shock Free 5.0.8 ZP Dev Team zp50_painshockf running
[101] [ZP] Knockback 5.0.8 ZP Dev Team zp50_knockback. running
[102] [ZP] Weapon Drop/Strip 5.0.8 ZP Dev Team zp50_weapon_dro running
[103] [ZP] Effects: Infect 5.0.8 ZP Dev Team zp50_effects_in running
[104] [ZP] Effects: Cure 5.0.8 ZP Dev Team zp50_effects_cu running
[105] [ZP] Effects: Lighting 5.0.8 ZP Dev Team zp50_effects_li running
[106] [ZP] Ambience Effects 5.0.8 ZP Dev Team zp50_ambience_e running
[107] [ZP] Ambience Sonds 5.0.8 ZP Dev Team zp50_ambience_s running
[108] [ZP] Main Menu 5.0.8 ZP Dev Team zp50_main_menu. running
[109] [ZP] Objective Remover 5.0.8 ZP Dev Team zp50_objective_ running
[110] [ZP] Gameplay Fixes 5.0.8 ZP Dev Team zp50_gameplay_f running
[111] [ZP] Team Scoring 5.0.8 ZP Dev Team zp50_team_scori running
[112] [ZP] HUD Information 5.0.8 ZP Dev Team zp50_hud_info.a running
[113] [ZP] Ammo Packs 5.0.8 ZP Dev Team zp50_ammopacks. running
[114] [ZP] Grenade: Fire 5.0.8 ZP Dev Team zp50_grenade_fi running
[115] [ZP] Grenade: Frost 5.0.8 ZP Dev Team zp50_grenade_fr running
[116] [ZP] Grenade: Flare 5.0.8 ZP Dev Team zp50_grenade_fl running
[117] [ZP] ZP 4.3 Subplugin 5.0.8 ZP Dev Team zp50_zp43_compa running
[118] [ZP] LaserMine 2.8.1 SandStriker / Sh zp_lasermine_28 running
[119] ZP: Show Victim HP On 1.0 <VeCo> ZP_zmHp.amxx running
[120] Amx Dodge 0.1.0 PomanoB zp_dodge_human. running
[121] [ZP] Extra Item: Multi 1.0 pharse zp_extra_multij running
[122] [ZP] Addon: Extended G 2.0 [ru]In1ernal Err zp_ammo_ex.amxx running
[123] [ZP43] Extra item: Gas 3.0 H.RED.ZONE zp43_gas_mask.a running
[124] [ZP] Item: Antidote Bo 5.0.8 ZP Dev Team zp50_item_antid running
[125] Player Name 0.9.2 default zp_player_name. running
[126] Perfect Camera 0.2.5 Nordic Warrior PerfectCamera.a running
[127] NadeModes 11.2 Nomexous & OT nademodes.amxx running
[128] [ZP] WPN Minigun 1.65 CLLlAgOB zp_extra_minigu running
[129] [ZP] Extra Item: Gauss 0.6 meTaLiCroSS zp_extra_gauss. running
[130] [ZP] Extra Drag 0.1 4eRT zp_extra_drag_a running
[131] [ZP] Extra Item: Knife 1.2 pharse & sexy2x7 zp_extra_knife_ running
[132] ZP AP Store 0.0.1 wbyokomo zp_ap_store.amx running
[133] [ZP] Donate Plugin 1.0 @bdul! zp_donate_ammo_ running
[134] ZP Countdown Vox 0.0.1 wbyokomo zp_vox_countdow running
[135] [ZP] Buy Health Points 1.0 T[h]E Dis[as]teR zp_buyhp_limit. running
[136] [ZP] Extra: Anti-Infec 1.0 MeRcyLeZZ zp_buyArmorLimi running
[137] [ZP] Extra: Unlimited 1.0 MeRcyLeZZ zp_extra_unlimi running
( 10) Error: Nothing loaded from file.
137 plugins, 130 running
- Автор плагина
- =), LARS-BLOODLIKER
- Версия плагина
- 0.1
- Исходный код
-
#include <amxmodx>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#include <zombieplague>
#include <cstrike>
#include <xs>
new const ball_name[] = "paralize_ball"
new const ball_model[] = "models/zombie_plague/w_hiddentail2.mdl"
new const ball_soundtouch[] = { "warcraft3/frostnova.wav" }
new const zclass_name[] = { "Ревенант ICE" } // name
new const zclass_info[] = { "Замораживает" } // description
new const zclass_model[] = { "zp_frost_zm" } // model
new const zclass_clawmodel[] = { "v_knife_zombie.mdl" } // claw model
const zclass_health = 3000 // health
const zclass_speed = 245 // speed
const Float:zclass_gravity = 0.7 // gravity
const Float:zclass_knockback = 1.0 // knockback
#define OFFSET_MODELINDEX 491
#define OFFSET_LINUX 5
new index, defaultindex
new g_zclassparalize
new cvar_paralizedelay , cvar_paralizevelocity , cvar_paralizeballhealth , cvar_paralizeballparalizetime
new sTrail , g_touchs[512] , g_can[33] , g_paralizen[33]
public plugin_init()
{
register_plugin("[ZP] Zombie Class: Paralize Zombie", "0.1", "=), LARS-BLOODLIKER")
cvar_paralizedelay = register_cvar("zp_classparalize_delay","35")
cvar_paralizevelocity = register_cvar("zp_classparalizeball_velocity","600")
cvar_paralizeballhealth = register_cvar("zp_classparalizeball_health","100")
cvar_paralizeballparalizetime = register_cvar ( "zp_classparalizeball_paralizetime", "5.0" )
register_touch(ball_name, "worldspawn", "touchWorld")
register_touch(ball_name, "func_wall", "touchWorld")
register_touch(ball_name, "func_door", "touchWorld")
register_touch(ball_name, "func_door_rotating", "touchWorld")
register_touch(ball_name, "func_wall_toggle", "touchWorld")
register_touch(ball_name, "func_breakable", "touchWorld")
register_touch(ball_name, "player", "touchPlayer")
register_think(ball_name,"ball_think")
register_clcmd("drop","paralize_cmd")
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
register_forward(FM_PlayerPreThink, "fw_PreThink")
RegisterHam(Ham_Killed, "player", "fw_PlayerKilled")
RegisterHam(Ham_Player_Duck, "player", "Player_Duck", 1)
}
public plugin_precache()
{
precache_model(ball_model)
sTrail = precache_model("sprites/laserbeam.spr")
g_zclassparalize = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
index = precache_model("models/player/zp_frost_zm/zp_frost_zm.mdl")
defaultindex = precache_model("models/player.mdl")
}
public paralize_cmd( id )
{
if( !is_user_alive(id) || !zp_get_user_zombie(id) || zp_get_user_zombie_class(id) != g_zclassparalize || zp_get_user_nemesis(id) )
return PLUGIN_CONTINUE;
if(g_can[id])
{
client_print(id,print_center,"Ждите еще %d секунд",g_can[id])
return PLUGIN_HANDLED;
}
static Float:origin[3], Float:angles[3], Float:v_forward[3], Float:v_right[3], Float:v_up[3], Float:gun_position[3], Float:player_origin[3], Float:player_view_offset[3];
static Float:OriginX[3]
pev(id, pev_v_angle, angles);
pev(id, pev_origin, OriginX);
engfunc(EngFunc_MakeVectors, angles);
global_get(glb_v_forward, v_forward);
global_get(glb_v_right, v_right);
global_get(glb_v_up, v_up);
//m_pPlayer->GetGunPosition( ) = pev->origin + pev->view_ofs
pev(id, pev_origin, player_origin);
pev(id, pev_view_ofs, player_view_offset);
xs_vec_add(player_origin, player_view_offset, gun_position);
xs_vec_mul_scalar(v_forward, 13.0, v_forward);
xs_vec_mul_scalar(v_right, 0.0, v_right);
xs_vec_mul_scalar(v_up, 5.0, v_up);
xs_vec_add(gun_position, v_forward, origin);
xs_vec_add(origin, v_right, origin);
xs_vec_add(origin, v_up, origin);
new Float:StartOrigin[3]
StartOrigin[0] = origin[0];
StartOrigin[1] = origin[1];
StartOrigin[2] = origin[2];
new Float:fVelocity[3] , Float:flOrigin[3] , Float:flAngle[3]
pev(id,pev_origin,flOrigin)
pev(id,pev_angles,flAngle)
new ball = create_entity("info_target")
if (!ball) return PLUGIN_HANDLED
g_touchs[ball] = 0
entity_set_string(ball, EV_SZ_classname, ball_name)
entity_set_model(ball, ball_model)
entity_set_origin(ball, StartOrigin)
entity_set_vector(ball, EV_VEC_angles, flAngle)
new Float:MinBox[3] = {-1.0, -1.0, -1.0}
new Float:MaxBox[3] = {1.0, 1.0, 1.0}
entity_set_vector(ball, EV_VEC_mins, MinBox)
entity_set_vector(ball, EV_VEC_maxs, MaxBox)
entity_set_int(ball, EV_INT_solid, SOLID_SLIDEBOX)
entity_set_int(ball, EV_INT_movetype, MOVETYPE_BOUNCEMISSILE)
entity_set_edict(ball, EV_ENT_owner, id)
entity_set_int(ball, EV_INT_effects, EF_BRIGHTLIGHT)
VelocityByAim(id, get_pcvar_num(cvar_paralizevelocity ), fVelocity)
entity_set_vector(ball , EV_VEC_velocity, fVelocity)
fm_set_rendering(ball, kRenderFxGlowShell,255, 255, 255, kRenderNormal, 16)
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(TE_BEAMFOLLOW) // Temporary entity ID
write_short(ball) // Entity
write_short(sTrail) // Sprite index
write_byte(10) // Life
write_byte(3) // Line width
write_byte(100) // Red
write_byte(255) // Green
write_byte(255) // Blue
write_byte(255) // Alpha
message_end()
UTIL_PlayPlayerAnimation(id,10)
UTIL_PlayWeaponAnimation(id,8)
g_can[id] = get_pcvar_num(cvar_paralizedelay)
set_task(1.0,"ability_zero",id)
entity_set_float(ball, EV_FL_health , get_pcvar_float(cvar_paralizeballhealth))
entity_set_float(ball, EV_FL_nextthink, get_gametime() + 0.1)
return PLUGIN_HANDLED;
}
public touchWorld(ball, world) {
emit_sound(ball, CHAN_WEAPON, ball_soundtouch, 1.0, ATTN_NORM, 0, PITCH_NORM)
g_touchs[ball] += 1
if(g_touchs[ball] == get_pcvar_num(cvar_paralizeballhealth)) remove_entity(ball)
return PLUGIN_HANDLED
}
public touchPlayer(ball, player) {
client_print(0,print_chat,"touch %d",player)
remove_task(player)
paralize(player)
//set_task(get_pcvar_float(cvar_paralizeballparalizetime),"unparalize_player",player)
return PLUGIN_HANDLED
}
public event_round_start()
{
new iEnt = FM_NULLENT;
while( (iEnt = engfunc(EngFunc_FindEntityByString, iEnt, "classname", ball_name)) > 0 )
{
engfunc(EngFunc_RemoveEntity,iEnt)
}
for(new i;i<=32;i++)
{
if(g_paralizen[i]) fm_set_rendering(i)
g_can[i] = 0
g_paralizen[i] = 0
remove_task(i)
}
}
public ball_think(ball)
{
if(!is_valid_ent(ball))
return;
new Float:oldangles[3],Float:angles[3]
pev(ball,pev_angles,oldangles)
angles[0] = oldangles[0] + random_float(20.0,100.0)
angles[1] = oldangles[1] + random_float(10.0,80.0)
angles[2] = oldangles[2] + random_float(10.0,80.0)
set_pev(ball,pev_angles,angles)
new Float:Velocity[3]
pev(ball,pev_velocity,Velocity)
if(Velocity[0] < 1.0 && Velocity[2] < 1.0 && Velocity[1] < 1.0) remove_entity(ball)
entity_set_float(ball, EV_FL_nextthink, get_gametime() + 0.1)
}
public paralize(id)
{
if(!is_user_alive(id) || zp_get_user_zombie(id))
return;
g_paralizen[id] = 1
fm_set_rendering(id, kRenderFxGlowShell,100, 255, 255, kRenderNormal, 16)
set_task(get_pcvar_float(cvar_paralizeballparalizetime),"unparalize_player",id)
}
public unparalize_player(id)
{
if(!is_user_alive(id) || zp_get_user_zombie(id))
return;
g_paralizen[id] = 0
fm_set_rendering(id)
}
public remove_values(id)
{
remove_task(id)
g_can[id] = 0
}
public ability_zero(id)
{
g_can[id] -= 1
if(!g_can[id]) client_print(id,print_center,"Способность готова! Нажми G")
if(g_can[id]) set_task(1.0,"ability_zero",id)
}
public fw_PreThink(id)
{
if( !is_user_alive(id) || zp_get_user_zombie(id) || !g_paralizen[id])
return PLUGIN_CONTINUE;
set_pev( id, pev_button, pev(id,pev_button) & ~IN_ATTACK );
set_pev(id, pev_maxspeed, 0.0)
new Float:vel[3]
set_pev(id,pev_velocity,vel)
return PLUGIN_HANDLED
}
public zp_user_humanized_post(id)
{
fm_set_user_model_index(id, defaultindex)
remove_values(id)
}
public fw_PlayerKilled(id, attacker, shouldgib) remove_values(id)
public client_connect(id) remove_values(id)
public zp_user_infected_post(id)
{
if((zp_get_user_zombie_class(id) == g_zclassparalize) && (zp_get_user_zombie(id)))
{
fm_set_user_model_index(id, index)
}
remove_values(id)
}
/*
public zp_user_infected_pre(id)
{
if(!(get_user_flags(id) & ADMIN_LEVEL_B))
{
if(zp_get_user_next_class(id) == g_zclassparalize)
{
zp_set_user_zombie_class(id, 0)
client_print(id, print_chat, "Данный класс только для Админов")
}
}
}
*/
stock fm_set_rendering(entity, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16)
{
static Float:color[3]
color[0] = float(r)
color[1] = float(g)
color[2] = float(b)
set_pev(entity, pev_renderfx, fx)
set_pev(entity, pev_rendercolor, color)
set_pev(entity, pev_rendermode, render)
set_pev(entity, pev_renderamt, float(amount))
}
stock UTIL_PlayWeaponAnimation(const Player, const Sequence)
{
set_pev(Player, pev_weaponanim, Sequence)
message_begin(MSG_ONE_UNRELIABLE, SVC_WEAPONANIM, .player = Player)
write_byte(Sequence)
write_byte(pev(Player, pev_body))
message_end()
}
stock UTIL_PlayPlayerAnimation(const id, const Sequence , Float:frame = 1.0 , Float:framerate = 1.0)
{
entity_set_int(id, EV_INT_sequence, Sequence)
entity_set_int(id, EV_INT_gaitsequence, 1)
entity_set_float(id, EV_FL_frame, frame)
entity_set_float(id, EV_FL_framerate, framerate)
}
stock get_speed_vector(const Float:origin1[3],const Float:origin2[3],Float:speed, Float:new_velocity[3])
{
new_velocity[0] = origin2[0] - origin1[0]
new_velocity[1] = origin2[1] - origin1[1]
new_velocity[2] = origin2[2] - origin1[2]
new Float:num = floatsqroot(speed*speed / (new_velocity[0]*new_velocity[0] + new_velocity[1]*new_velocity[1] + new_velocity[2]*new_velocity[2]))
new_velocity[0] *= num
new_velocity[1] *= num
new_velocity[2] *= num
return 1
}
stock fm_cs_set_user_deaths(id, value)
{
set_pdata_int(id, 444, value, 5)
}
stock fm_cs_get_user_team(id)
{
return get_pdata_int(id, 114, 5);
}
public Player_Duck(id)
{
if(zp_get_user_zombie_class(id) == g_zclassparalize && zp_get_user_zombie(id))
{
static button, ducking
button = pev(id, pev_button)
ducking = pev(id, pev_flags) & (FL_DUCKING | FL_ONGROUND) == (FL_DUCKING | FL_ONGROUND)
if(button & IN_DUCK || ducking)
{
set_pev(id, pev_view_ofs, {0.0, 0.0, 20.0})
}
}
}
stock fm_set_user_model_index(id, value)
{
set_pdata_int(id, OFFSET_MODELINDEX, value, OFFSET_LINUX)
}
Вот такая ошибка
L 11/05/2023 - 16:44:44: [ENGINE] Invalid entity 135
L 11/05/2023 - 16:44:44: [AMXX] Displaying debug trace (plugin "yt_class_revenant_ice_0.amxx", version "0.1")
L 11/05/2023 - 16:44:44: [AMXX] Run time error 10: native error (native "entity_set_float")
L 11/05/2023 - 16:44:44: [AMXX] [0] yt_class_revenant_ice_0.sma::ball_think (line 223)
L 11/05/2023 - 16:44:49: [ENGINE] Invalid entity 137
L 11/05/2023 - 16:44:49: [AMXX] Displaying debug trace (plugin "yt_class_revenant_ice_0.amxx", version "0.1")
L 11/05/2023 - 16:44:49: [AMXX] Run time error 10: native error (native "entity_set_float")
L 11/05/2023 - 16:44:49: [AMXX] [0] yt_class_revenant_ice_0.sma::ball_think (line 223)
Еще бывает (не всегда) что шар не исчезает, а летает по карте до тех пор пока не выпустишь новый, так же ИНОГДА если заразить того кого коснулся шар - у него не пропадает свечение, скриншоты приложил
L 11/05/2023 - 16:44:44: [ENGINE] Invalid entity 135
L 11/05/2023 - 16:44:44: [AMXX] Displaying debug trace (plugin "yt_class_revenant_ice_0.amxx", version "0.1")
L 11/05/2023 - 16:44:44: [AMXX] Run time error 10: native error (native "entity_set_float")
L 11/05/2023 - 16:44:44: [AMXX] [0] yt_class_revenant_ice_0.sma::ball_think (line 223)
L 11/05/2023 - 16:44:49: [ENGINE] Invalid entity 137
L 11/05/2023 - 16:44:49: [AMXX] Displaying debug trace (plugin "yt_class_revenant_ice_0.amxx", version "0.1")
L 11/05/2023 - 16:44:49: [AMXX] Run time error 10: native error (native "entity_set_float")
L 11/05/2023 - 16:44:49: [AMXX] [0] yt_class_revenant_ice_0.sma::ball_think (line 223)
Еще бывает (не всегда) что шар не исчезает, а летает по карте до тех пор пока не выпустишь новый, так же ИНОГДА если заразить того кого коснулся шар - у него не пропадает свечение, скриншоты приложил
В этой теме было размещено решение! Перейти к решению.
Download all Attachments
-
102.6 KB Просмотры: 66
-
288.2 KB Просмотры: 68