If you want to help us maintaining this wiki, check out our discord server: https://discord.gg/3u69jMa 

Create new Squad Member

From SWRC Wiki
Revision as of 20:49, 10 August 2019 by Plasma (talk | contribs) (Created page with "This tutorial shows you how to create custom squad members for your party. ==Create new squad class== In your Actor browser, go to Actor->Pawn->CTPawn->Republic->CloneComman...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This tutorial shows you how to create custom squad members for your party.

Create new squad class

In your Actor browser, go to Actor->Pawn->CTPawn->Republic->CloneCommando and create a new sub class from CloneCommando.

Csmt1.PNG

Once the class and package have been created and saved, add the following code to the new class:

class MyCustomCommando extends CloneCommando;

var Texture ReviveOutsideTexture;
var Texture ReviveInsideTexture;

var localized string HUDDescription;
var localized string HUDNickname;

simulated event String GetHudDescription()
{
	return HUDDescription;
}

simulated event String GetHudNickname()
{
	return HUDNickname;
}

simulated function AnimateWoundedWalking()
{
	TurnLeftAnim = 'WoundedTurnLeft';
	TurnRightAnim = 'WoundedTurnRight';
	MovementAnim = 'Wounded62WalkForward';
}

simulated function AnimateWoundedRunning()
{
	TurnLeftAnim = 'WoundedTurnLeft';
	TurnRightAnim = 'WoundedTurnRight';
	MovementAnim = 'Wounded62RunForward';
}

Hit the compile button and save the package.


Adjusting Properties

The rest of this tutorial is just adjusting the properties of our new squad class.

Advanced