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

Radius Damage Stock


Post New Thread Reply   
 
Thread Tools Display Modes
bogdyuttzu
Senior Member
Join Date: Dec 2009
Location: Romania
Old 07-31-2011 , 13:45   Re: Radius Damage Stock
Reply With Quote #31

Fuck my stock not work with orpheu i didn't solved nothing
bogdyuttzu is offline
Send a message via Yahoo to bogdyuttzu
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-31-2011 , 13:47   Re: Radius Damage Stock
Reply With Quote #32

If you use your stock again, have you tried to debug as suggested at least ?
__________________
Arkshine is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 12-10-2011 , 15:17   Re: Radius Damage Stock
Reply With Quote #33

Excuse me for bumping such an old thread, but I have one problem.

I used the CBaseMonster::RadiusDamage posted by Arkshine and everything is working perfectly except one thing: death message is not being shown only when someone is killed by the radius damage
called from my plugin.

This is the code I have right now:

Code:
UTIL_MakeExplosion( pEnt, Float:vOrigin[ 3 ] )
{
    // Get damage
    static Float:fDamage;
    pev( pEnt, pev_dmg, fDamage );
    
    // Draw the explosion    
    engfunc( EngFunc_MessageBegin, MSG_PAS, SVC_TEMPENTITY, vOrigin, 0 );
    write_byte( TE_EXPLOSION );
    engfunc( EngFunc_WriteCoord, vOrigin[ 0 ] );
    engfunc( EngFunc_WriteCoord, vOrigin[ 1 ] );
    engfunc( EngFunc_WriteCoord, vOrigin[ 2 ] );
    write_short( g_iExploSpr );
    write_byte( floatround( ( fDamage - 50.0 ) * 0.6 ) );
    write_byte( 15 );
    write_byte( 0 );
    message_end( );
    
    // Draw the smoke
    engfunc( EngFunc_MessageBegin, MSG_PAS, SVC_TEMPENTITY, vOrigin, 0 );
    write_byte( TE_SMOKE );
    engfunc( EngFunc_WriteCoord, vOrigin[ 0 ] );
    engfunc( EngFunc_WriteCoord, vOrigin[ 1 ] );
    engfunc( EngFunc_WriteCoord, vOrigin[ 2 ] );
    write_short( g_iSmokeSpr );
    write_byte( floatround( ( fDamage - 50.0 ) * 0.8 ) );
    write_byte( 12 );
    message_end( );

    // Get owner
    static pevOwner;
    pevOwner = pev( pEnt, pev_owner );
    
     // Do radius damage
     UTIL_RadiusDamage( pEnt, pEnt, pevOwner, fDamage, 0, DMG_BLAST | DMG_ALWAYSGIB );
    
    // Remove entity
    engfunc( EngFunc_RemoveEntity, pEnt );
}
__________________


Last edited by NiHiLaNTh; 12-10-2011 at 15:31.
NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
Old 12-10-2011, 15:18
NiHiLaNTh
This message has been deleted by NiHiLaNTh. Reason: lag! -.-
bogdyuttzu
Senior Member
Join Date: Dec 2009
Location: Romania
Old 12-11-2011 , 01:17   Re: Radius Damage Stock
Reply With Quote #34

DMG_BLAST | DMG_ALWAYSGIB

only one dmg
bogdyuttzu is offline
Send a message via Yahoo to bogdyuttzu
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 12-11-2011 , 05:46   Re: Radius Damage Stock
Reply With Quote #35

ehm I used simply DMG_BLAST and still no death message at all.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 06-19-2012 , 22:25   Re: Radius Damage Stock
Reply With Quote #36

Quote:
Originally Posted by NiHiLaNTh View Post
ehm I used simply DMG_BLAST and still no death message at all.
Bump

Maybe did you found the solution, but I'll also add a detail.

With the DMG_BLAST bitsum added to the damagetype bit mask, DeathMsg wont be show, because CS modified it for blocking DeathMsgs of being displayed. That's because the C4 uses it, and it's proper to hide DeathMsgs when a C4 kills anything on it's radius.

Also I'm going to bump this thread for requesting something related to this

How it would be a simulation of the RadiusDamage's functions integrated on CS? Would be nice to see them, maybe for me, I wanted to know how exactly CS does a radiable damage.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Reply



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:52.


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