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

Hero: Danimoth X


Post New Thread Reply   
 
Thread Tools Display Modes
G-Dog
Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
Old 09-10-2012 , 08:02   Re: Hero: Danimoth X
Reply With Quote #31

Quote:
Originally Posted by wsupbetch View Post
Can anyone help me:

1. Sometimes my teammates go invisible, but most likely rarely happens. (usually original CS models go invisible, but when combined with scream, soldier, hmg, it doesn't)

2. When another teammate of mine has the same skill, it makes an annoying sound that has a message "You are De-Cloaked" when i'm not even in range of the person that has danimoth at all.

Able to fix anyone????
for the first, that should happen if your teammates get within "danimoth_radius" distance of you, set to -1 to disable that aspect. for the second issue replace
PHP Code:
public DanimothCloak(id)
{
    new 
distanceBetween
    
new origin[3]
    
get_user_origin(id,origin)
    
    for(new 
team 1team <= SH_MAXSLOTSteam++){
        if( 
is_user_alive(team) && ( get_user_team(id) == get_user_team(team)) && gIsInvisible[team] == ){
            new 
origin1[3]
            
get_user_origin(team,origin1)
        
            
distanceBetween get_distance(originorigin1 )
            if( 
distanceBetween get_pcvar_num(pCvarCloakRadius) ){
                
emit_sound(idCHAN_STATIC"shmod/danimoth_cloak.wav"VOL_NORMATTN_NORM0PITCH_NORM)
                
emit_sound(teamCHAN_STATIC"shmod/danimoth_cloak.wav"VOL_NORMATTN_NORM0PITCH_NORM)
                
DanimothInvisibility(teamget_pcvar_num(pCvarCloakPercent))
                
gIsInvisible[team] = 1
            
}
        }
    }     
}
//----------------------------------------------------------------------------------------------
public DanimothDeCloak(id)
{
    new 
distanceBetween
    
new origin[3]
    
get_user_origin(id,origin)
    
    for(new 
team 1team <= SH_MAXSLOTSteam++){
        if( 
is_user_alive(team) && ( get_user_team(id) == get_user_team(team)) && gIsInvisible[team] == ){
            new 
origin1[3]
            
get_user_origin(team,origin1)
            
            
distanceBetween get_distance(originorigin1 )
            if( 
distanceBetween get_pcvar_num(pCvarCloakRadius) ){
                
shUnglow(team)
                
client_print(team,print_center,"[SH]Danimoth: You are De-cloaked")
                
gIsInvisible[team] = 0
            
}
        }
    }      

with
PHP Code:
public DanimothCloak(id)
{
    new 
distanceBetweenidteamalpharadius 
    
new origin[3], origin1[3]
    
get_user_origin(id,origin)
    
idteam get_user_team(id)
    
alpharadius get_pcvar_num(pCvarCloakRadius)
    
    for(new 
team 1team <= SH_MAXSLOTSteam++){
        if ( 
team == id ) continue;
        if( 
is_user_alive(team) && ( idteam == get_user_team(team)) && gIsInvisible[team] == ){
            
get_user_origin(team,origin1)
        
            
distanceBetween get_distance(originorigin1 )
            if( 
distanceBetween alpharadius  ){
                
emit_sound(idCHAN_STATIC"shmod/danimoth_cloak.wav"VOL_NORMATTN_NORM0PITCH_NORM)
                
emit_sound(teamCHAN_STATIC"shmod/danimoth_cloak.wav"VOL_NORMATTN_NORM0PITCH_NORM)
                
DanimothInvisibility(teamget_pcvar_num(pCvarCloakPercent))
                
gIsInvisible[team] = 1
            
}
        }
    }     
}
//----------------------------------------------------------------------------------------------
public DanimothDeCloak(id)
{
    new 
distanceBetweenidteamalpharadius
    
new origin[3], origin1[3]
    
get_user_origin(id,origin)
    
idteam get_user_team(id
    
alpharadius get_pcvar_num(pCvarCloakRadius)
    
    for(new 
team 1team <= SH_MAXSLOTSteam++){
        if ( 
team == id ) continue;
        if( 
is_user_alive(team) && ( idteam == get_user_team(team)) && gIsInvisible[team] == ){
            
get_user_origin(team,origin1)
            
            
distanceBetween get_distance(originorigin1 )
            if( 
distanceBetween alpharadius ){
                
shUnglow(team)
                
client_print(team,print_center,"[SH]Danimoth: You are De-cloaked")
                
gIsInvisible[team] = 0
            
}
        }
    }      

__________________
If at first you don't succeed, then skydiving isn't for you.

Last edited by G-Dog; 09-10-2012 at 08:09. Reason: trying to alter code directly in browser can get confusing
G-Dog is offline
Send a message via AIM to G-Dog
wsupbetch
Junior Member
Join Date: Aug 2012
Old 09-11-2012 , 16:01   Re: Hero: Danimoth X
Reply With Quote #32

Quote:
for the first, that should happen if your teammates get within "danimoth_radius" distance of you, set to -1 to disable that aspect. for the second issue replace
Cool thanks, i'm still confused on the first problem though..
How do I "set to -1" in order to disable the aspect?
wsupbetch is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 09-12-2012 , 06:27   Re: Hero: Danimoth X
Reply With Quote #33

danimoth_radius -1
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
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 13:52.


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