No Bullshit Clan

Gaming Chat => Call Of Duty Series => Call Of Duty 2 => Topic started by: smitty1258 on July 12, 2008, 10:49:39 AM

Title: show me what ya got...
Post by: smitty1258 on July 12, 2008, 10:49:39 AM
Code: [Select]
init ()
{
level.awe_announcerheadshot = awe\_util::cvardef ("awe_announcer_headshot", 0, 0, 3, "int");
level.awe_announcerheadbash = awe\_util::cvardef ("awe_announcer_headbash", 0, 0, 3, "int");
level.awe_announcerfirstblood = awe\_util::cvardef ("awe_announcer_firstblood", 0, 0, 3, "int");
level.awe_announcerendmatch = awe\_util::cvardef ("awe_announcer_endmatch", 0, 0, 1, "int");

level.awe_announcermultikill = awe\_util::cvardef ("awe_announcer_multikill", 0, 0, 3, "int");
if (level.awe_announcermultikill)
level.awe_announcermultikilltime = awe\_util::cvardef ("awe_announcer_multikill_time", 2, 1, 30, "int");

level.awe_announcerkillingspree = awe\_util::cvardef ("awe_announcer_killingspree", 0, 0, 3, "int");
if (level.awe_announcerkillingspree)
level.awe_announcerkillingspreekills = awe\_util::cvardef ("awe_announcer_killingspree_kills", 3, 1, 99, "int");

level.awe_announcercountdown = awe\_util::cvardef ("awe_announcer_countdown", 0, 0, 3, "int");
if (level.awe_announcercountdown)
thread checkCountdown ();

level.awe_announcercamper = awe\_util::cvardef ("awe_announcer_camper", 0, 0, 1, "int");
level.awe_announcerteamkill = awe\_util::cvardef ("awe_announcer_teamkill", 0, 0, 1, "int");
}

checkHeadKill (attacker, sHitLoc, sMeansOfDeath)
{
if (sHitLoc != "head")
return;

if (sMeansOfDeath == "MOD_MELEE")
{
if ((level.awe_announcerheadbash == 1) || (level.awe_announcerheadbash == 3))
{
self iprintlnbold (&"ANNOUNCER_TOOK_HEADBASH");
attacker iprintlnbold (&"ANNOUNCER_GAVE_HEADBASH");
}

if ((level.awe_announcerheadbash == 2) || (level.awe_announcerheadbash == 3))
{
self thread announceSound ("headhunter", 1.5);
attacker thread announceSound ("headhunter", 1.5);
}
}
else
{
if ((level.awe_announcerheadshot == 1) || (level.awe_announcerheadshot == 3))
{
self iprintlnbold (&"ANNOUNCER_TOOK_HEADSHOT");
attacker iprintlnbold (&"ANNOUNCER_GAVE_HEADSHOT");
}

if ((level.awe_announcerheadshot == 2) || (level.awe_announcerheadshot == 3))
{
self thread announceSound ("headshot", 1.5);
attacker thread announceSound ("headshot", 1.5);
}
}
}

checkFirstblood (attacker)
{
self endon ("awe_killthreads");
self endon ("disconnect");

if (! level.awe_announcerfirstblood)
return;

if (game["state"] != "playing")
return;

if ((level.awe_gametype == "esd" ) || (level.awe_gametype == "lib" ) || (level.awe_gametype == "lts" ) || (level.awe_gametype == "re" ) || (level.awe_gametype == "sd" ) && (! game["matchstarted"]))
return;

if (isdefined (game["firstblood"]))
return;

game["firstblood"] = true;

if ((level.awe_announcerfirstblood == 1) || (level.awe_announcerfirstblood == 3))
{
self iprintlnbold (&"ANNOUNCER_ARE_FIRSTBLOOD");
if (isPlayer (attacker) && (attacker != self))
attacker iprintlnbold (&"ANNOUNCER_GOT_FIRSTBLOOD");

awe\_util::iprintlnFIXED (&"ANNOUNCER_IS_FIRSTBLOOD", self);
}

if ((level.awe_announcerfirstblood == 2) || (level.awe_announcerfirstblood == 3))
{
self thread announceSound ("firstblood", 1);
if (isPlayer (attacker) && (attacker != self))
attacker thread announceSound ("firstblood", 1);
}
}

