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

Members Online

»
1 Active | 59 Guests
Online:

LATEST FORUM THREADS

»
Call of DutyŽ: WWII
CoD WW2 General
SOF2 Prefabs map
SoFII 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 MP Mapping
CoD 4 mapping and level design for multiplayer.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
Page
Next Page
subscribe
Author Topic: conveyor belt???
iCoDMapping360
General Member
Since: Feb 22, 2011
Posts: 87
Last: May 19, 2011
[view latest posts]
Level 3
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Thursday, Mar. 17, 2011 01:39 pm
if you have played cod black ops you will have noticed the conveyor belt in radiation i need that in cod4 [sniper]
Share |
LibraNL
General Member
Since: Apr 26, 2006
Posts: 13
Last: Jun 11, 2016
[view latest posts]
Level 1
Category: CoD4 MP Mapping
Posted: Thursday, Mar. 17, 2011 05:03 pm
Maybe if you ask somewhere nicely what you want, you might get some help [wave]
Share |
SQUISHY44
General Member
Since: Apr 15, 2007
Posts: 213
Last: Jul 19, 2011
[view latest posts]
Level 4
Category: CoD4 MP Mapping
Posted: Thursday, Mar. 17, 2011 05:38 pm
Make an escalator with sloped stairs, should get a similar effect
Share |
zeroy
General Member
Since: Nov 26, 2007
Posts: 1060
Last: Mar 12, 2014
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Friday, Mar. 18, 2011 04:28 am
Interesting Q in fact, as this conveyor belt in BO is not that simple to make, or maybe it is... I think the way its done is using a scrolling texture for the belt moving effect and the players triggers something that makes him move up top when on the belt...ill check the scripts to see if anything in there.
Share |
zeroy
General Member
Since: Nov 26, 2007
Posts: 1060
Last: Mar 12, 2014
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Friday, Mar. 18, 2011 04:45 am
OK, here is the script Treyarch used in mp_radiation for the conveyor belt:

Code:

//Starts a thread to alter player's velocity as long as they're in the trigger
conveyer_belt_init()
{
	//Need to set dvar to determine force of momentum in trigger
	set_dvar_int_if_unset( "scr_coveyer_speed", 45 );
	
	conveyer_trigger = getent_and_assert("coveyer_trig");
	
	//The trigger targets a script struct. The struct contains angles to determine the force direction.
	trigger_struct = getstruct_and_assert(conveyer_trigger.target);
	
	//Find direction that my trigger is pointed toward
	trigger_angles = AnglesToForward(trigger_struct.angles);
	
	//Create intensity of conveyer force equal to my script DVar. Store it on my trigger for a seperate function to use.
	conveyer_trigger._conveyer_vector = vector_scale(trigger_angles,GetDvarInt( #"scr_coveyer_speed"));
	
  while(1)
	{	
		conveyer_trigger waittill("trigger", player);
		if(IsPlayer(player))
		{
	  	conveyer_trigger thread trigger_thread(player, ::player_on_conveyer);
	  }
	  
	  wait .05;
	}	
}

//Self is trigger. Function is ran when player jumps into the trigger.
player_on_conveyer(player, endon_string)
{
	player endon ("death");
	player endon ("disconnect");
	player endon(endon_string);
	
	while(1)
	{
		player_velocity = player GetVelocity();
		
		//Don't want jumping player to be pulled by conveyer 
		if (player IsOnGround())
		{
			//Gives player momentum in the direction of the conveyer equal to a dvar I created earlier along with their own momentum
			player SetVelocity(player_velocity + self._conveyer_vector);
		}

		wait .05;	
	}
}


So as i thought, the belt is a scrolling texture, there is a trigger_multiple around it and player gets "pulled" when touching it. They use the Player Velocity function to do that, not sure if avail in COD4/CODWAW, might give it a go later!
Share |
iCoDMapping360
General Member
Since: Feb 22, 2011
Posts: 87
Last: May 19, 2011
[view latest posts]
Level 3
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Friday, Mar. 18, 2011 02:20 pm
thanks[wink]
Share |
iCoDMapping360
General Member
Since: Feb 22, 2011
Posts: 87
Last: May 19, 2011
[view latest posts]
Level 3
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Saturday, Mar. 19, 2011 10:16 am
scrolling texture??? is it available in cod4 [cry]
Share |
zeroy
General Member
Since: Nov 26, 2007
Posts: 1060
Last: Mar 12, 2014
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Saturday, Mar. 19, 2011 10:53 am
iCoDMapping360 writes...
Quote:
scrolling texture??? is it available in cod4 [cry]


Of course, in all COD. Check the option in the Asset manager when converting your texture (yes you will need to create one). I havent had the time yet to try this but i will!
Share |
liltc64
General Member
Since: Feb 12, 2007
Posts: 906
Last: Oct 22, 2012
[view latest posts]
Level 7
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Saturday, Mar. 19, 2011 12:04 pm
in all COD? im looking in the cod2 asset_manager and i dont see anything about scrolling texture? where would it be exactly? i never even heard of this and now im interested lol.
Share |
zeroy
General Member
Since: Nov 26, 2007
Posts: 1060
Last: Mar 12, 2014
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Saturday, Mar. 19, 2011 02:52 pm
liltc64 writes...
Quote:
in all COD? im looking in the cod2 asset_manager and i dont see anything about scrolling texture? where would it be exactly? i never even heard of this and now im interested lol.


Very strange, i can see the Texture Scroll option for COD2 in the Deffiles for materials:

Code:

	checkbox( texScroll )
	[
		exec
		{
			visible( materialType == "model phong" && blendFunc != "Add" )
			righttext()
			height( 15 )
			label( "Texture Scroll" )
		}
	]


Yet i cant get it to show in Assman.....im pretty sure you can in COD2.
Share |
Restricted Access Topic is Locked
Page
Next Page
subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 MP 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

»