Jump to content

Adding an RCS mode to engines


Recommended Posts

I'm attempting to add a toggle to engines that allows them to act as RCS thrusters. I got it working without much of an issue, except one thing: the thrust is backwards.

https://cdn.discordapp.com/attachments/650801211502624828/888609874978701342/Kerbal_Space_Program_2021-09-17_21-36-53_Trim_Trim_Trim.mp4

Here's a video clip of what I mean. This happens with every engine I've tested, notably the "spider" and "puff".

	MODULE
	{
		name = ModuleRCSFX
		stagingEnabled = False
		thrusterTransformName = fxTransform //thrustTransform
		thrusterPower = 2
		resourceName = MonoPropellant
		resourceFlowMode = STAGE_PRIORITY_FLOW
		runningEffectName = fx-spider-running //running
		atmosphereCurve
		{
			key = 0 240
			key = 1 100
			key = 4 0.001
		}
	}

Here's the relevant block. I've currently got it configured to work with ReStock, which changes the "thrusterTransformName" and "runningEffectName" values.

Note that the engine fires normally through the ModuleEnginesFX engine, it's only reversed when I try to get it working through RCS.

Fixes or workarounds would be appreciated, but I'm not looking for alternatives such as mods that overhaul the whole flight control system (e.g, Throttle Controlled Avionics).

 

Link to comment
Share on other sites

On 9/20/2021 at 12:39 PM, sebi.zzr said:

Hello

Try adding:

MODULE
	{
		name = ModuleRCSFX
		useZaxis = true
	}

 

That totally seemed like something that would fix it, but I tested it and unfortunately it seems to have no effect, regardless of whether it's set to true or false.

https://cdn.discordapp.com/attachments/650801211502624828/890033058051407882/Kerbal_Space_Program_2021-09-21_20-31-36_Trim.mp4

Here's another clip that shows the... peculiarities of this.

https://www.kerbalspaceprogram.com/api/class_module_r_c_s_f_x.html

I assume you got that parameter from this website, yeah?

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...