checkEndmatch ()
{
if (! level.awe_announcerendmatch)
return;

if (! level.awe_teamplay)
return;

losers = "";
winners = "";

if ((getTeamScore ("allies") == 0) && (getTeamScore ("axis") > 0))
{
losers = "allies";
winners = "axis";
}
else if ((getTeamScore ("axis") == 0) && (getTeamScore ("allies") > 0))
{
losers = "axis";
winners = "allies";
}

if (losers == "")
return;

wait 3;

players = getentarray ("player", "classname");
for (i = 0; i < players.size; i ++)
{
player = players[i];

if (! isPlayer (player))
continue;

if (! isdefined (player.pers["team"]))
continue;

if (player.pers["team"] == winners)
player thread announceSound ("flawless_victory", 0);
else if (player.pers["team"] == losers)
player thread announceSound ("humiliating_defeat", 0);
}
}

accountKill ()
{
self endon ("awe_killthreads");
self endon ("disconnect");

if (level.awe_announcermultikill)
{
if (! isdefined (self.multikill_times))
{
self.multikill_times = [];
self.multikill_next = 0;
}

self.multikill_times[self.multikill_next] = getTime ();

last0 = self.multikill_times[self.multikill_next];

index = self.multikill_next - 1;
if (index < 0)
index += 6;
last1 = self.multikill_times[index];

index --;
if (index < 0)
index += 6;
last2 = self.multikill_times[index];

index --;
if (index < 0)
index += 6;
last3 = self.multikill_times[index];

index --;
if (index < 0)
index += 6;
last4 = self.multikill_times[index];

index --;
if (index < 0)
index += 6;
last5 = self.multikill_times[index];

message = "";
sound = "";

if (isdefined (last5) && ((last0 - last5) <= 1000 * level.awe_announcermultikilltime))
{
message = &"ANNOUNCER_MONSTERKILL";
sound = "monsterkill";
}
else if (isdefined (last4) && ((last0 - last4) <= 1000 * level.awe_announcermultikilltime))
{
message = &"ANNOUNCER_ULTRAKILL";
sound = "ultrakill";
}
else if (isdefined (last3) && ((last0 - last3) <= 1000 * level.awe_announcermultikilltime))
{
message = &"ANNOUNCER_MEGAKILL";
sound = "megakill";
}
else if (isdefined (last2) && ((last0 - last2) <= 1000 * level.awe_announcermultikilltime))
{
message = &"ANNOUNCER_MULTIKILL";
sound = "multikill";
}
else if (isdefined (last1) && ((last0 - last1) <= 1000 * level.awe_announcermultikilltime))
{
message = &"ANNOUNCER_DOUBLEKILL";
sound = "doublekill";
}

if (sound != "")
{
if ((level.awe_announcermultikill == 1) || (level.awe_announcermultikill == 3))
self iprintlnbold (message);

if ((level.awe_announcermultikill == 2) || (level.awe_announcermultikill == 3))
self thread announceSound (sound, 1.5);
}

self.multikill_next ++;
if (self.multikill_next > 5)
self.multikill_next = 0;
}

if (level.awe_announcerkillingspree)
{
if (! isdefined (self.killingspree))
self.killingspree = 0;

self.killingspree ++;

ratio = self.killingspree / level.awe_announcerkillingspreekills;
if (ratio == int (ratio))
{
switch (int (ratio))
{
case 1 :
message_self = &"ANNOUNCER_KILLING_SPREE";
message_all = &"ANNOUNCER_IS_KILLING_SPREE";
sound = "killing_spree";
break;
case 2 :
message_self = &"ANNOUNCER_RAGE";
message_all = &"ANNOUNCER_IS_RAGE";
sound = "rage";
break;
case 3 :
message_self = &"ANNOUNCER_DOMINATING";
message_all = &"ANNOUNCER_IS_DOMINATING";
sound = "dominating";
break;
case 4 :
message_self = &"ANNOUNCER_RAMPAGE";
message_all = &"ANNOUNCER_IS_RAMPAGE";
sound = "rampage";
break;
case 5 :
message_self = &"ANNOUNCER_UNSTOPPABLE";
message_all = &"ANNOUNCER_IS_UNSTOPPABLE";
sound = "unstoppable";
break;
case 6 :
message_self = &"ANNOUNCER_OWNAGE";
message_all = &"ANNOUNCER_IS_OWNAGE";
sound = "ownage";
break;
case 7 :
message_self = &"ANNOUNCER_BERZERK";
message_all = &"ANNOUNCER_IS_BERZERK";
sound = "berzerk";
break;
case 8 :
message_self = &"ANNOUNCER_WHICKED_SICK";
message_all = &"ANNOUNCER_IS_WHICKED_SICK";
sound = "whicked_sick";
break;
case 9 :
message_self = &"ANNOUNCER_GODLIKE";
message_all = &"ANNOUNCER_IS_GODLIKE";
sound = "godlike";
break;
default :
message_self = &"ANNOUNCER_HOLY_SHIT";
message_all = &"ANNOUNCER_IS_HOLY_SHIT";
sound = "holy_shit";
break;
}

if ((level.awe_announcerkillingspree == 1) || (level.awe_announcerkillingspree == 3))
{
self iprintlnbold (message_self);
awe\_util::iprintlnFIXED (message_all, self);
}

if ((level.awe_announcerkillingspree == 2) || (level.awe_announcerkillingspree == 3))
self thread announceSound (sound, 1.5);
}
}
}

