Questions about (objGetDevice* ...) and (objSetDevice* ...)

Freeform discussion about anything related to modding Transcendence.
Post Reply
PM
Fleet Admiral
Fleet Admiral
Posts: 2241
Joined: Wed Sep 01, 2010 12:54 am

Sun Feb 19, 2012 2:54 am

Is there any way to get or set the 'z' position of a device? So far, we have angle and radius for the x and y axes, but none that I know of for the z-axis.

Are there functions to check if a weapon is omnidirectional, or to force a given weapon to be omnidirectional? If not, I like to see functions like (objIsDeviceOmnidirectional obj deviceItem) and (objSetDeviceOmnidirectional obj deviceItem [True/Nil]).
Download and Play in 1.7 Beta...
Playership Drones v7 (Beta): Acquire and command almost any ship in Stars of the Pilgrim or Eternity Port.
Drake Technologies (Alpha): More hardware for combat in parts 1 and 2!
Star Castle Arcade: Relive classic arcade gaming in a new Transcendence adventure!
Godmode v3 (WIP): Dev/cheat tool compatible with D&O parts 1 or 2.

george moromisato
Developer
Developer
Posts: 2877
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

Mon Feb 20, 2012 5:18 pm

All good requests. I've added some tickets, which should get done for 1.08 (soon):

objSetDevicePos and z axis: http://wiki.neurohack.com/transcendence/trac/ticket/746
get set omni: http://wiki.neurohack.com/transcendence/trac/ticket/747

PM
Fleet Admiral
Fleet Admiral
Posts: 2241
Joined: Wed Sep 01, 2010 12:54 am

Mon Feb 20, 2012 7:17 pm

Thanks. Also another request:

I noticed that device position for playerships is set to a default of (angle=0, radius=20, z=0). While fine for the basic three playerships, this is ill-suited for other ships with different positions, such as capital ships or even the Luminous drone with its rear-aiming weapon. What would be nice is to let the modder define the default position and fire arcs/omni of a playership, so that when the player installs a new weapon for an unusual ship, the device position/firearcs are automatically set to those new defaults. If the playership has no defaults defined, it uses the standard position (0 20) and no fire arcs.

Then the (objSetDevice* ...) functions can be used whenever the modder wants to work with secondary weapons.
Download and Play in 1.7 Beta...
Playership Drones v7 (Beta): Acquire and command almost any ship in Stars of the Pilgrim or Eternity Port.
Drake Technologies (Alpha): More hardware for combat in parts 1 and 2!
Star Castle Arcade: Relive classic arcade gaming in a new Transcendence adventure!
Godmode v3 (WIP): Dev/cheat tool compatible with D&O parts 1 or 2.

Post Reply