View unanswered posts | View active topics It is currently Thu Nov 28, 2024 8:12 am



Reply to topic  [ 4 posts ] 
 Custom Skirmish 
Author Message
User avatar

Joined: Thu Jan 05, 2012 8:18 am
Posts: 76
Location: In a Sauna, roasting to death
Reply with quote
Post Custom Skirmish
I Thought it was time for me to begin learning basic scene making, so i thought i'd make a custom skirmish mission.
How do you modify a skirmish to only spawn unarmed zombies/skeletons?


Sun May 13, 2012 10:00 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Custom Skirmish
It's easy.

In base.rte, inside the activities folder, there is a lua file called "SkirmishDefense".
Open it, and you will find a block which looks like this:

Code:
    self.factionA = "Coalition.rte";
    self.factionAActorList = {"Soldier Light", "Soldier Heavy"};
    self.factionACrabList = {"Gatling Drone"};
    self.factionAPrimaryWeaponList = {"Compact Assault Rifle", "Assault Rifle", "Shotgun", "Auto Shotgun", "Breaker-GL", "Gatling Gun", "Sniper Rifle", "Heavy Sniper Rifle", "Flamer", "Auto Cannon", "Revolver Cannon", "Flak Cannon"};
    self.factionASecondaryWeaponList = {"Pistol", "Auto Pistol", "Heavy Pistol"};

    self.factionB = "Dummy.rte";
    self.factionBActorList = {"Dummy"};
    self.factionBCrabList = {"Dreadnought"};
    self.factionBPrimaryWeaponList = {"Blaster", "Nailer Cannon", "Scouting Rifle", "Impulse Cannon", "Repeater", "Destroyer Cannon", "Annihiliator"};
    self.factionBSecondaryWeaponList = {"Nailgun", "Rail Pistol"};

    self.factionC = "Ronin.rte";
    self.factionCActorList = {"Dafred", "Mia", "Dimitri", "Brutus", "Sandra", "Gordon"};
    self.factionCCrabList = {};
    self.factionCPrimaryWeaponList = {"AK-47", "M16", "Shortgun", "Pumpgun", "Spas 12", "Kar98", "M1 Garand", "M60", "Thumper", "RPG-7"};
    self.factionCSecondaryWeaponList = {"Glock", "Desert Eagle", "Peacemaker", "Uzi"};


Well, in that part you script what you want to appear in the skirmish. Also, note that this is the lua way to do skirmishes, because back then activities were made with ini. You can take a look at the activities of older mods, like AAL, it has activities coded in ini.


Now, this is the simplest way to create your own skirmish; there are many other ways to customize it a lot.


Sun May 13, 2012 11:15 pm
Profile
User avatar

Joined: Thu Jan 05, 2012 8:18 am
Posts: 76
Location: In a Sauna, roasting to death
Reply with quote
Post Re: Custom Skirmish
Asklar wrote:
It's easy.

In base.rte, inside the activities folder, there is a lua file called "SkirmishDefense".
Open it, and you will find a block which looks like this:

Code:
    self.factionA = "Coalition.rte";
    self.factionAActorList = {"Soldier Light", "Soldier Heavy"};
    self.factionACrabList = {"Gatling Drone"};
    self.factionAPrimaryWeaponList = {"Compact Assault Rifle", "Assault Rifle", "Shotgun", "Auto Shotgun", "Breaker-GL", "Gatling Gun", "Sniper Rifle", "Heavy Sniper Rifle", "Flamer", "Auto Cannon", "Revolver Cannon", "Flak Cannon"};
    self.factionASecondaryWeaponList = {"Pistol", "Auto Pistol", "Heavy Pistol"};

    self.factionB = "Dummy.rte";
    self.factionBActorList = {"Dummy"};
    self.factionBCrabList = {"Dreadnought"};
    self.factionBPrimaryWeaponList = {"Blaster", "Nailer Cannon", "Scouting Rifle", "Impulse Cannon", "Repeater", "Destroyer Cannon", "Annihiliator"};
    self.factionBSecondaryWeaponList = {"Nailgun", "Rail Pistol"};

    self.factionC = "Ronin.rte";
    self.factionCActorList = {"Dafred", "Mia", "Dimitri", "Brutus", "Sandra", "Gordon"};
    self.factionCCrabList = {};
    self.factionCPrimaryWeaponList = {"AK-47", "M16", "Shortgun", "Pumpgun", "Spas 12", "Kar98", "M1 Garand", "M60", "Thumper", "RPG-7"};
    self.factionCSecondaryWeaponList = {"Glock", "Desert Eagle", "Peacemaker", "Uzi"}; self.factionA = "Undead.rte";


Well, in that part you script what you want to appear in the skirmish. Also, note that this is the lua way to do skirmishes, because back then activities were made with ini. You can take a look at the activities of older mods, like AAL, it has activities coded in ini.


Now, this is the simplest way to create your own skirmish; there are many other ways to customize it a lot.



So, if i'd want to do a zombie apocalypse skirmish, i'd only need to do this?

Code:
    self.factionA = "Undead.rte"
    self.factionAActorList = {"Zombie Thin", "Zombie Medium", "Zombie Fat", "Skeleton"};
    self.factionACrabList = {};
    self.factionAPrimaryWeaponList = {};
    self.factionASecondaryWeaponList = {};


Mon May 14, 2012 8:31 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: Custom Skirmish
Well, if you look a bit further in the code, you will see:
Code:
    self.moduleList = {self.factionA, self.factionB, self.factionC};
    self.actorList = {self.factionAActorList, self.factionBActorList, self.factionCActorList};
    self.crabList = {self.factionACrabList, self.factionBCrabList, self.factionCCrabList};
    self.primaryWeaponList = {self.factionAPrimaryWeaponList, self.factionBPrimaryWeaponList, self.factionCPrimaryWeaponList};
    self.secondaryWeaponList = {self.factionASecondaryWeaponList, self.factionBSecondaryWeaponList, self.factionCSecondaryWeaponList};


You'd have to delete all the other factions you aren't using, and so, the list would be:

Code:
    self.moduleList = {self.factionA};
    self.actorList = {self.factionAActorList};
    self.crabList = {self.factionACrabList};
    self.primaryWeaponList = {self.factionAPrimaryWeaponList};
    self.secondaryWeaponList = {self.factionASecondaryWeaponList};



Alternatively, you could create your own skirmish completely from scratch.


Mon May 14, 2012 10:33 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.023s | 13 Queries | GZIP : Off ]