My NPC make Alyx crush game!

Strange thread name? Yes! I have very strange problem: i can spawn many different NPC’s and my NPC and all will be fine, but when i spawn Alyx and she detects my NPC - game crushes. It’s very stupid and i don’t understand why this happens. It’s really happens when Alyx detect NPC, because i spawned my NPC in room with mirror (map gm_construct) and Alyx near player spawn. NPC start running to Alyx and when she detects him…crush. Any ideas why this happen and how to fix this? This is dump file debugged with WinDbg:



Microsoft (R) Windows Debugger Version 6.3.9600.17336 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.


Loading Dump File [C:\Steam\SteamApps\Common\GarrysMod\hl2_170116_crash_2017_1_20T13_33_12C0.mdmp]
Comment: 'Crash
Uptime( 152.585908 )
Map: gm_construct
Game: C:\Steam\steamapps\common\GarrysMod\garrysmod
Build: 6638
Misc: skill:1 rate 60000 update 60 cmd 60 latency 0 msec
Net: loopback
cmdline:C:\Steam\steamapps\common\GarrysMod\hl2.exe -steam -game garrysmod -windowed -noborder
driver: Driver Name:  NVIDIA GeForce GTX 750 Ti
Driver Version: 21.21.13.7633
VendorId / DeviceId:  0x10de / 0x1380
SubSystem / Rev:  0x138010de / 0xa2
DXLevel:  gamemode [95]
Vid:  1360 x 768
video: picmip: 0 forceansio: 1 trilinear: 1 antialias: 0 vsync: 0 rootlod: 2 reducefillrate: 0
shadowrendertotexture: 1 r_flashlightdepthtexture 1 waterforceexpensive: 0 waterforcereflectentities: 0 mat_motion_blur_enabled: 0 mat_queue_mode -1
OS: Service Pack 1 (Build 7601) version 6.1

Memory
memusage( 78 % )
totalPhysical Mb(2047.55)
freePhysical Mb(436.51)
totalPaging Mb(4095.11)
freePaging Mb(1662.18)
totalVirtualMem Mb(4095.88)
freeVirtualMem Mb(2972.45)
extendedVirtualFree Mb(0.00)

Process Memory
WorkingSetSize Mb(434.86)
QuotaPagedPoolUsage Mb(0.60)
QuotaNonPagedPoolUsage: Mb(0.16)
PagefileUsage: Mb(445.96)

Paged Pool
prev PP PAGES: used: 0, free 0
final PP PAGES: used: 0, free 0
memallocfail? = 0
Active: active SpawnCount 1 MapLoad Count 1
Error count 0, end demo 0, abort count 0

ConVars (non-default)

var	value	default
wire_expression2_soundurl_enable
	'0' '1'
gcompute_editor_5ever
	'0' '1'
e2pipe_rst
	'0.74382102032108' ''
kf_npc_patriarch_music
	'0' '1'
winch_rope_width
	'1' '3'
wheel_torque
	'10000' '3000'
wheel_model
	'models/props_c17/trappropeller_blade.mdl' 'models/props_vehicles/carparts_wheel01a.mdl'
wheel_rz
	'0' '90'
vjstool_npcspawner_nextspawntime
	'0' '3'
trails_endsize
	'4.19' '0'
trails_material
	'trails/smoke' 'trails/lol'
thruster_toggle
	'1' '0'
thruster_keygroup
	'81' '45'
thruster_soundname
	'eli_lab.elevator_move' 'PhysicsCannister.ThrusterLoop'
thruster_keygroup_back
	'0' '42'
thruster_force
	'10000' '1500'
physprop_material
	'gmod_ice' 'metal_bouncy'
paint_decal
	'Smile' 'Blood'
motor_friction
	'0' '1'
motor_bwd
	'0' '42'
motor_torque
	'10000' '500'
modelmanipulator_mmmodel
	'models/pac/female_base.mdl' ''
material_override
	'models/balloon/balloon_milfman' 'debug/env_cubemap_model'
light_brightness
	'5' '2'
light_ropelength
	'43.41' '64'
