Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 104 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 2
Category: CoD2 SP Mapping
Call of Duty 2 single player mapping, scripting and everything single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Radio Sound
sgt.hawkins
General Member
Since: Apr 12, 2013
Posts: 122
Last: Nov 28, 2016
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Saturday, Feb. 14, 2015 08:34 pm
I need to have a radio play a loop whenever you walk near it.
Thanks :D
Share |
antonio.horvatovic0
General Member
Since: Jan 31, 2014
Posts: 225
Last: Jul 14, 2017
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Monday, Feb. 16, 2015 02:55 pm
IIRC it should be defined in the soundaliass file and played in script via playloopsound command
Share |
sgt.hawkins
General Member
Since: Apr 12, 2013
Posts: 122
Last: Nov 28, 2016
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Monday, Feb. 16, 2015 04:50 pm
Ill try.
Thanks man.
Share |
sgt.hawkins
General Member
Since: Apr 12, 2013
Posts: 122
Last: Nov 28, 2016
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Monday, Feb. 16, 2015 07:41 pm
//here goes
#include maps\_utility;
#include maps\_anim;
#using_animtree("generic_human");
main()
{
maps\_load::main();

maps\rain_fx::main();

ambientPlay("ambient_rain");

musicplay("intro_music");

level.player takeallweapons();
level.player giveWeapon ("m1garand");
level.player giveWeapon ("colt");
level.player giveWeapon ("fraggrenade");
level.player switchToWeapon ("m1garand");



//fog
//setcullfog (300, 2100, 25/256, 45/256, 48/256, 0.1);
setCullFog (300, 2100, 25/256, 45/256, 48/256, 0.1);

setCullDist (2300);





precacheshader("black");
precacheString(&"RAIN_INTRO_1");
precacheString(&"RAIN_INTRO_2");
precacheString(&"RAIN_INTRO_3");
precacheString(&"RAIN_INTRO_4");

maps\_introscreen::introscreen_delay(&"RAIN_INTRO_1", &"RAIN_INTRO_2", &"RAIN_INTRO_3", &"RAIN_INTRO_4");

level thread germanRadio (getent ("radio","targetname"));
getent ("radio music","targetname") playloopsound ("radio1");
}




this is my .gsc right now. I copied the last part from the CoD1 mission "pathfinder"
What are the 2 targetnames for, and is "germanRadio" what its called in the soundaliases?
Share |
65kawasaki
General Member
Since: Nov 15, 2013
Posts: 73
Last: Sep 19, 2017
[view latest posts]
Level 3
Category: CoD2 SP Mapping
Posted: Tuesday, Feb. 17, 2015 05:55 am
("radio","targetname")); is the script model of the radio ...

getent ("radio music","targetname") .... this is a script origin which marks the place, where you should hear the sound ( here will be the sound played ) [wink]
Share |
BUSH1DO
General Member
Since: Apr 2, 2014
Posts: 40
Last: Sep 9, 2016
[view latest posts]
Level 2
Category: CoD2 SP Mapping
Posted: Tuesday, Feb. 17, 2015 10:37 am
Hi , maybe this helps you
https://www.youtube.com/watch?v=8GogM_ulWU8
Share |
sgt.hawkins
General Member
Since: Apr 12, 2013
Posts: 122
Last: Nov 28, 2016
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Tuesday, Feb. 17, 2015 05:17 pm
thanks :D, it works!
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 SP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»