Page 1 of 1

New SHP files to replace originals in modded map.

Posted: Wed Jul 20, 2016 9:30 pm
by SoScared
I've been trying to look into how other modded maps do this but I can't seem to figure it out.

I have the SHP files ready alongside the yaml file already containing a modded medium tank:

Code: Select all

	2TNK.Germany:
		Inherits: 2TNK
		Buildable:
			Prerequisites: fix, ~vehicles.germany, ~techlevel.medium
		Valued:
			Cost: 1050
		Tooltip:
			Name: German Medium Tank
			Description: German Main Battle Tank.\n  Strong vs Vehicles\n  Weak vs Infantry, Aircraft
		Turreted:
			TurnSpeed: 4
		Armament:
			Weapon: 90mm.Germany
		RenderSprites:
			Image: 2tnkger
Any help would be greatly appreciated!

Posted: Wed Jul 20, 2016 10:06 pm
by Graion Dilach

Code: Select all

Sequences:
	2tnkger:
		idle:
			Facings: 32
			UseClassicFacingFudge: True
		turret:
			Start: 32
			Facings: 32
			UseClassicFacingFudge: True
		muzzle: gunfire2
			Length: 5
		icon: 2tnkgericon

	2tnkger.destroyed:
		idle: 2tnkger
			Facings: 32
			UseClassicFacingFudge: True
			ZOffset: -512
		turret: 2tnkger
			Start: 32
			Facings: 32
			UseClassicFacingFudge: True
			ZOffset: -512
 
You forgot the art code.

Posted: Wed Jul 20, 2016 11:10 pm
by SoScared
Fixed. Got it to work. Thanks! :)