Raised This Month: $7 Target: $400
 1% 

Aura Damage 1.1 - 13/03/10


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Hawk552 (427)
Asd'
Senior Member
Join Date: Jun 2009
Location: Argentina
Old 10-02-2009 , 19:34   Aura Damage 1.1 - 13/03/10
Reply With Quote #1

Description:
This plugin create an aura when damage received for the attacker.

There are 4 modes of aura colors:
Quote:
* amx_auramodes 0: This mode is the default mode, the aura is white color.
* amx_auramodes 1: This mode is the define mode, the aura color is determined for cvars.
* amx_auramodes 2: This mode is the random mode, the aura is random color.
* amx_auramodes 3: This mode is the team mode, the aura is red or blue color.
Cvars:
Quote:
amx_auraenable 1:
0: Disabled the plugin.
1: Enabled the plugin.

amx_auraradius 20:
XXX: Define the radius of the aura.

amx_auracolors 0 250 0:
XXX: Define the colors of the aura in define mode.

amx_auramodes 0:
0: Active the default mode.
1: Active the define mode.
2: Active the random mode.
3: Active the team mode.
Credits:
Quote:
IneedHelp
Changelog:
Quote:
Version 1.0:
- Fixed plugin.
- Updated plugin.
Version 1.1:
- Updated Thread.
- Fixed all errors/bugs found.
Attached Files
File Type: sma Get Plugin or Get Source (AuraDamage.sma - 4502 views - 3.4 KB)
__________________

Last edited by Asd'; 03-12-2010 at 22:13.
Asd' is offline
Send a message via MSN to Asd'
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 10-02-2009 , 19:35   Re: Aura Damage
Reply With Quote #2

Any videos of this and I don't really see why this is great...
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Old 10-02-2009, 19:38
Asd'
This message has been deleted by Asd'.
vazmar
Veteran Member
Join Date: Apr 2009
Old 10-02-2009 , 19:42   Re: Aura Damage
Reply With Quote #3

nice nice..
my opinion:
remove fakemeta and..

PHP Code:
            static Float:FOrigin[3]
            
pev(victimpev_originFOrigin)
            
            
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYFOrigin0)
            
write_byte(TE_DLIGHT)
            
engfunc(EngFunc_WriteCoordFOrigin[0])
            
engfunc(EngFunc_WriteCoordFOrigin[1])
            
engfunc(EngFunc_WriteCoordFOrigin[2])
            
write_byte(get_pcvar_num(Radius))
            
write_byte(clamp(str_to_num(Red), 0255))
            
write_byte(clamp(str_to_num(Green), 0255))
            
write_byte(clamp(str_to_num(Blue), 0,255))
            
write_byte(2)
            
write_byte(0)
            
message_end() 
--------->

PHP Code:
        new Origin[3]
        
get_user_origin(victimOrigin
    
        
message_begin(MSG_ALLSVC_TEMPENTITY)
        
write_byte(TE_DLIGHT)
        
write_coord(Origin[0])
        
write_coord(Origin[1])
        
write_coord(Origin[2])
        
write_byte(get_pcvar_num(Radius))
        
write_byte(clamp(str_to_num(Red), 0255))
        
write_byte(clamp(str_to_num(Green), 0255))
        
write_byte(clamp(str_to_num(Blue), 0,255))
        
write_byte(2)
        
write_byte(0)
        
message_end() 

Last edited by vazmar; 10-02-2009 at 19:45.
vazmar is offline
Old 10-02-2009, 19:44
Asd'
This message has been deleted by Asd'.
Old 10-02-2009, 19:52
Asd'
This message has been deleted by Asd'.
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 10-03-2009 , 01:54   Re: Aura Damage
Reply With Quote #4

Quote:
Originally Posted by Asd' View Post
PHP Code:
amx_coloursaura 
--->
PHP Code:
amx_coloursaura 
Btw, are the same ><
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
3Di
Member
Join Date: Sep 2009
Location: #php_title
Old 10-03-2009 , 02:55   Re: Aura Damage
Reply With Quote #5

Proper English would be Color Aura.

amx_coloraura
3Di is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-03-2009 , 03:28   Re: Aura Damage
Reply With Quote #6

Don't use MSG_ALL, keep MSG_PVS. Also you should cache the parsing stuff.
__________________
Arkshine is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 10-03-2009 , 04:59   Re: Aura Damage
Reply With Quote #7

looks cool
KadiR is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-03-2009 , 05:50   Re: Aura Damage
Reply With Quote #8

Maybe...

Code:
#include <amxmodx> #include <hamsandwich> #define Plugin "AuraDamage" #define Version "2.0" #define Author "Asd'" new Radius new ColorAura new Enable
new g_iMaxplayers;
#define IsPlayer(%1) ( 1 <= %1 <= g_iMaxplayers )
public plugin_init() {     register_plugin(Plugin, Version, Author)         Radius = register_cvar("amx_radiusaura", "30")     ColorAura = register_cvar("amx_coloursaura", "255 0 0")     Enable = register_cvar("amx_auradamage", "1")    
    g_iMaxplayers = get_maxplayers( );
        RegisterHam(Ham_TakeDamage, "player", "TKDamage") } public TKDamage(victim, attacker, Float:damage) {     if ( victim != attacker && damage > 0 ) {
        if( !IsPlayer( victim ) || !IsPlayer( attacker ) )
            return;                 if( !get_pcvar_num( Enable ) )             return;                 new ColorsAura[32], Red[4], Green[4], Blue[4]         get_pcvar_string(ColorAura, ColorsAura, 31)         parse(ColorsAura, Red, 3, Green, 3, Blue, 3)                 new Origin[3]         get_user_origin(victim, Origin)                 message_begin(MSG_ALL, SVC_TEMPENTITY)         write_byte(TE_DLIGHT)         write_coord(Origin[0])         write_coord(Origin[1])         write_coord(Origin[2])         write_byte(get_pcvar_num(Radius))         write_byte(clamp(str_to_num(Red), 0, 255))         write_byte(clamp(str_to_num(Green), 0, 255))         write_byte(clamp(str_to_num(Blue), 0,255))         write_byte(2)         write_byte(0)         message_end()     } }
__________________
xPaw is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 10-03-2009 , 06:12   Re: Aura Damage
Reply With Quote #9

Make a cvar to choose the mode

Example:
First: Defined by cvar
Second: According to the team
Third: Random color
__________________
alan_el_more is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-03-2009 , 06:21   Re: Aura Damage
Reply With Quote #10

@xPony :

Victim must be a player ( since you pass "player" as classname ), so the check is useless. Plus, the plugin is not only restricted to player damage, so the second check is also useless.
__________________

Last edited by Arkshine; 10-03-2009 at 06:32.
Arkshine is offline
Old 10-03-2009, 06:31
Arkshine
This message has been deleted by Arkshine. Reason: lag
Reply


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 03:58.


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