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

Members Online

»
0 Active | 105 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 4
Category: CoD4 SP Mapping
CoD 4 mapping and level design for single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Cod4 rain in SP
antonio.horvatovic0
General Member
Since: Jan 31, 2014
Posts: 225
Last: Jul 14, 2017
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Sunday, Feb. 22, 2015 07:56 am
Does anyone got a decent tutorial how to get rain and thunder with sound in singleplayer? I can make it rain, even the thunder works but with no sound. And is it possible to make the flashes that change the light and shadows for a second?
Share |
TrikX
General Member
Since: Jul 7, 2012
Posts: 129
Last: Dec 31, 2016
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Sunday, Feb. 22, 2015 12:15 pm
ent.v[ "soundalias" ] = soundalias;
this is for the sound in fx.
i'm not on the computer now so i don't know what soundalias name is for thunder and rain, but you can find that out by yourself.
i think it's somewhere in soundaliases/common
hope it helped!
Share |
antonio.horvatovic0
General Member
Since: Jan 31, 2014
Posts: 225
Last: Jul 14, 2017
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Sunday, Feb. 22, 2015 06:16 pm
Ok, I have found and added rain to my soundalias...but I dont know where to put the code in my fx.

This is my mapname.fx:
Code:
ent = maps\mp\_utility::createOneshotEffect( "rain_heavy_mist" );
   ent.v[ "origin" ] = ( 3232.0, 3160.0, 900 );
   ent.v[ "angles" ] = ( 270, 276, 0 );
   ent.v[ "fxid" ] = "rain_heavy_mist";
   ent.v[ "delay" ] = -1;


ent = maps\mp\_utility::createOneshotEffect( "lightning" );
   ent.v[ "origin" ] = ( 3288.0, 3100.0, 624 );
   ent.v[ "angles" ] = ( 270, 276, 0 );
   ent.v[ "fxid" ] = "lightning";
   ent.v[ "delay" ] = -1;
Share |
TrikX
General Member
Since: Jul 7, 2012
Posts: 129
Last: Dec 31, 2016
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Sunday, Feb. 22, 2015 09:07 pm
on the end of every effect where you want the sound to be.
like this:

ent = maps\mp\_utility::createOneshotEffect( "rain_
heavy_mist" );
ent.v[ "origin" ] = ( 3232.0, 3160.0,
900 );
ent.v[ "angles" ] = ( 270, 276, 0 );
ent.v[ "fxid" ] = "rain_heavy_mist";
ent.v[ "delay" ] = -1;
ent.v[ "soundalias" ] = "rain_sound_name";

ent = maps\mp\_utility::createOneshotEffect( "lightning" );
ent.v[ "origin" ] = ( 3288.0, 3100.0,
624 );
ent.v[ "angles" ] = ( 270, 276, 0 );
ent.v[ "fxid" ] = "lightning";
ent.v[ "delay" ] = -1;
ent.v[ "soundalias" ] = "lightning_sound_name";

i forgot to put the quotes and didn't explain it very well the first time.
replace (..._sound_name) with the sound alias you want.
Share |
antonio.horvatovic0
General Member
Since: Jan 31, 2014
Posts: 225
Last: Jul 14, 2017
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Thursday, Feb. 26, 2015 08:36 pm
Great, it works. Many thanks. Btw, would you happen to know how to change the hand model? I've got the standard marine uniform for now...
Share |
TrikX
General Member
Since: Jul 7, 2012
Posts: 129
Last: Dec 31, 2016
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Thursday, Feb. 26, 2015 10:13 pm
i'm on mobile atm, and have some problems with it, so i hope the code i write will be correct and you will be able to see and understand it. (don't know when i'll be home on comp)
should be like this:

Code:
main()
{
precachemodel("user_body_model");
precachemodel("user_hands_model");

thread change_model();
}

change_model()
{
trigger = getent("trig_name","targetname");
for(;;)
{
trigger waittill ("trigger",user);
user detachAll();
user setmodel("user_body_model"); //for body
user setviewmodel("user_hands_model"); //for hands
wait 2;
}
}


just replace "user_body_model" and "user_hands_model" with your model names.
also trigger value if you want.
i added body model just in case you want that also. delete it if you dont.
hope it works! :)
Share |
antonio.horvatovic0
General Member
Since: Jan 31, 2014
Posts: 225
Last: Jul 14, 2017
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Wednesday, Mar. 4, 2015 07:35 pm
I've got it working through a different script, but tnx aniway...would you happen to know how to add flash effect with dynamic shadows? Like in cargoship lvl, I just cant make it work...
Share |
TrikX
General Member
Since: Jul 7, 2012
Posts: 129
Last: Dec 31, 2016
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Thursday, Mar. 5, 2015 01:53 pm
they did that with scripting on cargoship.
you would need to look for that in cargoship's gsc.
Share |
antonio.horvatovic0
General Member
Since: Jan 31, 2014
Posts: 225
Last: Jul 14, 2017
[view latest posts]
Level 4
Category: CoD4 SP Mapping
Posted: Thursday, Mar. 5, 2015 03:37 pm
I know. I looked there and they use it as a exploder with a switchable sun light...I'll try to figure it out, tnx ;-)
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 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

»