accountDeath ()
{
if (! level.awe_announcerkillingspree)
return;

if ((isdefined (self.killingspree)) && (self.killingspree >= level.awe_announcerkillingspreekills))
awe\_util::iprintlnFIXED (&"ANNOUNCER_END_SPREE", self);

self.killingspree = 0;
}

announceSound (sound, delay)
{
self endon ("awe_killthreads");
self endon ("disconnect");

while (isdefined (self.announceSound_running))
wait 0.1;

self.announceSound_running = true;

self playLocalSound (sound);
wait delay;

self.announceSound_running = undefined;
}

checkCountdown ()
{
if (level.awe_roundbased)
return;

while ((! isdefined (level.mapended)) || (! level.mapended))
{
wait 1;

if ((! isdefined (game["state"])) || (game["state"] != "playing"))
continue;

if ((! isdefined (level.timelimit)) || (level.timelimit <= 0))
continue;

seconds_left = int ((level.starttime + level.timelimit * 60 * 1000 - getTime () + 500) / 1000);

switch (seconds_left)
{
case 1 :
case 2 :
case 3 :
case 4 :
case 5 :
case 6 :
case 7 :
case 8 :
case 9 :
case 10 :
sound = seconds_left + "s";
message = &"ANNOUNCER_COUNTDOWN";
break;
case 30 :
case 60 :
sound = seconds_left + "s";
message = &"ANNOUNCER_COUNTDOWN_SEC";
break;
case 120 :
sound = seconds_left + "s";
message = &"ANNOUNCER_COUNTDOWN_120";
break;
case 300 :
sound = seconds_left + "s";
message = &"ANNOUNCER_COUNTDOWN_300";
break;
default :
sound = "";
message = "";
break;
}

if (sound != "")
{
if ((level.awe_announcercountdown == 1) || (level.awe_announcercountdown == 3))
{
if ((seconds_left == 120) || (seconds_left == 300))
iprintlnbold (message);
else
iprintlnbold (message, seconds_left);
}

if ((level.awe_announcercountdown == 2) || (level.awe_announcercountdown == 3))
{
players = getentarray ("player", "classname");
for (i = 0; i < players.size; i ++)
players[i] thread announceSound (sound, 0);
}
}
}
}

camper ()
{
if (! level.awe_announcercamper)
return;

self thread announceSound ("camper", 0.5);
}

teamkill (attacker)
{
if (! level.awe_announcerteamkill)
return;

self thread announceSound ("confusion", 1);
attacker thread announceSound ("confusion", 1);
}


