Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passengers not removed if failed flight mission is recovered #15

Closed
caerfinon opened this issue Dec 15, 2020 · 3 comments
Closed

Passengers not removed if failed flight mission is recovered #15

caerfinon opened this issue Dec 15, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@caerfinon
Copy link
Owner

On contract failure the passengers are not removed from game if player recovers the flight and the passengers are not dead.

  • Need to add a remove kerbal behaviours on contract failure
@caerfinon caerfinon added the bug Something isn't working label Dec 15, 2020
@caerfinon caerfinon self-assigned this Dec 15, 2020
@caerfinon caerfinon added this to To do in KerbinSideRemasteredGAP via automation Dec 15, 2020
@caerfinon caerfinon changed the title Passengers not removed is failed flight mission is recovered Passengers not removed if failed flight mission is recovered Dec 15, 2020
@caerfinon caerfinon moved this from To do to In progress in KerbinSideRemasteredGAP Dec 15, 2020
@caerfinon
Copy link
Owner Author

Code to fix tourists on fail

// Eliminate craft on contract failure to prevent tourist spam in Astronaut Complex	
	BEHAVIOUR
	{
		name = DestroyVessel
		type = DestroyVessel
		onState = CONTRACT_FAILED
		vessel = @/craft
	}
//----------------------------------------------------------------------
//Craft definition
	PARAMETER
	{
		name = VesselParameterGroup
		type = VesselParameterGroup
		title = Your aircraft must
		
		define = @/craft
		// Do not dissassociate on failure this prevents vessel destruction behaviour
		dissassociateVesselsOnContractFailure = false


//----------------------------------------------------------------------
		DIALOG_BOX
		{
			condition = CONTRACT_FAILED
			
			position = CENTER
			title = <b>Sometimes Things Go Wrong</b>
			titleColor = #BADA55
			
			TEXT
			{
				text = <color=red><b>KSC ATC:</b> Trans One Zero Five One, Are you there? please respond. Trans One Zero Five One, we've lost you on radar, do you copy? Are you declaring an emergency?.... and you were doing so well.</color>    
			}
			
			IMAGE
			{
				url = ContractPacks/KerbinSideRemasteredGAP/Assets/Characters/@/KSC_ATC
				characterName = Air Traffic Controller
			}
			
		}		

Everyone on vessel is killed. leaves you with options to revert flight or go back to space center. If your game settings don't allow reverting flights then everyone is dead.

@caerfinon
Copy link
Owner Author

Solution has been play-tested in Dev. Upgrading flights with new code for next release

KerbinSideRemasteredGAP automation moved this from In progress to Done Dec 20, 2020
@caerfinon
Copy link
Owner Author

resolved by version 1.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Development

No branches or pull requests

1 participant