Home
Forum
Search
Login
Register
Account
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
November 24, 2024, 07:55:32 am
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Resources
Leaderboards
Unit Price Lists
Map List
Launcher status:
Players in chat: 0
Battles in progress: 0
Battles waiting: 5
Download the mod from Steam
Join our Discord server
Recent posts
Please don’t open this th...
by
Olazaika1
[November 01, 2024, 12:46:37 pm]
Required age ratings for ...
by
Unkn0wn
[October 05, 2024, 07:29:20 am]
50 minutes cap victory
by
Olazaika1
[September 05, 2024, 01:54:13 pm]
Feedback
by
Olazaika1
[July 16, 2024, 11:30:34 pm]
Anyone here still alive?
by
Olazaika1
[June 22, 2024, 06:49:40 am]
very glad to be signing u...
by
Olazaika1
[March 08, 2024, 12:13:38 am]
EiR:R ACA (Art Credits Ar...
by
Olazaika1
[March 08, 2024, 12:12:54 am]
Hello, New guy in the mod
by
Olazaika1
[March 08, 2024, 12:09:37 am]
CoH 3 Old Guard
by
chefarzt
[December 30, 2023, 08:00:58 pm]
KT got buffs, Rug stop hi...
by
LittleJoe
[February 04, 2023, 11:46:41 am]
Awards
2007
Mod of the Year
Editor's Choice
2008
Most Innovative Multiplayer
Nominee
Want to help promote Europe In Ruins? It's as easy as clicking here once a day!
Why?
COH: Europe In Ruins
>
Forum
>
EIR Main Forums
>
General Discussion
>
Just curious bout doctrines...
Pages: [
1
]
Go Down
Print
Author
Topic: Just curious bout doctrines... (Read 1409 times)
0 Members and 2 Guests are viewing this topic.
Freek
EIR Veteran
Posts: 218
Just curious bout doctrines...
«
on:
June 19, 2009, 12:32:44 pm »
I'm just wondering what exactly goes into implementing a doctrine, eg what do you have to type to allow rifles zooks (heavy weapons).
I'd be interested in seeing all the SCAR code (or whatever) for that.
Logged
Scyn
EIR Veteran
Posts: 1011
Re: Just curious bout doctrines...
«
Reply #1 on:
June 19, 2009, 01:15:57 pm »
First you make an upgrade in RGD format. eg: 'item_bazooka' which contains a list of things that upgrades normally require. In this case Our action for this upgrade would be to add an item. So we'd add to our actions, a slot_item\add. Now the slot item action must be linked to a particular weapon. This case the Bazooka.
weapon\allies\ballistic_weapon\infantry_anti_tank_weapon\m1_bazooka_atw.lua
A simple upgrade like this has no requirements as we're not modifying the weapon or unit. etc etc just adding an item. So our upgrade is done.
Afterwards we have to add the upgrade to the .luaconsts which is where the scar takes place. I can't really go into very much detail. but here's the jist of it. Obviously these won't fit in here correctly, but normally all these are on separate lines. This is what the code will look like.
BAZOOKA_SINGLE = BP_GetUpgradeBlueprint("upgrade/_europeinruins/us/items/item_bazooka.lua"),
So here's our Upgrade we just made correctly linked to the RGD. Basically the program wants to know where to pull the information from and that's how we do it, through scar.
And this is how your battalion looks for every unit. Obviously not this exact way of course. Everytime you click something in the launcher it automatically fills in these slots with the information you asked it to process.
{
sgroup = makeSGroup("SGroup108"),
transport = 0,
bp = EIRSBP.US.RIFLEMEN,
exp = 0,
popcap = 5,
upgrades = {EIRUPG.US.BAZOOKA_SINGLE}
},
There's actually a lot more steps that go into making a doctrine ability, but that's the basics for a simple weapon upgrade.
Logged
God is a genetically induced obsession that we interpret in such a way as to maintain our obedience.
Pages: [
1
]
Go Up
Print
Jump to:
Please select a destination:
-----------------------------
News & Introductions
-----------------------------
=> Updates & Announcements
=> EIR Boot Camp
===> In Other Languages
=====> In Chinese
=====> In German
=====> In Spanish
=====> In Polish
=====> In French
=====> In Norwegian
=> New Players
-----------------------------
EIR Main Forums
-----------------------------
=> General Discussion
=> Tactics & Strategy
=> Balance & Design
=> Broadcasts & Replays
=> Projects & Mapping
=> Technical Support
===> Bug Reporting
-----------------------------
General Forums
-----------------------------
=> General Discussion
=> Other Games
TinyPortal v1.0 beta 4 ©
Bloc
Loading...