Fix the headshot problem. Now when in the pubs if you shoot someone in the head, the announcer doesnt say headshot. My recommendation would be to copy and paste into notepad.
Title: Re: show me what ya got...
Post by: smitty1258 on July 14, 2008, 07:27:39 AM
bump
Title: Re: show me what ya got...
Post by: werth on July 14, 2008, 03:32:23 PM
looked throught it, i was the one that brought this up. really only the first section deals with the headshot. i dont see a problem, but then again i didnt check it thoroughly. I think it may be another file. remember one of the Headshot's was lower and one was upper case?
Title: Re: show me what ya got...
Post by: gohanix on August 06, 2008, 01:55:14 PM
what language is that?
is tehre any tutorials for cod2 moding?
Title: Re: show me what ya got...
Post by: DirtOne on August 06, 2008, 02:10:52 PM
lol i got now idea what all of that means  :-[
Title: Re: show me what ya got...
Post by: carrot on August 06, 2008, 05:08:15 PM
Looks like c# to me.. but I'm an old man, poor vision, etc.
Title: Re: show me what ya got...
Post by: gohanix on August 07, 2008, 03:05:41 PM
i'd be interested in working on stuff like that..

is the sound file still there?
Title: Re: show me what ya got...
Post by: DirtOne on August 07, 2008, 04:13:00 PM
I would too if i could understand any programming  :-[
Title: Re: show me what ya got...
Post by: gohanix on August 11, 2008, 07:57:39 AM
its quite simple once you know the syntax..

smitty.. is there no switch/case statment? would be easier than using IF/else
Title: Re: show me what ya got...
Post by: vonDuTch on August 11, 2008, 08:24:02 AM
for me this looks like "ABRAKADABRA" like 1111000110010010001011000110101001000111!!!!!!
Title: Re: show me what ya got...
Post by: gohanix on August 11, 2008, 08:42:24 AM
1111000110010010001011000110101001000111+1 = 1111000110010010001011000110101001001000
Title: Re: show me what ya got...
Post by: DirtOne on August 11, 2008, 01:00:12 PM
for me this looks like "ABRAKADABRA" like 1111000110010010001011000110101001000111!!!!!!

lol same here
Title: Re: show me what ya got...
Post by: Knott on August 11, 2008, 08:06:54 PM
what language is that?
is tehre any tutorials for cod2 moding?

looks like C+ , not easy!
Title: Re: show me what ya got...
Post by: Evilgenius on August 11, 2008, 10:48:30 PM
probably has to do with tanks as in they are connected :P


Title: Re: show me what ya got...
Post by: Sounds on August 12, 2008, 02:25:45 AM
what language is that?
is tehre any tutorials for cod2 moding?

looks like C+ , not easy!



yes technically it's QuakeC. and it's easy.
Title: Re: show me what ya got...
Post by: DirtOne on August 12, 2008, 09:28:43 AM
what language is that?
is tehre any tutorials for cod2 moding?

looks like C+ , not easy!



yes technically it's QuakeC. and it's easy.

Teach me then  ;D
Title: Re: show me what ya got...
Post by: Evilgenius on August 12, 2008, 12:26:35 PM
/me says "wax on...wax off"
Title: Re: show me what ya got...
Post by: Cristobal Alamo on August 12, 2008, 08:52:44 PM
wax on,wax off?lol
Title: Re: show me what ya got...
Post by: Evilgenius on August 12, 2008, 09:12:32 PM
wtf you never seen karate kid?
Title: Re: show me what ya got...
Post by: smitty1258 on August 13, 2008, 01:52:33 AM
so no one can find the error?

lol
Title: Re: show me what ya got...
Post by: gohanix on August 13, 2008, 02:03:06 PM
honestly i didnt look..
Title: Re: show me what ya got...
Post by: Pitbully on August 13, 2008, 03:24:13 PM
Answer your xfire I will edit this until you talk to me fawker...
Title: Re: show me what ya got...
Post by: gohanix on August 13, 2008, 03:52:08 PM
where is the announceSound  function?
Title: Re: show me what ya got...
Post by: gohanix on August 13, 2008, 04:07:03 PM
if ((level.awe_announcerheadshot == 1) || (level.awe_announcerheadshot == 3))
      {
         self iprintlnbold (&"ANNOUNCER_TOOK_HEADSHOT");
         attacker iprintlnbold (&"ANNOUNCER_GAVE_HEADSHOT");
      }
   
      if ((level.awe_announcerheadshot == 2) || (level.awe_announcerheadshot == 3))
      {
         self thread announceSound ("headshot", 1.5);
         attacker thread announceSound ("headshot", 1.5);
      }

explain why you check for 1(or2) or 3 ???

i dotn know the awe mod at all.. but these if statements look funny
Title: Re: show me what ya got...
Post by: Sounds on August 13, 2008, 04:30:08 PM
if ((level.awe_announcerheadshot == 1) || (level.awe_announcerheadshot == 3))
      {
         self iprintlnbold (&"ANNOUNCER_TOOK_HEADSHOT");
         attacker iprintlnbold (&"ANNOUNCER_GAVE_HEADSHOT");
      }
   
      if ((level.awe_announcerheadshot == 2) || (level.awe_announcerheadshot == 3))
      {
         self thread announceSound ("headshot", 1.5);
         attacker thread announceSound ("headshot", 1.5);
      }

explain why you check for 1(or2) or 3 ???

i dotn know the awe mod at all.. but these if statements look funny

it's doing different things for different values there. if level.awe_announcerheadshot == 1 is announces just as text on the screen.

if level.awe_announcerheadshot == 2 it just makes the sound play.

if level.awe_announcerheadshot == 3 it does both of the above.
Title: Re: show me what ya got...
Post by: vonDuTch on August 13, 2008, 04:49:56 PM
still abrakadabra to me, c+ even more of it!!!!! plain englisch pls!!!! LOLZzZZz
Title: Re: show me what ya got...
Post by: Pitbully on August 13, 2008, 04:50:23 PM
Lol gohanix steals my ideas...  1 of the variables doesnt seem to be correct.  I would test the variables and how its passing them.  It also looks like the nested if statement is being skipped hence why no headshot and no headbash sound.
|| = and

Is there any reason you wouldnt play the sound?????  dont know why the or / or the and statement is there ( I mean this ||  )

If it was me.

{
   if (sHitLoc != "head")
      return;

   if (sMeansOfDeath == "MOD_MELEE")
   {
      if ((level.awe_announcerheadbash == 1) || (level.awe_announcerheadbash == 3))
      {
         self iprintlnbold (&"ANNOUNCER_TOOK_HEADBASH");
         self thread announceSound ("headhunter", 1.5);
         attacker iprintlnbold (&"ANNOUNCER_GAVE_HEADBASH");
         attacker thread announceSound ("headhunter", 1.5);   
      }
   
      
   }
   else
   {
      if ((level.awe_announcerheadshot == 1) || (level.awe_announcerheadshot == 3))
      {
         self iprintlnbold (&"ANNOUNCER_TOOK_HEADSHOT");
         self thread announceSound ("headshot", 1.5);
         attacker iprintlnbold (&"ANNOUNCER_GAVE_HEADSHOT");
                                      attacker thread announceSound ("headshot", 1.5);
      }
   
         
      
   }
}
Title: Re: show me what ya got...
Post by: gohanix on August 13, 2008, 05:15:51 PM
can you explain the meaning of the values.. 1 2 3?
Title: Re: show me what ya got...
Post by: Sounds on August 13, 2008, 06:26:25 PM
// Announce head shot kill (0 = disabled, 1 = message only, 2 = sound only, 3 = both, default = 0)
// Will be announced to the victim and his killer
set awe_announcer_headshot 3
Title: Re: show me what ya got...
Post by: Sounds on August 13, 2008, 06:26:58 PM
Lol gohanix steals my ideas...  1 of the variables doesnt seem to be correct.  I would test the variables and how its passing them.  It also looks like the nested if statement is being skipped hence why no headshot and no headbash sound.
|| = and

Is there any reason you wouldnt play the sound?????  dont know why the or / or the and statement is there ( I mean this ||  )

If it was me.

{
   if (sHitLoc != "head")
      return;

   if (sMeansOfDeath == "MOD_MELEE")
   {
      if ((level.awe_announcerheadbash == 1) || (level.awe_announcerheadbash == 3))
      {
         self iprintlnbold (&"ANNOUNCER_TOOK_HEADBASH");
         self thread announceSound ("headhunter", 1.5);
         attacker iprintlnbold (&"ANNOUNCER_GAVE_HEADBASH");
         attacker thread announceSound ("headhunter", 1.5);   
      }
   
      
   }
   else
   {
      if ((level.awe_announcerheadshot == 1) || (level.awe_announcerheadshot == 3))
      {
         self iprintlnbold (&"ANNOUNCER_TOOK_HEADSHOT");
         self thread announceSound ("headshot", 1.5);
         attacker iprintlnbold (&"ANNOUNCER_GAVE_HEADSHOT");
                                      attacker thread announceSound ("headshot", 1.5);
      }
   
         
      
   }
}


meeeep, sorry wrong answer, try again.
Title: Re: show me what ya got...
Post by: Sounds on August 13, 2008, 06:51:43 PM
i took the whole if statements out altogether just to prove your theory's completely wrong. tried it. still no worky
Title: Re: show me what ya got...
Post by: Evilgenius on August 13, 2008, 07:35:30 PM
reinstall awe ftw and btw wtf happend to my ice sig -_-
Title: Re: show me what ya got...
Post by: Pitbully on August 13, 2008, 09:47:33 PM
I would try to pass the argument to the display.  Something like this

self iprintlnbold (&"ANNOUNCER_TOOK_HEADSHOT & level.awe_announcerheadshot & announceSound");

the reason I put announceSound in because some places you have sound = so I assume annouceSound should have an argument associated with it.  Its hard to piece together a program with 1/20th of the code :D

ex sound = "ultrakill"; and it makes the sound "Ultrakill" 

another thing I looked at the call for announcesound so if the arguments are passed correctly you should have a display of headshot 1.5  If not then that is your problem.

Sounds you ass I am not the one actively programming I came on here and had a few guesses within say 10 minutes ask Gohanix.  If you are attempting to be a smart ass it doesnt help the cause.

Title: Re: show me what ya got...
Post by: Sounds on August 13, 2008, 10:55:52 PM
uh it's called a joke. chill
Title: Re: show me what ya got...
Post by: vonDuTch on August 14, 2008, 05:21:52 AM
i got it, i got it!

B
U
M
P
S



the answer of 1+2+3= 6








Title: Re: show me what ya got...
Post by: gohanix on August 14, 2008, 09:19:35 AM
// Announce head shot kill (0 = disabled, 1 = message only, 2 = sound only, 3 = both, default = 0)
// Will be announced to the victim and his killer
set awe_announcer_headshot 3

how do you determine the values??  and can you post the annoucesound function...
Title: Re: show me what ya got...
Post by: gohanix on August 14, 2008, 09:23:33 AM
i got it, i got it!

B
U
M
P
S



the answer of 1+2+3= 6


1 + 10 + 11 = 110
Title: Re: show me what ya got...
Post by: werth on August 14, 2008, 02:38:31 PM
i remember seeing a while back. when you got a headshot (i get alot of them ;)) the error message is something like cannot play file: headshot.mp3 or whatever... in the mod,  the actual headshot file was Headshot.mp3... or something like that.
my memory is grainy, but i remember one thing was different than the other
Title: Re: show me what ya got...
Post by: vonDuTch on August 14, 2008, 04:57:22 PM
see, 1+1=11!!
Title: Re: show me what ya got...
Post by: Cristobal Alamo on August 14, 2008, 09:57:49 PM
see, 1+1=11!!

wait...im tryin to find the solution...1+10=a*b7/(ab)*(bc)
Title: Re: show me what ya got...
Post by: Sounds on August 15, 2008, 12:10:10 AM
i remember seeing a while back. when you got a headshot (i get alot of them ;)) the error message is something like cannot play file: headshot.mp3 or whatever... in the mod,  the actual headshot file was Headshot.mp3... or something like that.
my memory is grainy, but i remember one thing was different than the other

