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

Members Online

»
0 Active | 54 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
Page
Previous Page Next Page
subscribe
Author Topic: FOY...or ...um ...whatever
antonio.horvatovic0
General Member
Since: Jan 31, 2014
Posts: 225
Last: Jul 14, 2017
[view latest posts]
Level 4
Category: CoD2 SP Mapping
Posted: Tuesday, Feb. 4, 2014 10:06 am
sgt.hawnkins, how did you made your water?
Through my water you can move normally, but I want to make you get slowed down by the water, did you made it that way?
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. 4, 2014 05:07 pm
Nope. in mine you could only move normally too.
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. 4, 2014 05:09 pm
I know it has something to do with g_speed but I don't know anything else...
Share |
3st0nian
General Member
Since: Jan 14, 2008
Posts: 291
Last: Dec 4, 2017
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 SP Mapping
Posted: Tuesday, Feb. 4, 2014 06:48 pm
setsavedcvar("g_speed", 100);
where 100 is speed value. Default player speed is 190 I think.

edited on Feb. 4, 2014 11:50 am by 3st0nian
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: Friday, Feb. 7, 2014 03:27 pm
Sorry for my lack off knowladge, but do I add key "speed" and value "100" to the brush or is about scripting? I've got a feeling its none of the above....
Share |
3st0nian
General Member
Since: Jan 14, 2008
Posts: 291
Last: Dec 4, 2017
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 SP Mapping
Posted: Friday, Feb. 7, 2014 04:04 pm
Create trigger_multiple covering water and use this script:

Code:

trigger = getent("trigger", "targetname");
isInWater = false;

for(;;)
{
	if(level.player isTouching(trigger) && !isInWater)
	{
		setsavedcvar("g_speed", 100);
		isInWater = true;
	}
	if(!(level.player isTouching(trigger)) && isInWater)
	{
		setsavedcvar("g_speed", 190);
		isInWater = false;
	}
	wait 0.1;
}


Fixed script error
edited on Feb. 7, 2014 10:09 am by 3st0nian
Share |
SPi
General Member
Since: Jul 4, 2012
Posts: 531
Last: Nov 9, 2019
[view latest posts]
Level 6
Category: CoD2 SP Mapping
Posted: Saturday, Feb. 8, 2014 03:55 pm
3st0nian,
thats really useful.[thumbs_up]

sgt.hawkins,
you can also use this to add an underwater vision file[idea]
or you could just block prone.[cool]
(why to work on underwater environment while you can spent this time on getting the rest of the map better.)[exclamation]

Keep it up![wave]
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: Friday, Feb. 14, 2014 10:33 pm
[rocking]
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: Wednesday, Feb. 26, 2014 06:00 am
Does any1 have a tutorial (I couldn't find one) on how to block your prone so the player cant crouch underwater?
Share |
3st0nian
General Member
Since: Jan 14, 2008
Posts: 291
Last: Dec 4, 2017
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 SP Mapping
Posted: Wednesday, Feb. 26, 2014 11:00 am
level.player allowProne(true);
level.player allowCrouch(true);
level.player allowStand(true);

True == allow
false == dont allow
Share |
Restricted Access Topic is Locked
Page
Previous Page Next Page
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

»