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

[ZP] Efecto de fuego/hielo en la awp


  
 
 
Thread Tools Display Modes
Author Message
dalegato
Senior Member
Join Date: Feb 2011
Old 09-16-2012 , 07:51   [ZP] Efecto de fuego/hielo en la awp
#1

Hola am.

Tengo un problema al intentar crear la awp de fuegoy hielo.

Lo que hago es lo siguente

Code:
// Me voy a: // Ham Take Damage Forward (inflictor = weapon) // Y agrego esto:     if (get_user_weapon(attacker) == CSW_AWP) {     switch (g_awpfire[attacker])     {         fire_player(victim)     } } // Voy al final del todo el zp y agrego esto: fire_player(victim) {     // Get origin     static Float:originF[3]     pev(victim, pev_origin, originF)         // Fire nade explode sound     engfunc(EngFunc_EmitSound, victim, CHAN_WEAPON, grenade_fire_player[random_num(0, sizeof grenade_fire_player - 1)], 1.0, ATTN_NORM, 0, PITCH_NORM)         // Only effect alive zombies     if (!is_user_alive(victim) || !g_zombie[victim] || g_nodamage[victim])         return;         // Heat icon?     if (get_pcvar_num(cvar_hudicons))     {         message_begin(MSG_ONE_UNRELIABLE, g_msgDamage, _, victim)         write_byte(0) // damage save         write_byte(0) // damage take         write_long(DMG_BURN) // damage type         write_coord(0) // x         write_coord(0) // y         write_coord(0) // z         message_end()     }         // Our task params     static params[1]         if (g_nemesis[victim]) // fire duration (nemesis takes less)         params[0] = get_pcvar_num(cvar_fireduration)     else     params[0] = get_pcvar_num(cvar_fireduration)*5         // Set burning task on victim     set_task(0.1, "burning_flame", victim+TASK_BLOOD, params, sizeof params) } // Y por ultimo agrego en el case del arma: case: 1 {             fire_player(victim) }

Obvio que en el case le seteo el arma que modifique con un bool.

Pero sigue siendo igual nunca prende fuego al zombie, hice lo mismo probando la de hielo y tampoco
funciona.

Alguna Solucion?
dalegato is offline
Exc3ll@N
Veteran Member
Join Date: Oct 2009
Location: Donde me lleve el viento
Old 09-16-2012 , 14:48   Re: [ZP] Efecto de fuego/hielo en la awp
#2

if (get_user_weapon(attacker) == CSW_AWP && g_awpfire[attacker])fire_player(victim) y en el case del arma (donde da el arma) no tenes que poner el public del efecto , sino que setee el bool ...
__________________
Haz lo que sientas y te haga feliz.
Exc3ll@N is offline
Send a message via MSN to Exc3ll@N
leonard19941
Veteran Member
Join Date: Jun 2011
Old 09-16-2012 , 15:09   Re: [ZP] Efecto de fuego/hielo en la awp
#3

@dalegato podrias hacer un tuto o si ya existe pasarme el link, gracias
__________________
leonard19941 is offline
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 09-16-2012 , 15:50   Re: [ZP] Efecto de fuego/hielo en la awp
#4

Quote:
Originally Posted by dalegato View Post
Hola am.

Tengo un problema al intentar crear la awp de fuegoy hielo.

Lo que hago es lo siguente

Code:
// Me voy a: // Ham Take Damage Forward (inflictor = weapon) // Y agrego esto:     if (get_user_weapon(attacker) == CSW_AWP) {     switch (g_awpfire[attacker])     {
        fire_player(victim)
    } } // Voy al final del todo el zp y agrego esto: fire_player(victim) {     // Get origin     static Float:originF[3]     pev(victim, pev_origin, originF)         // Fire nade explode sound     engfunc(EngFunc_EmitSound, victim, CHAN_WEAPON, grenade_fire_player[random_num(0, sizeof grenade_fire_player - 1)], 1.0, ATTN_NORM, 0, PITCH_NORM)         // Only effect alive zombies     if (!is_user_alive(victim) || !g_zombie[victim] || g_nodamage[victim])         return;         // Heat icon?     if (get_pcvar_num(cvar_hudicons))     {         message_begin(MSG_ONE_UNRELIABLE, g_msgDamage, _, victim)         write_byte(0) // damage save         write_byte(0) // damage take         write_long(DMG_BURN) // damage type         write_coord(0) // x         write_coord(0) // y         write_coord(0) // z         message_end()     }         // Our task params     static params[1]         if (g_nemesis[victim]) // fire duration (nemesis takes less)         params[0] = get_pcvar_num(cvar_fireduration)     else     params[0] = get_pcvar_num(cvar_fireduration)*5         // Set burning task on victim     set_task(0.1, "burning_flame", victim+TASK_BLOOD, params, sizeof params) } // Y por ultimo agrego en el case del arma:
case: 1
{             fire_player(victim) }

Obvio que en el case le seteo el arma que modifique con un bool.

Pero sigue siendo igual nunca prende fuego al zombie, hice lo mismo probando la de hielo y tampoco
funciona.

Alguna Solucion?
WTF?.. sabes usar switch?
__________________

www.amxmodx-es.com

Steam: Luchokoldo
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
BlackFur
BANNED
Join Date: Apr 2012
Location: RCL
Old 09-17-2012 , 19:27   Re: [ZP] Efecto de fuego/hielo en la awp
#5

yo creo que no >.<
BlackFur 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 14:54.


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