headshot,,announcer/Headshot.mp3,1,1,na,,,120,600,announcer,streamed,,,0.7
Title: Re: show me what ya got...
Post by: + trip on August 15, 2008, 12:04:43 PM
if ((level.awe_announcerheadbash == 1) || (level.awe_announcerheadbash == 3))
      {
         self iprintlnbold (&"ANNOUNCER_TOOK_HEADBASH");
         attacker iprintlnbold (&"ANNOUNCER_GAVE_HEADBASH");
      }
   
      if ((level.awe_announcerheadbash == 2) || (level.awe_announcerheadbash == 3))
      {
         self thread announceSound ("headhunter", 1.5);
         attacker thread announceSound ("headhunter", 1.5);
      }
   }
   else
   {
      if ((level.awe_announcerheadshot == 1) || (level.awe_announcerheadshot == 3))
      {
         self iprintlnbold (&"ANNOUNCER_TOOK_HEADSHOT");
         attacker iprintlnbold (&"ANNOUNCER_GAVE_HEADSHOT");
      }
   
      if ((level.awe_announcerheadshot == 2) || (level.awe_announcerheadshot == 3))
      {
         self thread announceSound ("headshot", 1.5);
         attacker thread announceSound ("headshot", 1.5);
      }
   }
}


There is an extra bracket after else that should be removed i think.  And even the lines up.  I think it should look like below. 
Also why is the "i" in the word "iprintlnbold"   a "L" instead of an "i" ?????

