Post: New cod 4 sound gun scripts (Pretty cool)
11-30-2011, 12:38 PM #1
Jacob-And-Britt
I’m too L33T
(adsbygoogle = window.adsbygoogle || []).push({}); Hello this is J&B* i got bored and set down and thought of a cool new script i can make and then i got my sound guns there not much but it is a pretty cool mod. For some reason i only got 2 working :wtf: but i am going to post the ones i could not get working either. Also if you want to use this im sure it can easly be converted to any other game atleast the level up will work. The other ones you will have to but in that games sounds. Ok lets get to the point what this mod does is when you choose this from the menu it will give you a gun (It will work with any gun) then when you shoot the gun it will make a sound and like i said i could only get 2 of them working witch is the level up and the mouse over. Tut to change sounds for noobs at the bottom.
This can be called from the menu and it can be put on onplayerspawned how ever you like it i have tested it on both and it works 100%!! SmileAwesome face

Sounds givin to me by IVI40A3Fusionz

Switching Sides
Half Time
Overtime



These are the working ones.
BrittsGunSoundsBing()
{
self giveweapon( "defaultweapon_mp" );
self switchToWeapon("defaultweapon_mp");
self waittill("Attack");
self playSound("mouse_over");
self thread BrittsGunSoundsBing();
}
BrittsGunSoundsLevel()
{
self giveweapon( "ak74u_mp" );
self switchToWeapon("ak74u_mp");
self waittill("Attack");
self playSound("mp_level_up");
self thread BrittsGunSoundsLevel();
}


Sounds i did not include or test.

self playSound("mp_ingame_summary");
self playSound("ui_mp_timer_countdown");
self playSound("claymore_activated");
and much more!!



These are the non-working ones.
BrittsGunSoundsAir()
{
self giveweapon( "barret_mp" );
self switchToWeapon("barret_mp");
self waittill("Attack");
self playSound("air_raid_a");
self thread BrittsGunSoundsAir();
}

BrittsGunSoundsBark()
{
self giveweapon( "p90_mp" );
self switchToWeapon("p90_mp");
self waittill("Attack");
self playSound("anml_dog_bark_close");
self thread BrittsGunSoundsBark();
}

BrittsGunSoundsNuke()
{
self giveweapon( "defaultweapon_mp" );
self switchToWeapon("defaultweapon_mp");
self waittill("Attack");
self playSound("nuke_flash");
self thread BrittsGunSoundsNuke();
}

BrittsGunSoundsCar()
{
self giveweapon( "mp5_mp" );
self switchToWeapon("mp5_mp");
self waittill("Attack");
self playSound("vehicle_explo");
self thread BrittsGunSoundsCar();
}



Noob tut.

If you have your own sound that i did not include this tut will show you how to change sound.
Ok look for this. "self playSound("vehicle_explo");" now if you go that then look for this "vehicle_explo" now all you have to do is change that sound (Example) (This is not a real sound) self playSound("shoot_gun"); then your sound is changed. Smile Have fun!!


Credits:
IVI40A3Fusionz
(adsbygoogle = window.adsbygoogle || []).push({});
11-30-2011, 09:50 PM #11
Originally posted by jbglitching View Post
Thats how you do music lol i litterly just wrote these this morning i though it would be cool! Im not really a leach any more i don't take peoples stuff and call it mine and if i do take peoples stuff i put there name in creds for making it. Smile
Also, learn to use the reply button. That is also your friend Winky Winky
11-30-2011, 09:52 PM #12
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by x. View Post
Firstly, Please learn how to use the for (;; ) loop. It is your friend Winky Winky

