Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » turn object upside down
Re: turn object upside down [message #466509 is a reply to message #466439] Mon, 23 April 2012 01:24 Go to previous messageGo to previous message
Whitedragon is currently offline  Whitedragon
Messages: 832
Registered: February 2003
Location: California
Karma:
Colonel
Here's the commands I made to test this.

	else if (Command == "!rotatex") {
		GameObject *obj = Get_Vehicle(Get_GameObj(ID));
		if (obj) {
			Matrix3D Transform = Get_Transform(obj);
			Transform.Rotate_X(DEG_TO_RADF(Msg.As_Int(2)));
			Set_Transform(obj,Transform);
		}
	}
	else if (Command == "!rotatey") {
		GameObject *obj = Get_Vehicle(Get_GameObj(ID));
		if (obj) {
			Matrix3D Transform = Get_Transform(obj);
			Transform.Rotate_Y(DEG_TO_RADF(Msg.As_Int(2)));
			Set_Transform(obj,Transform);
		}
	}
	else if (Command == "!rotatez") {
		GameObject *obj = Get_Vehicle(Get_GameObj(ID));
		if (obj) {
			Matrix3D Transform = Get_Transform(obj);
			Transform.Rotate_Z(DEG_TO_RADF(Msg.As_Int(2)));
			Set_Transform(obj,Transform);
		}
	}


Black-Cell.net
Network Administrator (2003 - )

DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )

Dragonade, Renegade's first server side modification
Lead coder (2005 - )
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: create a building
Next Topic: Have their been any good moddable first person games since Renegade?
Goto Forum:
  


Current Time: Mon Jan 06 14:01:16 MST 2025

Total time taken to generate the page: 0.00954 seconds