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

Members Online

»
1 Active | 17 Guests
Online:

LATEST FORUM THREADS

»
Single Player Loadout
CoDWW 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 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Restricted Access
Page
Previous Page
subscribe
Author Topic: Finally, rotating hud elems are here [Pros only]
IzNoGoD
General Member
Since: Nov 29, 2008
Posts: 694
Last: Nov 10, 2012
[view latest posts]
Level 6
Category: CoD2 Scripting
Posted: Wednesday, Jul. 18, 2012 01:50 pm
serthy writes...
Quote:
huh? it was a simple 2d material with no special settings on it


Im not sure, but the default material files (like the one for the nadeicon) gives a material overload (1024 material thingies) after 20 degrees of rotating in a default sd bombtimer...
Share |
Tally
General Member
Since: Apr 21, 2005
Posts: 819
Last: Oct 26, 2012
[view latest posts]
Level 7
Category: CoD2 Scripting
Posted: Wednesday, Jul. 18, 2012 01:54 pm
serthy writes...
Quote:
huh? it was a simple 2d material with no special settings on it


Perhaps you better read the thread then, because Izno is claiming that the letters in the name have to be a specific number. I take it from that that he played around trying to make custom materials files that wouldn't work, and concluded that you have to use the original "hudstopwatchneedle" materials file.

I then suggested that it would be down to finding the original Asset Manager settings IW used, and then you would be able to create your own.

What you are saying contradicts Izno's claims. Ergo, why I thought you must have discovered the original settings used in "hudstopwatchneedle".
Share |
serthy
General Member
Since: Sep 8, 2010
Posts: 480
Last: Apr 15, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, Jul. 18, 2012 04:26 pm
mhh, this is my code:
Code:
	while(  isDefined( self ) )
	{
		angle = vectorToAngles( self.origin - target.origin ) - self getPlayerAngles();

		self.hud_rot_pointer.x = sin( angle[1] ) * radius;
		self.hud_rot_pointer.y = cos( angle[1] ) * radius;

		for( angle = angle[1] * -1 ; angle <= 0 ; )
			angle += 360;

		self.hud_rot_pointer setClock( angle * 1000 , 360000 , "hud_indicator" , 50 , 50 );

		wait( 0.05 );
	}


and i created as said 2 simple 2d materials named "hud_indicatorneedle" and "hud_indicator"
it rotates and spins without any errors
Share |
zeroy
General Member
Since: Nov 26, 2007
Posts: 1055
Last: Dec 7, 2012
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Wednesday, Aug. 1, 2012 05:39 am
Serthy is correct and the hudstopwatchneedle material is a bog standard Blend material, nothing special (checked using CODWAW stock GDT) - the setClock function is key, not the material.

If anyone is interested by the way I can release all the stock GDT used for CODWAW (prior to any update however) - I thought I had done so already [crazy]
Share |
Restricted Access Restricted Access
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

Latest Syndicated News

»
Why console gaming is dying
Quote:Consider this: Dedicated gaming sales — including living-room consoles...
Devs: Games are being dumb...
Click 'read more' to view the contents of this post.
Loadout
Gun Crafting to the Max. edited on Sep. 25, 2012 06:57 pm by Morp...
Introducing the Source Fil...
Surprised this wasn't made a long time ago. Sounds like a nice little feature.
Introducing the Source Fil...
The Source Filmmaker (SFM) is the movie-making tool built and used by us he...

Partners & Friends

»