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

Members Online

»
0 Active | 4 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

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
Category: CoD Mapping
CoD mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: moving diagonally
majortom
General Member
Since: Apr 13, 2009
Posts: 14
Last: Jun 29, 2009
[view latest posts]
Level 1
Category: CoD Mapping
Posted: Monday, Jun. 29, 2009 02:34 am
Is there anyway to get a platform to move diagonally?[machine_gun] [sniper]
Share |
DemonSeed
General Member
Since: Apr 30, 2009
Posts: 1362
Last: Feb 19, 2018
[view latest posts]
Level 8
Im a fan of MODSonair
Category: CoD Mapping
Posted: Monday, Jun. 29, 2009 07:27 am
majortom writes...
Quote:
Is there anyway to get a platform to move diagonally?[machine_gun] [sniper]


A diagonal line is still a straight line, its the perspective of a particualr point of the platform that gives it the effect of moving ... well, diagonally.

Example:

Here is a platform moving in a straight line from A to B:



Here is the same platform moving in the same straight line, only the point of perspective has been shifted 45%:



So, to give a platform the diagonal perspective as it moves in a straight line, the angle of the platform needs to be offset by 45%.
Share |
codmp
General Member
Since: Feb 7, 2006
Posts: 905
Last: Aug 1, 2011
[view latest posts]
Level 7
Category: CoD Mapping
Posted: Monday, Jun. 29, 2009 11:59 am
Just make a script script_origin in your map and give it a targetname. In this case, place it diagonally from wherever the platform is going to be moving from. Then in the script make the platform move to the script_origins origin. It should then move diagonally in order to get to it.

Example script would be something like this:
Code:

main() {
thread move();
}
move() {
platform = getent("name", "targetname");
org = getent("orgname", "targetname");

platform moveto(org.origin);
}
Share |
majortom
General Member
Since: Apr 13, 2009
Posts: 14
Last: Jun 29, 2009
[view latest posts]
Level 1
Category: CoD Mapping
Posted: Monday, Jun. 29, 2009 11:07 pm
ok, could i add more script_origins and make it move to them all?[confused]
Share |
sherlokpwnz
General Member
Since: May 1, 2009
Posts: 95
Last: Jan 13, 2010
[view latest posts]
Level 3
Category: CoD Mapping
Posted: Wednesday, Jul. 1, 2009 04:40 pm
yes just make sure 2 things. the targetnames of the platforms are different and that you have different gsc files for each door and place the command to load those seperate gsc files in your main gsc.
Share |
codmp
General Member
Since: Feb 7, 2006
Posts: 905
Last: Aug 1, 2011
[view latest posts]
Level 7
Category: CoD Mapping
Posted: Wednesday, Jul. 1, 2009 08:45 pm
For it to move to all the platforms, just define each new origin like it was done in the above example script. Then just add more of the moveto functions. You don't need more than one gsc file for this.
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoD 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

»