if ((level.awe_announcerheadbash == 1) || (level.awe_announcerheadbash == 3))
      {
         self iprintlnbold (&"ANNOUNCER_TOOK_HEADBASH");
         attacker iprintlnbold (&"ANNOUNCER_GAVE_HEADBASH");
      }
   
      if ((level.awe_announcerheadbash == 2) || (level.awe_announcerheadbash == 3))
      {
         self thread announceSound ("headhunter", 1.5);
         attacker thread announceSound ("headhunter", 1.5);
      }
   
     else if ((level.awe_announcerheadshot == 1) || (level.awe_announcerheadshot == 3))
      {
         self iprintlnbold (&"ANNOUNCER_TOOK_HEADSHOT");
         attacker iprintlnbold (&"ANNOUNCER_GAVE_HEADSHOT");
      }
   
      if ((level.awe_announcerheadshot == 2) || (level.awe_announcerheadshot == 3))
      {
         self thread announceSound ("headshot", 1.5);
         attacker thread announceSound ("headshot", 1.5);
      }
   }
}


Thats my guess for now  :)

+  trip
Title: Re: show me what ya got...
Post by: vonDuTch on August 15, 2008, 12:21:47 PM
this is not the only thing thats wrong, cause the killingspree begins @ 2 instead of 3, lol
Title: Re: show me what ya got...
Post by: Sounds on August 15, 2008, 03:44:12 PM
i'm 99% positive nothing is wrong with the code. it just stopped working one day. i think we might need to redo the a2.iwd.
Title: Re: show me what ya got...
Post by: Evilgenius on August 15, 2008, 11:59:16 PM
reinstall awe ftw and btw wtf happend to my ice sig -_-


