Ok, Admer!! but remember that I struggle even with the "Hello World" program ha, ha!!! I will try to implement those parts into the infantry coder (monster_gunner.cpp).
Thanks!
//=========================================================
// TakeDamage - get provoked when injured
//=========================================================
int CISlave :: TakeDamage( entvars_t* pevInflictor, entvars_t* pevAttacker, float flDamage, int bitsDamageType)
{
// don't slash one of your own
if ((bitsDamageType & DMG_SLASH) && pevAttacker && IRelationship( Instance(pevAttacker) )<= R_DL )
return 0;
m_afMemory |= bits_MEMORY_PROVOKED;
return CSquadMonster::TakeDamage(pevInflictor, pevAttacker, flDamage, bitsDamageType);
}
But I cannot understand well how to modify it so the enemy attacks you...F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_backend.cpp(5) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_bloom.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_bloom.cpp(18) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_brushdecals.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_brushdecals.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_cull.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_cull.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_debug.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_debug.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_frustum.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_frustum.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_grass.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_grass.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_light.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_light.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_lightmap.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_lightmap.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_main.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_main.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_misc.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_misc.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_movie.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_movie.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_opengl.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_opengl.cpp(18) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_particle.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_particle.cpp(17) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_postprocess.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_postprocess.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_shader.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_shader.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_shadows.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_shadows.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_sprite.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_sprite.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_studio.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_studio.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_studiodecal.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_studiodecal.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_subview.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_subview.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_surf.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_surf.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_tempents.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_tempents.cpp(21) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_view.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_view.cpp(6) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_warp.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_warp.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_weather.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_weather.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
r_world.cpp
F:\DEVZWC20\ELEMENTOS BASICOS MAYO 2017\SINGLE-PLAYER SOURCE\cl_dll\renderer\r_world.cpp(16) : fatal error C1083: Cannot open include file: 'hud.h': No such file or directory
But the hud.h is there, I did not touched it!! is in there!! look: I know it will look like a VERY basic mistake, but believe me if this don´t happen to me for some years now; Ok, maybe when I started to make disasters with the code in 2004, but I´m sure I know how to include a header file.