Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » wf/air waypoint end
wf/air waypoint end [message #465212] Sun, 01 April 2012 04:59 Go to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
is it possible to get the coordinates for one of the three waypoint ends trough scripts?



Owner of kambot TT server

kambot.freeforums.org
Re: wf/air waypoint end [message #465220 is a reply to message #465212] Sun, 01 April 2012 07:11 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

No its not possible.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: wf/air waypoint end [message #465269 is a reply to message #465220] Sun, 01 April 2012 19:26 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3812
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Lol, wish I would have asked that yesterday when I was trying to find them as objects.

Re: wf/air waypoint end [message #465272 is a reply to message #465269] Sun, 01 April 2012 20:10 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
Jerad Gray wrote on Mon, 02 April 2012 04:26

Lol, wish I would have asked that yesterday when I was trying to find them as objects.


i thought about trying it to

but i opened a multiplayer map in level edit and noticed it wasnt really a object


Owner of kambot TT server

kambot.freeforums.org
Re: wf/air waypoint end [message #465315 is a reply to message #465272] Mon, 02 April 2012 09:00 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3812
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
robbyke wrote on Sun, 01 April 2012 21:10

Jerad Gray wrote on Mon, 02 April 2012 04:26

Lol, wish I would have asked that yesterday when I was trying to find them as objects.


i thought about trying it to

but i opened a multiplayer map in level edit and noticed it wasnt really a object

I figured just because it wasn't listed as an object did't mean it wasn't stored as an object at some level.


Re: wf/air waypoint end [message #465337 is a reply to message #465212] Mon, 02 April 2012 11:19 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

The only items that exist as "objects" (i.e. have a GameObject instance behind them) are:
Air Factory
Airstrip
Beacon
<Generic Building>
C4
Cinematic
Com Center
Construction Yard
Damage Zone
Mendoza Boss
Naval Factory
Power Plant
PowerUp
Raveshaw Boss
Refinery
Repair Bay
Sakura Boss
SAMSite
Script Zone
Simple
Soldier Factory
Soldier
Special Effects
Transition
Vehicle Factory
Vehicle
WarFactory


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: wf/air waypoint end [message #465356 is a reply to message #465212] Mon, 02 April 2012 14:47 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)

So you can't get the location of any waypoints at all? Then how does the game find them?

-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: wf/air waypoint end [message #465366 is a reply to message #465212] Mon, 02 April 2012 17:42 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

It stores the location in some other data structure.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: wf/air waypoint end [message #465371 is a reply to message #465366] Mon, 02 April 2012 19:41 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3812
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
Its inside MagicalWestwoodStudioDataStructOfArraysOfAwesome class.

Re: wf/air waypoint end [message #465404 is a reply to message #465212] Tue, 03 April 2012 10:37 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

Actually, they are stored in a DynamicVectorClass<WaypathClass *> inside PathfindClass Smile



Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: wf/air waypoint end [message #465428 is a reply to message #465404] Tue, 03 April 2012 14:31 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)

jonwil wrote on Tue, 03 April 2012 12:37

Actually, they are stored in a DynamicVectorClass<WaypathClass *> inside PathfindClass Smile



Damn, couldn't find either of those so obviously it's not exposed in scripts source Sad


-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: wf/air waypoint end [message #465437 is a reply to message #465212] Tue, 03 April 2012 16:53 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Shouldn't be so hard the find the location of it in FDS.

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: wf/air waypoint end [message #465446 is a reply to message #465212] Tue, 03 April 2012 17:32 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)

Yes, if I knew a thing of ASM

-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: wf/air waypoint end [message #465476 is a reply to message #465212] Wed, 04 April 2012 00:54 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
just believe in yourself, touch the screen and close your eyes

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: wf/air waypoint end [message #465693 is a reply to message #465212] Sat, 07 April 2012 06:58 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
can i find the vehicle delivery zone?(dont know correct name)

if i can is it always face the same direction, the direction vehicles are delivered.


Owner of kambot TT server

kambot.freeforums.org
Re: wf/air waypoint end [message #465699 is a reply to message #465212] Sat, 07 April 2012 08:43 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

VehicleFactoryGameObj.Get_Creation_TM is what you want, that is the position/orientation of the car object placed in LE.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: wf/air waypoint end [message #465703 is a reply to message #465699] Sat, 07 April 2012 11:14 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
jonwil wrote on Sat, 07 April 2012 17:43

VehicleFactoryGameObj.Get_Creation_TM is what you want, that is the position/orientation of the car object placed in LE.



i got the position but cant seem to get the facing out of it

EDIT:

could it be that Z rotation is the the same as Commands->Get_Facing()


Owner of kambot TT server

kambot.freeforums.org

[Updated on: Sat, 07 April 2012 11:18]

Report message to a moderator

Re: wf/air waypoint end [message #465717 is a reply to message #465212] Sat, 07 April 2012 18:12 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

yes, z rotation is the same as facing.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: wf/air waypoint end [message #465790 is a reply to message #465212] Mon, 09 April 2012 06:49 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
how does the game now wich facing a veh should have when its created.

because what i do now sometimes places the veh behind the wf and sometimes in front depending on the map wich is kinda anoying.


Owner of kambot TT server

kambot.freeforums.org
Re: wf/air waypoint end [message #465798 is a reply to message #465212] Mon, 09 April 2012 09:56 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

The best you will get is to call VehicleFactoryGameObj::Get_Creation_TM then call Get_Z_Rotation on that and pass the results to Set_Facing.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: wf/air waypoint end [message #465803 is a reply to message #465798] Mon, 09 April 2012 10:37 Go to previous message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
i was doing that but

i might have an idea:

on harv create set facing of the VehicleFactoryGameObj::Get_Creation_TM to the facing of the harv

gonna try it out later


Owner of kambot TT server

kambot.freeforums.org
Previous Topic: renegadehelp.net
Next Topic: double damage
Goto Forum:
  


Current Time: Wed Dec 18 03:42:33 MST 2024

Total time taken to generate the page: 0.01320 seconds