Holas. Segui la guia de
StickP0le de puntos. Pero cuando quise cambiar algunas cosas me di cuenta de qe era para zp sin clases humanas, y qe habia que adaptarlo al zp 4.3. Ya que esta para el zp 4.2 y sin clases humanas :S
PHP Code:
// ahora para aplicar el daņo nos vamos a fw_takedamage ahi agregamos
damage *= ammount_damage(g_skill_points[attacker][0][0])
// ahora mas abajo en la parte del chaleco agregamos
// Block the attack if he has some
if (armor > 0.0)
{
engfunc(EngFunc_EmitSound, victim, CHAN_BODY, sound_armorhit, 1.0, ATTN_NORM, 0, PITCH_NORM)
if (!g_zombie[attacker])
{
set_pev(victim, pev_armorvalue, - floatmax(0.0, armor - damage/ammount_resistence(g_skill_points[attacker][0][5])))
return HAM_SUPERCEDE;
}
else
{
set_pev(victim, pev_armorvalue, floatmax(0.0, armor - damage+ammount_zdamage(g_skill_points[attacker][1][0])))
return HAM_SUPERCEDE;
}
}
// ahora nos vamos a playerprethink
// en la parte del zombie reemplazamos lo que esta por esto
set_pev(id, pev_maxspeed, float(g_zclass_spd[g_zombieclass[id]]) + ammount_zspeed(g_skill_points[id][1][2]))
// y en la parte del humano
set_pev(id, pev_maxspeed, get_pcvar_float(cvar_humanspd) + ammount_speed(g_skill_points[id][0][2]))
// ahora nos vamos a playerspawn_post
// en la parte de setear vida/chaleco/gravedad reemplazamos eso por esto
// Set health and gravity
fm_set_user_health(id, get_pcvar_num(cvar_humanhp) + ammount_health(g_skill_points[id][0][1]))
set_pev(id, pev_gravity, get_pcvar_float(cvar_humangravity) - ammount_gravity(g_skill_points[id][0][4]))
set_user_armor(id, ammount_armor(g_skill_points[id][0][3]))
// ahora nos vamos a humanme(id, survivor) y reemplazamos la parte de setear la vida al humano por esto
// Set health
fm_set_user_health(id, get_pcvar_num(cvar_humanhp) + ammount_health(g_skill_points[id][0][1]))
set_pev(id, pev_gravity, get_pcvar_float(cvar_humangravity) - ammount_gravity(g_skill_points[id][0][4]))
set_user_armor(id, ammount_armor(g_skill_points[id][0][3]))
// Set gravity, unless frozen
if (!g_frozen[id]) set_pev(id, pev_gravity, get_pcvar_float(cvar_humangravity) - ammount_gravity(g_skill_points[id][0][4]))
// y por ultimo nos vamos a zombieme(id, infector)
// en la parte de setear la vida al zombie agregamos
// Set health and gravity
fm_set_user_health(id, floatround(g_zclass_hp[g_zombieclass[id]]*get_pcvar_float(cvar_zombiefirsthp)) + ammount_zhealth(g_skill_points[id][1][1]))
set_pev(id, pev_gravity, g_zclass_grav[g_zombieclass[id]] * ammount_gravity(g_skill_points[id][1][3])
Necesito que me ayuden en esa parte para adaptalo al 4.3 y con clases humanas.
Bueno eso es todo Salu2
PD: Tengo el zp 4.3 con clases humanas.