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, 12:42 PM #2
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by jbglitching View Post
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


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!!


I've found some pretty cool sounds, some of the more experience modders will know them though (probably).

Sounds I've found: (They also get sent out to every player in the lobby if you use 'player'Winky Winky.

The voice that say's: "Overtime"
The voice that say's: "Half Time"
The voice that say's: "Switching Sides"

and much more...
11-30-2011, 12:53 PM #3
Jacob-And-Britt
I’m too L33T
Check the thread now. Smile
11-30-2011, 12:56 PM #4
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by jbglitching View Post
Check the thread now. Smile


Those aren't the codes Winky Winky.
11-30-2011, 04:55 PM #5
oO-GKUSH-Oo
< ^ > < ^ >
Why do you have self thread BrittsGunSoundsLevel(); under BrittsGunSoundsLevel?

BrittsGunSoundsLevel()
{
self giveweapon( "ak74u_mp" );
self switchToWeapon("ak74u_mp");
self waittill("Attack");
self playSound("mp_level_up");
self thread BrittsGunSoundsLevel();
}
11-30-2011, 08:11 PM #6
Jacob-And-Britt
I’m too L33T
So that way if you put it under onplayerspawned it will work for ever if that wasent there it would work on once i learned that the hard way.
11-30-2011, 08:22 PM #7
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by jbglitching View Post
So that way if you put it under onplayerspawned it will work for ever if that wasent there it would work on once i learned that the hard way.


Use some of these:

    leaderDialogOnPlayer( "halftime" );

leaderDialogOnPlayer( "overtime" );

leaderDialogOnPlayer( "side_switch" );

playSoundOnPlayers( game["music"]["victory_allies"], "allies" );

playSoundOnPlayers( game["music"]["defeat"], "axis" );

playSoundOnPlayers( game["music"]["victory_axis"], "axis" );

playSoundOnPlayers( game["music"]["defeat"], "allies" );

playSoundOnPlayers( game["music"]["victory_axis"], "axis" );

playSoundOnPlayers( game["music"]["defeat"], "allies" );

playSoundOnPlayers( game["music"]["defeat"] );

playSoundOnPlayers( game["music"]["victory"] );


You can figure the rest out yourself Winky Winky.
11-30-2011, 08:36 PM #8
Taylor
Former Black Knight.
Originally posted by jbglitching View Post
.


Ummmm 1st, You Don't Wanna Give Them A Weapon Everytime They Shoot 1 Bullet, And 2nd, Good Attempts At Scripting, 3rd, The Top 3 Here:

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();
}


They Work, The Bottom One, Is Just Misspelled As In "vehicle_explode", Well Atleast I Think It's Only Misspelled, Don't Know If It Will WOrk If You Finish The Word Or Not :/
11-30-2011, 09:31 PM #9
Originally posted by jbglitching 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);}

The following user thanked x_DaftVader_x for this useful post:

INSAN3LY_D34TH
11-30-2011, 09:43 PM #10
Jacob-And-Britt
I’m too L33T
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

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo