Senior Member
Join Date: Dec 2005
Location: Thunderstorm Central
|
09-10-2012
, 08:02
Re: Hero: Danimoth X
|
#31
|
Quote:
Originally Posted by wsupbetch
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 = 1; team <= SH_MAXSLOTS; team++){
if( is_user_alive(team) && ( get_user_team(id) == get_user_team(team)) && gIsInvisible[team] == 0 ){
new origin1[3]
get_user_origin(team,origin1)
distanceBetween = get_distance(origin, origin1 )
if( distanceBetween < get_pcvar_num(pCvarCloakRadius) ){
emit_sound(id, CHAN_STATIC, "shmod/danimoth_cloak.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
emit_sound(team, CHAN_STATIC, "shmod/danimoth_cloak.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
DanimothInvisibility(team, get_pcvar_num(pCvarCloakPercent))
gIsInvisible[team] = 1
}
}
}
}
//----------------------------------------------------------------------------------------------
public DanimothDeCloak(id)
{
new distanceBetween
new origin[3]
get_user_origin(id,origin)
for(new team = 1; team <= SH_MAXSLOTS; team++){
if( is_user_alive(team) && ( get_user_team(id) == get_user_team(team)) && gIsInvisible[team] == 1 ){
new origin1[3]
get_user_origin(team,origin1)
distanceBetween = get_distance(origin, origin1 )
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 distanceBetween, idteam, alpharadius
new origin[3], origin1[3]
get_user_origin(id,origin)
idteam = get_user_team(id)
alpharadius = get_pcvar_num(pCvarCloakRadius)
for(new team = 1; team <= SH_MAXSLOTS; team++){
if ( team == id ) continue;
if( is_user_alive(team) && ( idteam == get_user_team(team)) && gIsInvisible[team] == 0 ){
get_user_origin(team,origin1)
distanceBetween = get_distance(origin, origin1 )
if( distanceBetween < alpharadius ){
emit_sound(id, CHAN_STATIC, "shmod/danimoth_cloak.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
emit_sound(team, CHAN_STATIC, "shmod/danimoth_cloak.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
DanimothInvisibility(team, get_pcvar_num(pCvarCloakPercent))
gIsInvisible[team] = 1
}
}
}
}
//----------------------------------------------------------------------------------------------
public DanimothDeCloak(id)
{
new distanceBetween, idteam, alpharadius
new origin[3], origin1[3]
get_user_origin(id,origin)
idteam = get_user_team(id)
alpharadius = get_pcvar_num(pCvarCloakRadius)
for(new team = 1; team <= SH_MAXSLOTS; team++){
if ( team == id ) continue;
if( is_user_alive(team) && ( idteam == get_user_team(team)) && gIsInvisible[team] == 1 ){
get_user_origin(team,origin1)
distanceBetween = get_distance(origin, origin1 )
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
|
|