light_size
	'1024' '256'
lamp_distance
	'64' '1024'
lamp_brightness
	'8' '4'
lamp_fov
	'40.650002' '90'
hydraulic_speed
	'250' '64'
hydraulic_addlength
	'-100' '100'
finger_0
	'0.0 0.0' '0 0'
finger_13
	'0.0 0.0' '0 0'
finger_10
	'0.0 0.0' '0 0'
finger_2
	'0.0 0.0' '0 0'
finger_7
	'0.0 0.0' '0 0'
finger_3
	'0.00 -12.50' '0 0'
finger_12
	'0.0 0.0' '0 0'
finger_11
	'0.0 0.0' '0 0'
finger_14
	'0.0 0.0' '0 0'
finger_15
	'0 0 0' '0 0'
finger_6
	'0.0 0.0' '0 0'
finger_9
	'0.0 0.0' '0 0'
finger_5
	'0.00 -50.00' '0 0'
finger_1
	'0.0 0.0' '0 0'
finger_8
	'0.00 -50.00' '0 0'
finger_4
	'0.0 0.0' '0 0'
faceposer_flex1
	'1' '0'
faceposer_flex60
	'0.5' '0'
faceposer_flex12
	'0.58' '0'
faceposer_flex28
	'1' '0'
faceposer_scale
	'2.4' '1.0'
faceposer_flex54
	'1' '0'
faceposer_flex40
	'1' '0'
faceposer_flex57
	'0.5' '0'
faceposer_flex10
	'1' '0'
faceposer_flex63
	'0.5' '0'
faceposer_flex0
	'1' '0'
faceposer_flex39
	'1' '0'
faceposer_flex61
	'0.5' '0'
faceposer_flex24
	'1' '0'
faceposer_flex64
	'0.5' '0'
faceposer_flex55
	'0.5' '0'
faceposer_flex62
	'0.5' '0'
faceposer_flex56
	'0.5' '0'
faceposer_flex13
	'0.56' '0'
faceposer_flex27
	'1' '0'
faceposer_flex38
	'1' '0'
faceposer_flex23
	'1' '0'
faceposer_flex25
	'1' '0'
faceposer_flex34
	'1' '0'
faceposer_flex11
	'1' '0'
faceposer_flex58
	'0.5' '0'
faceposer_flex22
	'1' '0'
faceposer_flex33
	'1' '0'
faceposer_flex59
	'0.5' '0'
faceposer_flex41
	'1' '0'
emitter_starton
	'1' '0'
emitter_effect
	'manhacksparks' 'sparks'
emitter_delay
	'0.2' '1'
emitter_scale
	'4' '1'
elastic_constant
	'100' '500'
elastic_damping
	'2' '3'
creator_name
	'item_ammo_ar2_altfire' '0'
colour_g
	'224' '255'
colour_a
	'0' '255'
colour_r
	'230' '255'
colour_b
	'95' '255'
camera_locked
	'1' '0'
button_model
	'models/dav0r/buttons/button.mdl' 'models/maxofs2d/button_05.mdl'
balloon_b
	'255' '0'
balloon_model
	'mossman' 'normal_skin1'
balloon_ropelength
	'51.16' '64'
axis_nocollide
	'1' '0'
gmod_toolmode
	'camera' 'rope'
cl_showhints
	'0' '1'
cl_weaponcolor
	'0.368627 0.647059 0.800000' '0.30 1.80 2.10'
cl_playercolor
	'0.321569 0.392157 0.921569' '0.24 0.34 0.41'
kf_npc_patriarch_intro
	'0' '1'
kf_npc_scrake_hp
	'2000' '1000'
kf_npc_husk_hp
	'500' '600'
vj_npc_sd_soundtrack
	'1' '0'
kf2_npc_boss_camera
	'0' '1'
kf2_npc_difficulty
	'4' '1'
kf2_nerf_player_speed
	'0' '1'
physgun_wheelspeed
	'5' '10.0'
cl_predict
	'0' '1.0'
hap_melee_scale
	'0.800000' '0.800000'
