AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Spanish (https://forums.alliedmods.net/forumdisplay.php?f=135)
-   -   [Zp] Ayuda con Puntos (https://forums.alliedmods.net/showthread.php?t=181872)

JorG 04-03-2012 05:44

[Zp] Ayuda con Puntos
 
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_EmitSoundvictimCHAN_BODYsound_armorhit1.0ATTN_NORM0PITCH_NORM)
    if (!
g_zombie[attacker])
    {
        
set_pev(victimpev_armorvalue, - floatmax(0.0armor damage/ammount_resistence(g_skill_points[attacker][0][5])))
        return 
HAM_SUPERCEDE;
                
    }
    else
    {
        
set_pev(victimpev_armorvaluefloatmax(0.0armor 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(idpev_maxspeedfloat(g_zclass_spd[g_zombieclass[id]]) + ammount_zspeed(g_skill_points[id][1][2]))

// y en la parte del humano 
set_pev(idpev_maxspeedget_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(idget_pcvar_num(cvar_humanhp) + ammount_health(g_skill_points[id][0][1]))
set_pev(idpev_gravityget_pcvar_float(cvar_humangravity) - ammount_gravity(g_skill_points[id][0][4]))
set_user_armor(idammount_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(idget_pcvar_num(cvar_humanhp) + ammount_health(g_skill_points[id][0][1]))
set_pev(idpev_gravityget_pcvar_float(cvar_humangravity) - ammount_gravity(g_skill_points[id][0][4]))
set_user_armor(idammount_armor(g_skill_points[id][0][3]))
        
// Set gravity, unless frozen
if (!g_frozen[id]) set_pev(idpev_gravityget_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(idfloatround(g_zclass_hp[g_zombieclass[id]]*get_pcvar_float(cvar_zombiefirsthp)) + ammount_zhealth(g_skill_points[id][1][1]))
set_pev(idpev_gravityg_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.

angelitop10 04-04-2012 20:27

Re: [Zp] Ayuda con Puntos
 
Pregunta el zp con clases humanas los creaste tu

xLeoNNN 04-04-2012 20:50

Re: [Zp] Ayuda con Puntos
 
no, adaptalo tu y si te dan errores postealos.

dalegato 04-05-2012 14:38

Re: [Zp] Ayuda con Puntos
 
Es el segundo post posteando lo mismo, ya Neeeeeeeeeel.- te dio la respuesta a tu pregunta.
Antes de volver a preguntar, figate si no te respondieron.

Primer post y respuesta: http://forums.alliedmods.net/showthread.php?t=181256


All times are GMT -4. The time now is 09:14.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.