Tremulous Forum
		Mods => Modding Center => Topic started by: DarkEnix on March 11, 2008, 08:51:51 am
		
			
			- 
				izzit possible that
 
 use / as a divide sign?
 
 if so , i cant change the size of builds using /3
 
 if not , any sign use as divide?
- 
				No idea what you're talking about... ::)
			
- 
				ok , lets say
 
 1.0f              // model scale
 
 can i put it as
 
 1.0f/3              //model scale
 
 if i want it to divide by 3
- 
				.33f
 It don't think it will work otherwise. Besides, if you can't do basic arithmetic, you probably shouldn't be coding.
- 
				well , you should be saying that the computer have no brains and cant do basic arithmetic
 
 they can juz
 
 1
 -
 3
 
 or
 
 .
 0.3
- 
				well , you should be saying that the computer have no brains and cant do basic arithmetic
 
 they can juz
 
 1
 -
 3
 
 or
 
 .
 0.3
 
 Computers cannot do arithmetic on numbers inside lines of code unless you add more lines of code telling it to do the arithmetic. Also, Quake 3 doesn't handle repeating decimals well, it rounds them anyway. Building sizes are in "Quake units" and must be whole numbers, AFAIK. Besides, try putting either of the numbers you used in your last post into a single line of code.
- 
				What you said is valid way to divide. Why don't you try if it works before asking?
 
 1.0f / 3; //Is valid.
 ----
 float f = 1.0f;
 f /= 3; //Is valid