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); } }
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];
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
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 || )
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 || )
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
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
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
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" ?????
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