Raised This Month: $51 Target: $400
 12% 

[Zp] Ayuda con Puntos


  
 
 
Thread Tools Display Modes
Author Message
JorG
Junior Member
Join Date: Mar 2012
Old 04-03-2012 , 05:44   [Zp] Ayuda con Puntos
#1

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.

Last edited by JorG; 04-03-2012 at 05:44.
JorG is offline
angelitop10
BANNED
Join Date: Dec 2011
Location: Chile
Old 04-04-2012 , 20:27   Re: [Zp] Ayuda con Puntos
#2

Pregunta el zp con clases humanas los creaste tu
angelitop10 is offline
xLeoNNN
Veteran Member
Join Date: Sep 2010
Location: de_dust2
Old 04-04-2012 , 20:50   Re: [Zp] Ayuda con Puntos
#3

no, adaptalo tu y si te dan errores postealos.
__________________
xLeoNNN is offline
Send a message via MSN to xLeoNNN
dalegato
Senior Member
Join Date: Feb 2011
Old 04-05-2012 , 14:38   Re: [Zp] Ayuda con Puntos
#4

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
dalegato is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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