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

Members Online

»
0 Active | 82 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 Scripting
Scripting and coding with Call of Duty 2.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked
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 08: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 08: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: 482
Last: Jun 28, 2013
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD2 Scripting
Posted: Wednesday, Jul. 18, 2012 11: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: 1060
Last: Mar 12, 2014
[view latest posts]
Level 8
Category: CoD2 Scripting
Posted: Wednesday, Aug. 1, 2012 12:39 pm
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 Topic is Locked
Page
Previous Page
subscribe
MODSonline.com Forums : Call of Duty 2 : CoD2 Scripting

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

»