hap_noclip_avatar_scale
	'0.100000' '0.100000'
cl_chatfilter_version
	'1' '0'
joy_advanced
	'0' '1'
joy_advaxisx
	'0' '4'
joy_advaxisy
	'0' '2'
joy_advaxisr
	'0' '1'
joy_advaxisu
	'0' '3'
sensitivity
	'0.9' '3'
mat_software_aa_strength
	'0' '-1.0'
mat_software_aa_strength_vgui
	'1' '-1.0'
fov_desired
	'90' '75'
default_fov
	'90' '75'
cl_playermodel
	'police' 'none'
sbox_maxnpcs
	'100' '10'
sbox_maxcameras
	'100' '10'
lua_error_url
	'''' ''
sk_npc_head
	'5' '2'
sk_npc_arm
	'0.5' '1'
sk_npc_leg
	'0.5' '1'
sk_ally_regen_time
	'0.2' '0.3003'
mp_falldamage
	'1' '0'
mp_flashlight
	'1' '0'
sv_skyname
	'painted' 'sky_urb01'
think_limit
	'0' '10'
sk_player_head
	'5' '2'
sk_player_arm
	'0.5' '1'
sk_player_leg
	'0.5' '1'
sk_zombie_soldier_health
	'100' '0'
sk_plr_dmg_crowbar
	'24' '0'
sk_npc_dmg_crowbar
	'24' '0'
sk_plr_dmg_stunstick
	'30' '0'
sk_npc_dmg_stunstick
	'30' '0'
sk_suitcharger
	'30' '0'
sk_suitcharger_citadel
	'500' '0'
sk_suitcharger_citadel_maxarmor
	'200' '0'
sk_smg1_grenade_radius
	'250' '0'
sk_plr_dmg_fraggrenade
	'110' '0'
sk_npc_dmg_fraggrenade
	'110' '0'
sk_fraggrenade_radius
	'250' '0'
sk_plr_dmg_ar2
	'17' '0'
sk_npc_dmg_ar2
	'17' '0'
sk_max_ar2
	'90' '0'
sk_max_ar2_altfire
	'3' '0'
sk_plr_dmg_alyxgun
	'12' '0'
sk_npc_dmg_alyxgun
	'12' '0'
sk_max_alyxgun
	'150' '0'
sk_plr_dmg_pistol
	'14' '0'
sk_npc_dmg_pistol
	'14' '0'
sk_max_pistol
	'150' '0'
sk_plr_dmg_smg1
	'13' '0'
sk_npc_dmg_smg1
	'13' '0'
sk_max_smg1
	'225' '0'
sk_plr_dmg_buckshot
	'12' '0'
sk_npc_dmg_buckshot
	'12' '0'
sk_max_buckshot
	'56' '0'
sk_plr_dmg_rpg_round
	'150' '0'
sk_npc_dmg_rpg_round
	'150' '0'
sk_max_rpg_round
	'5' '0'
sk_plr_dmg_sniper_round
	'20' '0'
sk_npc_dmg_sniper_round
	'100' '0'
sk_max_sniper_round
	'30' '0'
sk_plr_dmg_grenade
	'110' '0'
sk_npc_dmg_grenade
	'110' '0'
sk_max_grenade
	'5' '0'
sk_plr_dmg_smg1_grenade
	'100' '0'
sk_npc_dmg_smg1_grenade
	'100' '0'
sk_max_smg1_grenade
	'3' '0'
sk_plr_dmg_357
	'40' '0'
sk_npc_dmg_357
	'40' '0'
sk_max_357
	'48' '0'
sk_plr_dmg_crossbow
	'100' '0'
sk_npc_dmg_crossbow
	'100' '0'
sk_max_crossbow
	'30' '0'
sk_plr_dmg_airboat
	'13' '10'
sk_npc_dmg_airboat
	'13' '10'
sk_max_gauss_round
	'30' '0'
sk_npc_dmg_gunship
	'40' '5'
sk_npc_dmg_gunship_to_plr
	'3' '5'
sk_battery
	'15' '0'
sk_healthkit
	'15' '0'
sk_healthvial
	'7' '0'
sk_healthcharger
	'75' '0'
sk_antlion_health
	'100' '0'
sk_antlion_swipe_damage
	'15' '0'
sk_antlion_jump_damage
	'25' '0'
sk_antlion_air_attack_dmg
	'30' '0'
sk_antlionguard_dmg_charge
	'100' '0'
sk_antlionguard_dmg_shove
	'45' '0'
sk_antlionguard_health
	'700' '0'
sk_helicopter_grenadedamage
	'30' '25.0'
sk_barnacle_health
	'50' '0'
sk_barney_health
	'100' '0'
sk_scanner_dmg_dive
	'25' '0'
sk_zombie_dmg_one_slash
	'14' '0'
sk_zombie_dmg_both_slash
	'28' '0'
sk_bullseye_health
	'100' '0'
sk_citizen_health
	'100' '0'
npc_citizen_auto_player_squad
	'0' '1'
sk_npc_dmg_dropship
	'2' '5'
sk_gunship_health_increments
	'5' '0'
sk_combine_s_health
	'150' '0'
sk_combine_s_kick
	'10' '0'
sk_combine_guard_health
	'150' '0'
sk_combine_guard_kick
	'10' '0'
sk_headcrab_health
	'12' '0'
sk_headcrab_fast_health
	'10' '0'
sk_headcrab_poison_health
	'50' '0'
sk_headcrab_melee_dmg
	'7' '0'
sk_headcrab_poison_npc_damage
	'20' '0'
sk_ichthyosaur_health
	'200' '0'
sk_ichthyosaur_melee_dmg
	'18' '0'
sk_manhack_health
	'30' '0'
sk_manhack_melee_dmg
	'20' '0'
sk_metropolice_health
	'100' '0'
sk_zombie_poison_health
	'300' '0'
sk_zombie_poison_dmg_spit
	'25' '0'
sk_rollermine_shock
	'10' '0'
sk_rollermine_stun_delay
	'2' '1'
sk_scanner_health
	'50' '0'
sk_stalker_health
	'100' '0'
sk_stalker_melee_dmg
	'10' '0'
sk_vortigaunt_armor_charge
	'15' '30'
sk_vortigaunt_health
	'100' '0'
sk_vortigaunt_dmg_claw
	'13' '0'
sk_vortigaunt_dmg_rake
	'25' '0'
sk_vortigaunt_dmg_zap
	'25' '0'
sk_zombie_health
	'100' '0'
sk_combineball_guidefactor
	'1' '0.5'
sk_dmg_homer_grenade
	'20' '0'
sk_homer_grenade_radius
	'100' '0'
sk_apc_missile_damage
	'50' '15'
windows_speaker_config
	'4' '-1'
snd_surround_speakers
	'2' '-1'
dsp_mix_min
	'0.21' '0.2'
dsp_db_min
	'95' '80'
dsp_db_mixdrop
	'0.1' '0.5'
dsp_room
	'1' '0'
dsp_automatic
	'60' '0'
room_type
	'1' '0'
name
	'ERROR' 'unnamed'
cl_timeout
	'900' '30'
cl_logofile
	'materials/vgui/logos/spray.vtf' 'materials/decals/spraylogo.vtf'
cl_forcepreload
	'1' '0'
mat_colorcorrection
	'1' '0'
con_enable
	'1' '0'
r_fastzreject
	'1' '0'
mp_decals
	'1000' '200'
r_hunkalloclightmaps
	'0' '1'
r_overlayfademin
	'1750' '1750.0f'
r_overlayfademax
	'2000' '2000.0f'
r_shadows_gamecontrol
	'1' '-1'
sv_timeout
	'180' '65'
sv_client_predict
	'1' '-1'
sv_forcepreload
	'1' '0'
rate
	'60000' '1048576'
cl_cmdrate
	'60' '30'
cl_updaterate
	'60' '20'
hostname
	'Garry's Mod' ''
host_map
	'gm_construct.bsp' ''
sv_allow_voice_from_file
	'0' '1'
cl_savescreenshotstosteam
	'1' '0'
r_flashlightscissor
	'0' '1'
datacachesize
	'256' '64'
r_rootlod
	'2' '0'
mat_forcemanagedtextureintohardware
	'0' '1'
mat_supportflashlight
	'1' '-1'
mat_dxlevel
	'95' '0'
mat_trilinear
	'1' '0'
mat_parallaxmap
	'0' '1'
r_shadowrendertotexture
	'1' '0'
mat_motion_blur_enabled
	'0' '1'
mat_hdr_manual_tonemap_rate
	'0.2' '1.0'
joy_xcontroller_found
	'0' '1'
mat_supports_d3d9ex
	'1' '0'
mat_disable_d3d9ex
	'1' '0'
mat_hdr_level
	'0' '2'
gmod_language
	'ru' 'en'

Console History (reversed)

231(143.334415):  Couldn't include file 'entities\gmod_wire_expreession2\core\custom\cl_e2derma.lua' (File not found) (@addons/e2p/lua/autorun/autoloade2p.lua (line 11))
230(140.132719):  GLib.DelayedCalls : function: 0x3247b7e0 took 1.16 s.
229(140.045938):  GLib.Loader : Running pack file "GCodec", deserialization took 1.86 ms (23 total files, 36.15 KiB).
228(139.273044):  GLib.Loader : Running pack file "GCompute", deserialization took 274.06 ms (443 total files, 1.39 MiB).
227(139.163019):  GLib.Loader : Running pack file "VFS", deserialization took 20.34 ms (82 total files, 216.66 KiB).
226(139.067323):  GLib.Loader : Running pack file "GAuth", deserialization took 16.94 ms (59 total files, 147.86 KiB).
225(139.017631):  GLib.Loader : Running pack file "Gooey", deserialization took 51.81 ms (139 total files, 420.87 KiB).
224(139.011621):  GLib.Loader : Running pack file "GLibAddons", deserialization took 10.56 µs (0 total files, 16.00 B).
223(138.975726):  GLib.Loader : Running pack file "GLib", deserialization took 246.42 ms (229 total files, 792.97 KiB).
222(138.123030):  
221(138.123004):  GLib.Loader : Received manifest (7 pack files).220(137.500435):  GLib.Loader : Built pack file "GCompute" (GCompute) (443 total files, 1.39 MiB, 25.28 ms)
219(137.475091):  GLib.Loader : Built pack file "VFS" (VFS) (82 total files, 216.66 KiB, 15.41 ms)
218(137.449115):  GLib.Loader : Built pack file "Gooey" (Gooey) (139 total files, 420.87 KiB, 16.54 ms)
217(137.421054):  GLib.Loader : Built pack file "Server" (GLib, GLibAddons, Gooey, GAuth, VFS, GCompute, GCodec) (975 total files, 2.97 MiB, 42.59 ms)
216(126.894013):  
215(126.894004):  
214(126.893986):  
213(126.893968):  
212(126.893934):  
211(126.893909):  Console: This server is running VJ Base.210(125.870280):  Requesting texture value from var "$startexture" which is not a texture value (material: skybox/painteddn)
209(125.869746):  Requesting texture value from var "$startexture" which is not a texture value (material: skybox/paintedup)
208(125.869268):  Requesting texture value from var "$startexture" which is not a texture value (material: skybox/paintedft)
207(125.868753):  Requesting texture value from var "$startexture" which is not a texture value (material: skybox/paintedbk)
206(125.868078):  Requesting texture value from var "$startexture" which is not a texture value (material: skybox/paintedlf)
205(125.867167):  Requesting texture value from var "$startexture" which is not a texture value (material: skybox/paintedrt)
204(125.484765):  Redownloading all lightmaps
203(124.871468):  Warning: Unhandled usermessage 'gauth_notification'
202(124.871435):  Warning: Unhandled usermessage 'gauth_notification'
201(124.871402):  Warning: Unhandled usermessage 'gauth_notification'
200(124.871367):  Warning: Unhandled usermessage 'gauth_notification'
199(124.871328):  Warning: Unhandled usermessage 'gauth_notification'
198(124.871256):  Warning: Unhandled usermessage 'gauth_notification'
197(124.796741):  Compact freed 610304 bytes
196(113.811027):  
195(113.810998):  VJ Base client files initialized!194(113.188162):  clientside lua startup!
193(111.394557):  Warning: WorldTwoTextureBlend found on a non-displacement surface (material: gm_construct/flatgrass). This wastes perf for no benefit.
192(105.331636):  Requesting 29 lua files from the server
191(101.492463):  Attemped to precache unknown particle system "generic_smoke"!
190(101.492418):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_Intake_b"!
189(101.492371):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_Intake"!
188(101.492319):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_i"!
187(101.492170):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_h Version #2"!
186(101.492125):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_h"!
185(101.492081):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_g"!
184(101.492037):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_f"!
183(101.491992):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_Explosion_k"!
182(101.491946):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_Explosion_j"!
181(101.491893):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_Explosion_i"!
180(101.491827):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_Explosion_h"!
179(101.491782):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_Explosion_g"!
178(101.491737):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_Explosion_f"!
177(101.491691):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_Explosion_e"!
176(101.491647):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_Explosion_d"!
175(101.491601):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_Exlposion_c"!
174(101.491556):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_Explosion_b"!
173(101.491511):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_Explosion"!
172(101.491466):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_Black"!
171(101.491422):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_Beam"!
170(101.491377):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_Backup"!
169(101.491331):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_e"!
168(101.491287):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_d"!
167(101.491243):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_c"!
166(101.491199):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_b"!
165(101.491155):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon_a"!
164(101.491110):  Attemped to precache unknown particle system "Weapon_Combine_Ion_Cannon"!
163(101.491065):  Attemped to precache unknown particle system "explosion_turret_break_sparks"!
162(101.491021):  Attemped to precache unknown particle system "explosion_turret_break_pre_sparks"!
161(101.490976):  Attemped to precache unknown particle system "explosion_turret_break_pre_smoke VersiUser Mini Dump File: Only registers, stack and portions of memory are available

Symbol search path is: *** Invalid ***
****************************************************************************
* Symbol loading may be unreliable without a symbol search path.           *
* Use .symfix to have the debugger choose a symbol path.                   *
* After setting your symbol path, use .reload to refresh symbol locations. *
****************************************************************************
Executable search path is: 
Windows 7 Version 7601 (Service Pack 1) MP (2 procs) Free x86 compatible
Product: WinNt, suite: SingleUserTS
Machine Name:
Debug session time: Fri Jan 20 17:33:16.000 2017 (UTC + 4:00)
System Uptime: not available
Process Uptime: 0 days 0:02:40.000
................................................................
................................................................
..
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(c24.7a8): Access violation - code c0000005 (first/second chance not available)
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for ntdll.dll - 
eax=00000000 ebx=00000000 ecx=00000000 edx=000186a2 esi=00000918 edi=11414fe9
eip=76f00c22 esp=0030bd44 ebp=0030bd54 iopl=0         nv up ei pl zr na pe nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00200246
ntdll!ZwGetContextThread+0x12:
76f00c22 83c404          add     esp,4


Maybe something wrong with class? I watch in vj base and not find npc class. In vj code npc use strings as class (don’t fully understand how it work). I just do this:


ENT.m_fMaxYawSpeed = 240
ENT.m_iClass = CLASS_ZOMBIE

AccessorFunc( ENT, "m_iClass", "NPCClass" )
AccessorFunc( ENT, "m_fMaxYawSpeed", "MaxYawSpeed" )

Very interesting. If i not set npc class and add this in enemy find code in entity “checking”:


if(TEMP_NPC:IsNPC()&&string.sub(TEMP_NPC:GetClass(),1,10)!="npc_kfmod_"&&TEMP_NPC:Classify()!=CLASS_ZOMBIE) then
	self:AddEntityRelationship(TEMP_NPC,D_HT,99)
	TEMP_NPC:AddEntityRelationship(self,D_HT,99)
end

npc fight with Alyx and no crushes…wtf?