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

Members Online

»
0 Active | 9 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 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 subscribe
Author Topic: .gsc problem
N86ers
General Member
Since: Dec 25, 2009
Posts: 14
Last: Aug 25, 2010
[view latest posts]
Level 1
Category: CoD4 MP Mapping
Posted: Wednesday, Aug. 25, 2010 03:23 pm
I wonder how i can change so the fan rotates around an different axis? As it is now its rotating around Z axis.

i use this code:


main()
{
thread fanSpin();
}

fanSpin() {
fan1 = getEnt( "fan1" , "targetname" );
fan2 = getEnt( "fan2" , "targetname" );


while (1)
{
fan1 rotateyaw( 360, 5, 0, 0 );
//fan1 rotateyaw( degrees, time in seconds, 0, 0 );

fan2 rotateyaw( 360, 5, 0, 0 );

wait 9.9;
}
}
Share |
Tristan4592
General Member
Since: Apr 26, 2007
Posts: 235
Last: Nov 11, 2010
[view latest posts]
Level 4
MODSCON
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Wednesday, Aug. 25, 2010 03:45 pm
rotatepitch & rotateroll should be two other functions that would apply to the two other axes.
Share |
Xylozi
General Member
Since: Jul 12, 2008
Posts: 218
Last: Mar 1, 2012
[view latest posts]
Level 4
Im a fan of MODSonair
Category: CoD4 MP Mapping
Posted: Wednesday, Aug. 25, 2010 03:49 pm
There are three main functions you can use to rotate an entity, which are:

Code:
RotatePitch( <pitch angle>, <time>, <acceleration time>, <deceleration time> )
RotateYaw( <yaw angle>, <time>, <acceleration time>, <deceleration time> )
RotateRoll( <roll angle>, <time>, <acceleration time>, <deceleration time> )
Share |
cskiller86
General Member
Since: Nov 23, 2009
Posts: 528
Last: Oct 25, 2011
[view latest posts]
Level 6
Category: CoD4 MP Mapping
Posted: Wednesday, Aug. 25, 2010 03:51 pm
You probably did it already, but just to be sure: have you added a brush textured with origin to your fan script_brushmodel ?
Share |
zeroy
General Member
Since: Nov 26, 2007
Posts: 1060
Last: Mar 12, 2014
[view latest posts]
Level 8
Category: CoD4 MP Mapping
Posted: Wednesday, Aug. 25, 2010 03:59 pm
cskiller86 writes...
Quote:
You probably did it already, but just to be sure: have you added a brush textured with origin to your fan script_brushmodel ?


If the OP uses the COD4 fan model then no need for a brush textured with origin. The answer was given previously, try rotateroll or rotatepitch

Full script functions HERE
Share |
N86ers
General Member
Since: Dec 25, 2009
Posts: 14
Last: Aug 25, 2010
[view latest posts]
Level 1
Category: CoD4 MP Mapping
Posted: Wednesday, Aug. 25, 2010 06:59 pm
Rotatepitch worked perfect! thx!
Share |
Restricted Access Topic is Locked 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

»