:P
Title: Re: show me what ya got...
Post by: Sounds on August 16, 2008, 01:52:54 AM
can't reinstall awe....it's been modded to all hell.
Title: Re: show me what ya got...
Post by: smitty1258 on August 16, 2008, 08:56:11 AM
the headbash sound works.
 
When you bash someone, it says headhunter. Or at least used to.... Pretty sure it still does.
Title: Re: show me what ya got...
Post by: Evilgenius on August 16, 2008, 10:57:28 AM
yea it still does i heard it last night
Title: Re: show me what ya got...
Post by: + trip on August 16, 2008, 02:07:03 PM
can't reinstall awe....it's been modded to all hell.

Worse comes to worse reinstall awe and then cut and paste the moded section of code back in.  Just make a backup before you do just in case that don't work.  Not sure if it would be that simple.

Also if the headbash sound works then that means there is nothing wrong with that code.  Well then why not copy that code and replace everything that says "headbash" with "headshot" and see if that works.

Not to sound stupid but didn't the headshot sound go away when you guys made the "Nobs Menu Screen".  Maybe the "Nobs Menu Screen" is interfering.

Just trying to help.   :)

+  trip
Title: Re: show me what ya got...
Post by: Sounds on August 16, 2008, 07:09:31 PM
can't reinstall awe....it's been modded to all hell.

Worse comes to worse reinstall awe and then cut and paste the moded section of code back in.  Just make a backup before you do just in case that don't work.  Not sure if it would be that simple.

Also if the headbash sound works then that means there is nothing wrong with that code.  Well then why not copy that code and replace everything that says "headbash" with "headshot" and see if that works.

Not to sound stupid but didn't the headshot sound go away when you guys made the "Nobs Menu Screen".  Maybe the "Nobs Menu Screen" is interfering.

Just trying to help.   :)

+  trip

you have no idea how much has been changed, i wouldn't even know where to start. i think someone just needs to rebuild the a2.iwd. we had problems with it in the past with files getting corrupt at one point.
Title: Re: show me what ya got...
Post by: gohanix on August 18, 2008, 01:53:15 PM
what does the awe mod offer? over the original unmodded cod2
Title: Re: show me what ya got...
Post by: Sounds on August 18, 2008, 03:07:36 PM
um, a lot....we use several features as well as several features i've added myself(custom map rotation system that allows switching between rifles only, bash, etc)
Title: Re: show me what ya got...
Post by: gohanix on August 27, 2008, 11:53:24 AM
would it be possible to start from scratch?