Raised This Month: $ Target: $400
 0% 

i need some help with fm!!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
k007
BANNED
Join Date: Mar 2006
Location: bacon?
Old 10-09-2006 , 14:37   i need some help with fm!!
Reply With Quote #1

ok well im porting this plugin and they have this engine func
Code:
 radius_damage(nade, 108.0, fexplosion, 360.0, DMG_BLAST, "grenade", 0)
but i want to use fm so here is what i did
i added this to my plugin
Code:
stock fm_radius_damage(Float:fExplodeAt[3], iDamageMultiplier, iRadiusMultiplier) {  new pSearchEnt;  while( (pSearchEnt = engfunc(EngFunc_FindEntityInSphere,pSearchEnt, fExplodeAt, 5 * iRadiusMultiplier) ) != 0)  {   if(! (pev(pSearchEnt,pev_takedamage) & (1<<6)) )   {    new hp = pev(pSearchEnt,pev_health) - (10 + random_num(0,3) * iDamageMultiplier);    set_pev(pSearchEnt,pev_health,hp);        if(hp < 1) if(is_user_alive(pSearchEnt) ) dllfunc(DLLFunc_ClientKill,pSearchEnt)   }  }    while( (pSearchEnt = engfunc(EngFunc_FindEntityInSphere,pSearchEnt, fExplodeAt, 4 * iRadiusMultiplier) ) != 0)  {   if(! (pev(pSearchEnt,pev_takedamage) & (1<<6)) )   {    new hp = pev(pSearchEnt,pev_health) - (25 + random_num(0,3) * iDamageMultiplier);    set_pev(pSearchEnt,pev_health,hp);        if(hp < 1) if(is_user_alive(pSearchEnt) ) dllfunc(DLLFunc_ClientKill,pSearchEnt)   }  }    while( (pSearchEnt = engfunc(EngFunc_FindEntityInSphere,pSearchEnt, fExplodeAt, 3 * iRadiusMultiplier) ) != 0)  {   if(! (pev(pSearchEnt,pev_takedamage) & (1<<6)) )   {    new hp = pev(pSearchEnt,pev_health) - (50 + random_num(0,3) * iDamageMultiplier);    set_pev(pSearchEnt,pev_health,hp);        if(hp < 1) if(is_user_alive(pSearchEnt) ) dllfunc(DLLFunc_ClientKill,pSearchEnt)   }  }    while( (pSearchEnt = engfunc(EngFunc_FindEntityInSphere,pSearchEnt, fExplodeAt, 2 * iRadiusMultiplier) ) != 0)  {   if(! (pev(pSearchEnt,pev_takedamage) & (1<<6)) ) if(is_user_alive(pSearchEnt) ) dllfunc(DLLFunc_ClientKill,pSearchEnt)  }    return 1; }
and change the radius_damage to fm_radius_damge could someone tell me what im i doing wrong teame06 said something about origin but i didn't understand..

Last edited by k007; 10-09-2006 at 14:54.
k007 is offline
Send a message via MSN to k007
 


Thread Tools
Display Modes

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 04:46.


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