Secondly, This is from my patch. It plays you teh muzik Smile

    
//works for Karoolus's menu. Change it if yours is different
M=self addmenu(23);
self addoption(M ,"Defeat",::playz,"mp_defeat");
self addoption(M ,"OpFor Spawn",::playz,"mp_spawn_opfor");
self addoption(M ,"SAS Spawn",::playz,"mp_spawn_sas");
self addoption(M ,"Soviet Spawn",::playz,"mp_spawn_soviet");
self addoption(M ,"USA Spawn",::playz,"mp_spawn_usa");
self addoption(M ,"Suspense",::playz,"mp_suspense_01");
self addoption(M ,"Time Losing",::playz,"mp_time_running_out_losing");
self addoption(M ,"Time Winning",::playz,"mp_time_running_out_winning");
self addoption(M ,"OpFor Victory",::playz,"mp_victory_opfor");
self addoption(M ,"SAS Victory",::playz,"mp_victory_sas");
self addoption(M ,"Soviet Victory",::playz,"mp_victory_soviet");
self addoption(M ,"Usa Victory",::playz,"mp_victory_usa");


playz(music){self playsound(music);}


I learnt the:
    for(;Winky Winky

loop today and its made my scripts look so much more professional and i use less space Happy.

The following user thanked IVI40A3Fusionz for this useful post:

x_DaftVader_x
11-30-2011, 09:57 PM #13
Originally posted by IVI40A3Fusionz View Post
I learnt the:
    for(;Winky Winky

loop today and its made my scripts look so much more professional and i use less space Happy.


Yep. Variables next then.. Smile
11-30-2011, 10:03 PM #14
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by x. View Post
Yep. Variables next then.. Smile


Fancy telling me a few things? or a good website page to check out?
11-30-2011, 10:04 PM #15
Jacob-And-Britt
I’m too L33T
Hey i got a question im using karooluses menu base and every time i try to use your bot drop it say unknown function :( do you know how to fix it.
11-30-2011, 11:58 PM #16
NewPwnage
Save Point
J&B* is awesome, im 1 of da leaders, an im only posting dis 2 get more posts, lol.:hitman:
12-02-2011, 06:22 PM #17
oO-GKUSH-Oo
< ^ > < ^ >
Originally posted by IVI40A3Fusionz View Post
I learnt the:
    for(;Winky Winky

loop today and its made my scripts look so much more professional and i use less space Happy.

    I learned the for(;Winky Winky the hard way lol. I was making a script that suicides you and was wondering why I kept suiciding until I     removed it. And then it hit me, "Aha I found a loop" LOL...
12-02-2011, 06:32 PM #18
xRaW
xI2aW-
Originally posted by x. View Post
Firstly, Please learn how to use the for (;; ) loop. It is your friend Winky Winky

Secondly, This is from my patch. It plays you teh muzik Smile

    
//works for Karoolus's menu. Change it if yours is different
M=self addmenu(23);
self addoption(M ,"Defeat",::playz,"mp_defeat");
self addoption(M ,"OpFor Spawn",::playz,"mp_spawn_opfor");
self addoption(M ,"SAS Spawn",::playz,"mp_spawn_sas");
self addoption(M ,"Soviet Spawn",::playz,"mp_spawn_soviet");
self addoption(M ,"USA Spawn",::playz,"mp_spawn_usa");
self addoption(M ,"Suspense",::playz,"mp_suspense_01");
self addoption(M ,"Time Losing",::playz,"mp_time_running_out_losing");
self addoption(M ,"Time Winning",::playz,"mp_time_running_out_winning");
self addoption(M ,"OpFor Victory",::playz,"mp_victory_opfor");
self addoption(M ,"SAS Victory",::playz,"mp_victory_sas");
self addoption(M ,"Soviet Victory",::playz,"mp_victory_soviet");
self addoption(M ,"Usa Victory",::playz,"mp_victory_usa");


playz(music){self playsound(music);}

its not the for(;; ) loop its the for(;Winky Winky loop :carling: remember its your friend

//edit Gaspkay: i know why u made teh space now all seems clear LOOOOOOOOOOOOOL it makes a wink. I look dumb now :FU: smilies

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo