Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » turn object upside down
turn object upside down [message #466439] Sat, 21 April 2012 06:32 Go to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
is there away to set X/Y rotations of a created object?

i saw it wasnt possible in level edit so i doubt it will be trough scripting


Owner of kambot TT server

kambot.freeforums.org
Re: turn object upside down [message #466454 is a reply to message #466439] Sat, 21 April 2012 17:05 Go to previous messageGo to next message
kamuixmod is currently offline  kamuixmod
Messages: 211
Registered: July 2010
Karma: 0
Recruit
it is possible to do that. I made out of the Noradoor a platform.

http://img46.imageshack.us/img46/5836/kmauixsignature.png
Re: turn object upside down [message #466474 is a reply to message #466439] Sun, 22 April 2012 14:27 Go to previous messageGo to next message
Ethenal is currently offline  Ethenal
Messages: 2532
Registered: January 2007
Location: US of A
Karma: 0
General (2 Stars)

Wait, it is? How?

-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29

Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade Thumbs Up

Re: turn object upside down [message #466476 is a reply to message #466439] Sun, 22 April 2012 14:33 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Matrix3D?

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: turn object upside down [message #466477 is a reply to message #466439] Sun, 22 April 2012 14:58 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
tried matrix3D but it would work

Owner of kambot TT server

kambot.freeforums.org
Re: turn object upside down [message #466478 is a reply to message #466439] Sun, 22 April 2012 15:16 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
ok

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: turn object upside down [message #466481 is a reply to message #466439] Sun, 22 April 2012 15:36 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
wouldnt it wouldnt work typo

Owner of kambot TT server

kambot.freeforums.org
Re: turn object upside down [message #466490 is a reply to message #466439] Sun, 22 April 2012 17:36 Go to previous messageGo to next message
Whitedragon is currently offline  Whitedragon
Messages: 832
Registered: February 2003
Location: California
Karma: 1
Colonel
You can rotate vehicles, and anything else that uses MoveablePhys, with Get_Transform and Set_Transform. I don't know if anything else uses this physics type.

http://wd.black-cell.net/rotationtest


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 - )
Re: turn object upside down [message #466508 is a reply to message #466439] Mon, 23 April 2012 01:05 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
whenever i used set transform my veh dissappeared

Owner of kambot TT server

kambot.freeforums.org
Re: turn object upside down [message #466509 is a reply to message #466439] Mon, 23 April 2012 01:24 Go to previous messageGo to next message
Whitedragon is currently offline  Whitedragon
Messages: 832
Registered: February 2003
Location: California
Karma: 1
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 - )
Re: turn object upside down [message #466510 is a reply to message #466439] Mon, 23 April 2012 02:06 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
ok weird now it does work but i cant use for what i was planning to use it sucks

Owner of kambot TT server

kambot.freeforums.org
Re: turn object upside down [message #466519 is a reply to message #466439] Mon, 23 April 2012 05:05 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Does it work on players?

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: turn object upside down [message #466548 is a reply to message #466519] Mon, 23 April 2012 10:49 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3812
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Certain physics types would, but deco physics won't be upside down on other player's computers if you try it, only the host will see it correctly.

Re: turn object upside down [message #466549 is a reply to message #466439] Mon, 23 April 2012 10:53 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
it would open up many possibilties if implemented in new scripts but i doubt tt crew has time ^^

Owner of kambot TT server

kambot.freeforums.org
Re: turn object upside down [message #466553 is a reply to message #466439] Mon, 23 April 2012 12:45 Go to previous messageGo to next message
E! is currently offline  E!
Messages: 70
Registered: February 2004
Karma: 0
Recruit
btw: rotating objects around X/Y axis IS possible in LE.
simply hold right mouse button and move the mouse.


<<SCUD-Storm Origin Creator>>
Re: turn object upside down [message #466556 is a reply to message #466519] Mon, 23 April 2012 13:18 Go to previous messageGo to next message
Whitedragon is currently offline  Whitedragon
Messages: 832
Registered: February 2003
Location: California
Karma: 1
Colonel
iRANian wrote on Mon, 23 April 2012 05:05

Does it work on players?

No. While all physics classes have a transform only vehicles seem to send it over the network/render it correctly.


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 - )
Re: turn object upside down [message #466576 is a reply to message #466556] Mon, 23 April 2012 22:18 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
Whitedragon wrote on Mon, 23 April 2012 22:18

iRANian wrote on Mon, 23 April 2012 05:05

Does it work on players?

No. While all physics classes have a transform only vehicles seem to send it over the network/render it correctly.


maybe because vehs are the only ones that go with the terrain.
it would be funny if chars would do so to but that wouldnt be realistic


Owner of kambot TT server

kambot.freeforums.org
Re: turn object upside down [message #466641 is a reply to message #466439] Wed, 25 April 2012 09:04 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
How would I go about setting the X rotation to -180 degrees? Using Matrix3D::Rotate_X() with 180 degrees will go from 180 to -180 degrees like it's supposed to but I can't figure out what function I should use to set the X rotation to -180 degrees only.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: turn object upside down [message #466653 is a reply to message #466641] Wed, 25 April 2012 12:13 Go to previous message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
iRANian wrote on Wed, 25 April 2012 18:04

How would I go about setting the X rotation to -180 degrees? Using Matrix3D::Rotate_X() with 180 degrees will go from 180 to -180 degrees like it's supposed to but I can't figure out what function I should use to set the X rotation to -180 degrees only.


how do you do something that has exactly the same outcome but a only different direction -> -180° = 180° youre working on a circle there

and use DEG_TO_GRADF() in one of my last question was explained that matrix uses grad not degrees



Owner of kambot TT server

kambot.freeforums.org
Previous Topic: create a building
Next Topic: Have their been any good moddable first person games since Renegade?
Goto Forum:
  


Current Time: Wed Dec 18 01:27:34 MST 2024

Total time taken to generate the page: 0.00940 seconds