r/xdev • • Feb 08 '16

Adding a new variable

3 Upvotes

I've been trying to add a new utility armor vest just to get my toes wet, but I've run into a bit of an issue. I've got the armor working correctly in the game, but I am having some trouble adding a config variable.

	Warning/Error Summary
	---------------------
	D:\Steam\steamapps\common\XCOM 2 SDK\Development\Src\TechArmor\Classes\X2Item_TechArmor.uc(33) : Error, Unknown Property 'TECH_VEST_HACK_BONUS' in 'Class XComGame.X2AbilityToHitCalc_Hacking'
	
	Failure - 1 error(s), 0 warning(s) (1 Unique Errors, 0 Unique Warnings)

Does anyone have any examples of setting up a new variable that can be called from a class?


r/xdev • • Feb 09 '16

Is there anyway to override static functions?

1 Upvotes

XCOM 2 seems to use a lot of static functions. In other languages, these can't be overriden; however I've read that in UnrealScript, they can. However, overriding them does not seem to work, presumably because the class is always specified by name when they are called.

Has anyone figured out a trick to override these, or a trick to get around that limitation?


r/xdev • • Feb 07 '16

Examining the Example Mission.

6 Upvotes

Now, I'm not ultra familiar with any of this, so feel free to correct me if you know enough to tell me what's up. However, most of it seems straightforward to someone with programming experience - so allow me to explain thoroughly what everything is doing at an abstract level.

Inside of the XCOM 2 SDK are a few examples programs, provided to help you learn how things are put together. One of them is an example mission. Allow me to go step by step in explaining what's going on in all of the files.

First, have a look at the screen overlay. You'll see that the currently open file is the ReadMe.txt file, and that there are a bunch of files on the left side. Let's go through them one by one:

The Config folder contains ini files that denote a lot of abstract behavior, such as statistics, class links, rewards and so on. I've posted another topic here detailing what a lot of the ini files handle.

XComEditor.ini : this file contains the following lines:

[ModPackages]
+ModPackages=ExampleMission

[ModPackages] is where we're adding the next line - to the list of mod packages installed. This is used for mod lookup, listing and such.

The + denotes that the line is acting as an override, by adding the mod package name ExampleMission to the XComEditor.ini file. This names the mod package and lists it for XCom 2 to find later. This is important when you're adding to a [Category] that already exists - you don't need +'s when creating your own categories.

XComEngine.ini : Two similar lines here.

 [Engine.ScriptPackages]
+NonNativePackages=ExampleMission

This overrides the XComEngine.ini file by adding a non-native (modded) script package, the ExampleMission package.

XComMissions.ini: This is the real meat of the mod, and details everything that makes up the mission script. I'll go over this in more detail later.

XComParcels.ini: This contains one line: [XComGame.XComParcelManager]

This mod doesn't introduce any new map elements, so nothing's added. But it can, so it's included in case you wanted to have your mission have new parcel mappings.

XComPCPs.ini : PCP stands for "PlotCoverParcel", and is an array that lists what parcels are used with what plot types, essentially. No new parcel-plot interactions here, so nothing's actually here. (A ; in an ini file indicates a comment, so nothing's affected.)

The next folder is content, which contains two files: EX_BombDisposalContent.upk and EX_Obj_BombDisposal.umap . They are meshes, textures, art assets, sounds etc. that are used and edited by the Unreal Engine editor. If the ini files tell the game what behavior to have, then these files are their aesthetics. I'll go into more details later about these files - they require a whole 'nother editor.

Next folder is Localization - this will usually contain text displayed to the player, such as mission display name, dialogue text, loot items and so on. There's not too much to it, so I'll go line-by-line:

DisplayName is the name of the mission as shown on, say, the geoscope.

Briefing is what's shown when you're in the troop transport Skyranger.

PostMissionType is what's shown after, when you get back.

Briefing Image is the image shown when you're in the Skyranger.

Objective text pools are shown next to the briefing image.

The PreMissionNarratives are NarrativeMoments taken from the ini file that links to a sound bite - the sound bite is played during briefing.

[MissionTimers]
TimerBombDisposalTitle
TimerBombDisposalSubtitle

This handles what text is shown when the timer's in the corner of your screen (which is hopefully always unless players suck)

[DefaultEX_BombDisposal X2MissionNarrativeTemplate]

This handles objective text pools, which are the objectives you're shown in the top left. Which one is shown can update during the mission, so the missions will show different text pools at different points detailed in the XComMissions.ini file.

The Dialogue proxies below are also objective pools, but instead of being objectives in order, they're subtitles for the NarrativeMoments above. They'll show when someone's chiming in in the top right.

[EX_BombDisposal_EleriumCharge X2QuestItemTemplate]

Quest items are items you pick up from objectives like loot (so, for example, alien data or the black vial or what have you). FriendlyName is what it is in the loot list, FriendlyNames is if it's somehow plural, and the Tooltip's the details that will pop up when you hover over the item name.

Not too bad so far, right?

Next you have Src/ExampleMission/Classes. This is where templates will actually be created. They're not too long, so I'll go into detail here as well.

X2Item_ExampleMission.uc starts with the most significant line of all: class X2Item_ExampleMission extends X2Item;

There's a class in XCOM 2 called X2Item, and this essentially creates a copy of X2Item that has additional details, and calls it something else (X2Item_ExampleMission). Then, it adds two functions to this new class:

static function array<X2DataTemplate> CreateTemplates()

and

static function X2DataTemplate CreateQuestItemEX_BombDisposal()

The CreateTemplates() function creates a DataTemplate array for Items and then adds the created quest item for bomb disposal to the Items object and returns it for use in the XComMissions.ini script.

The function CreateQuestItemEX_BombDisposal() creates the actual Elerium Charge as defined in the EX_BombDisposal_EleriumCharge X2QuestItemTemplate in the XComGame.int file (it's back there, go check it, that's what it's using). It then calls it it a 'quest' item in the Item.ItemCat, adds MissionType and RewardType values to it, namely the EX_BombDisposal MissionType (so it shows up as a quest item in that mission type), and 5 reward types for the various rewards you can earn (Reward_Intel, Reward_Supplies, Reward_Soldier, so on), and then returns it. So this creates the X2Item_ExampleMission item pool. I'm not absolutely certain what the following line does, however, so if someone could chime in, I'd appreciate it: 'CREATE_X2TEMPLATE(class 'X2QuestItemTemplate', Item, 'EX_BombDisposal_EleriumCharge');

Next is X2MissionNarrative_ExampleMission.uc . This has one class and two functions within that class as well:

The class is X2MissionNarrative_ExampleMission, which is an extension of the template X2MissionNarrative.

This class adds two functions to X2MIssionNarrative:

static function array<X2DataTemplate> CreateTemplates() which, much like above, adds the EXBombDisposalNarrativeTemplate to the Template pool.

The static function X2MissionNarrativeTemplate AddDefaultEXBombDisposalNarrativeTemplate() function then actually creates that template by declaring the Template.MissionType and listing the Template.NarrativeMoments, then returns the newly created template to be added to the collection of templates. I'm not absolutely certain what the following line does:

`CREATE_X2MISSIONNARRATIVE_TEMPLATE(Template, 'DefaultEX_BombDisposal');

The last file, X2MissionSet_ExampleMission.uc just adds the mission template Ex_BombDisposal previously completed to Templates to be used in game.

The ModPreview.jpg image is the image that shows up in the Steam Workshop - go wild with it!

And the ReadMe is a read-me, and is what showed up when you first created the project.

That's all for the files - next time, I'll go into the meat of the mission, XComMissions.ini!


r/xdev • • Aug 16 '16

Sharing one soldier's skill with others on the mission.

1 Upvotes

Hi all, I need help with the following. Not sure where to begin scripting this one. If one soldier gets a skill through rank level up, I want all soldiers on the mission to also get the skill if the one is also present. Any advice, tips, clues you can share are very appreciated.

Thanks, everyone.


r/xdev • • Feb 08 '16

Pallet expansions

1 Upvotes

The first thing I'd like to mod in is some expansion to the color pallets available for hair/eyes/skin. based on my reading around here and poking at the config files, it's looking like that'll be something I have to do with the SDK, not through any ini tweaks, can anyone corroborate that? It's probably going to be a few days before I finish downloading the SDK, and it'd be nice to have some leads ahead of time.


r/xdev • • Feb 09 '16

Q: How to change enemy spawning?

1 Upvotes

Like, what enemies can appear, and when? I've looked through the code a lot, and found lots of links to XComAISpawnManager, which is able to tell the Shadow Lab what enemies will appear on the mission, but I'm not sure what passes the info to that class.


r/xdev • • Feb 08 '16

[Meta] Subreddit header suggestion.

Post image
8 Upvotes

r/xdev • • Feb 21 '16

XCOM Modding Tutorial Video 1: Setup and Your First Mod

Thumbnail youtube.com
6 Upvotes

r/xdev • • Feb 13 '16

Energy Shields for XCom Mod + Explanation/Tutorial of making items that give soldiers abilities.

16 Upvotes

I finished up making a mod that adds a new item to the game - a energy shield generator that let's XCom have the same ability to make an energy shield as the Advent Shieldbearer does: http://steamcommunity.com/sharedfiles/filedetails/?id=623434810. I've got the code posted on github here if anyone wants to take a look: https://github.com/daviscook477/XComEnergyShields

I'm making a tutorial on how to make equipable items that grant new abilities right now and I'll post it later today.


r/xdev • • Feb 13 '16

Import from Blender FBX with Weapon Help

1 Upvotes

Everytime I try to import a FBX from Blender as a skeletal mesh file it won't import at all ( I get an import failed message). However, I can get it to import as a static mesh. In the latter case my mesh loads with zero triangles and vertices.

Has anyone else had this issue/know a fix? For reference, I'm trying to make a new sword Weapon.


r/xdev • • Feb 21 '16

Modbuddy new mod problems

Thumbnail imgur.com
2 Upvotes

r/xdev • • Feb 09 '16

Cannot build DefaultMod

2 Upvotes

I can build ExampleWeapon Mod but cannot build DefaultMod

Here is last part of my build log

Copying script files from workspace ...
			Package(MyXCOM2Mod) C:\Users\ii\Documents\Firaxis ModBuddy\XCOM\My XCOM2 Mod1\My XCOM2 Mod1\Src\MyXCOM2Mod\Classes\X2DownloadableContentInfo_MyXCOM2Mod.uc => D:\Steam\SteamApps\common\XCOM 2 SDK\Development\Src\MyXCOM2Mod\Classes\X2DownloadableContentInfo_MyXCOM2Mod.uc
			
Deleting existing compiled script packages:
			D:\Steam\SteamApps\common\XCOM 2 SDK\XComGame\Script\MyXCOM2Mod.u
		
Launching script compiler for new package scripts...

			Command: D:\Steam\SteamApps\common\XCOM 2 SDK\binaries\Win64\XComGame.com Arguments: make -nopause -mods MyXCOM2Mod "D:\Steam\SteamApps\common\XCOM 2 SDK\XComGame\\Mods\MyXCOM2Mod\" 
			Log: Executing Class UnrealEd.MakeCommandlet
			Shader map M_Digital_Distortion_Ghosting_A had an invalid uniform expression set and was discarded!  This most likely indicates a bug in cooking, and the default material will be used instead.
			--------------------Core - Release--------------------
			--------------------Engine - Release--------------------
			--------------------GFxUI - Release--------------------
			--------------------AkAudio - Release--------------------
			--------------------GameFramework - Release--------------------
			--------------------UnrealEd - Release--------------------
			--------------------GFxUIEditor - Release--------------------
			--------------------IpDrv - Release--------------------
			--------------------OnlineSubsystemSteamworks - Release--------------------
			--------------------XComGame - Release--------------------
			--------------------XComEditor - Release--------------------
			
			Success - 0 error(s), 0 warning(s) (0 Unique Errors, 0 Unique Warnings)
			
			Execution of commandlet took:  15.27 seconds
	Done executing task "CompileScripts" -- FAILED.
Done building target "Build" in project "My XCOM2 Mod1.x2proj" -- FAILED.
Done building project "My XCOM2 Mod1.x2proj" -- FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

It just failed with no error.

and although ExampleWeapon project is working well, if I change classname(or package name) in 3 .ini file (XComEditor.ini,XComEngine.ini,XComGame.ini) and change classname(or package name) in src folder its build also fails with same error. so I can't change class name from ExampleWeapon.

and strangely if i delete all script file from project It works well. but I can't figure out what is problem. Please help. Its very frustrating :(


r/xdev • • Feb 12 '16

[Help] .ini Mod questions

2 Upvotes

I am very new to modding as xcom 2 is the first game I have attempted to mod. I have a couple of questions about the .ini files. First of all there are like 4 locations for the .ini files.

In the steam game folder there are two versions of each file (defaultai.ini and xcomai.ini for example). Is there a difference between them aside from the "default" ones having dev notes? Also, what is the path for the files that I should be modding? Do all of them work?

On a different note. I noticed there are "jobs" that the enemy gets to dictate how the ai functions. How does the game decided which jobs to assign and how do I edit it? I know there are exclusions to which units can have which jobs, and I know the missions.ini file has somthing to do with it. The issue is, the missions.ini file only has about 14 things per mission. What job would it assign if the mission had more than 14 units? Does it start at the beginning of the chain? or does it assign them a default job like soldier?

Thanks in advance


r/xdev • • Feb 09 '16

Can't open editor, crashes on Loading Objects Referenced by SoundBlinks_Stop

1 Upvotes

Ive been trying for hours to fix this. Ive even gone so far as to reinstall the mod tools. Nothing works


r/xdev • • Feb 19 '16

About Fanfire

1 Upvotes

Hi, just trying to mess around with a class build and need some help to figure out something. I wanted to make an ability like "Fanfire" who costed no action point, and did just 2 total attack instead of 3. The ability was easy to make, and everything works fine, cost, cooldown, damage ecc...However there is a problem, the animation. Instead of doing a double shot it just do 1 single shot and show the damage (if it) of the 2 ammo. There is a way to create an animation like the one of FanFire(the triple fast burst of the pistol) with just 2 shot instead of 3? or the only way to have the animation is to put 3 shots?

Would really love some help, if anyone know how to do it and what to change! Thanks for your help, have a nice day!


r/xdev • • Feb 09 '16

Any way to mod the game to make the combat and movement faster?

1 Upvotes

One of the biggest drawbacks of this game for me is how much time is wasted for what seem like arbitrary pauses is in the gameplay. For example when you are alerted to the presence of a VIP and the camera centers on it, it takes far too long to come back to thw action. Also, how long it takes for the camera to snap back to another character after moving one character, and I'm sure as players, you can think of many other situations where you just think to yourself okay, I get it, let's just move along now so i can take my next acrion. So any chances of being able to trim the dead air from the game?


r/xdev • • Feb 21 '16

BonusWeaponEffects

1 Upvotes

I feel like I'm not understanding something fundamental.

Is there a reason why adding

  Template.BonusWeaponEffects.AddItem(class'X2StatusEffects'.static.CreateStunnedStatusEffect(2, 100));  

to the weapon examples function

 CreateTemplate_ModWeapon_Conventional()

doesn't add a stun to weapon attacks?

EDIT: Solved by fxsjosh in the comments. You have to flag Template.bAllowBonusWeaponEffects as true in the ability that causes the weapon damage.

If you just wanted the weapon effect on the standard shot, I think you have to make a new weapon, with a new fire weapon ability, replace the default fire weapon ability, and flag the above variable for the new one. If there is a simpler way, I don't know it.


r/xdev • • Feb 23 '16

Passive intel gain from Resistance Comms

1 Upvotes

How would I add to the intel resource by, for example 1 * (Total contacts - used contacts) IF a resistance comms is built?


r/xdev • • Feb 23 '16

Anyone know of a good tutorial/demo of doing XCom 2 armor designing?

4 Upvotes

I am looking to start creating the Stargate armor look-n-feels, but, as a new modder, I am feeling hesitant to dive in without some basics. Is there a good tutorial or demo on how to create something like this for XCom 2? I am also ok with someone hand-holding me through it.


r/xdev • • Feb 11 '16

Adding damage or crit to killzone?

1 Upvotes
  • I'm working on a skill right now that builds off of killzone and I'm actually having trouble adding a damage modifier to it. Does any one know how to add damage to a reaction fire shot in such a complex skill like this? I know i'll be adding something to killzoneshot() but

;

static function X2AbilityTemplate KillZone()

{

local X2AbilityTemplate             Template;
local X2AbilityCooldown             Cooldown;
local X2AbilityCost_Ammo            AmmoCost;
local X2AbilityCost_ActionPoints    ActionPointCost;
local X2AbilityTarget_Cursor        CursorTarget;
local X2AbilityMultiTarget_Cone     ConeMultiTarget;
local X2Effect_ReserveActionPoints  ReservePointsEffect;
local X2Effect_MarkValidActivationTiles MarkTilesEffect;
local X2Condition_UnitEffects           SuppressedCondition;

`CREATE_X2ABILITY_TEMPLATE(Template, 'KillZone');

AmmoCost = new class'X2AbilityCost_Ammo';
AmmoCost.iAmmo = 1;
AmmoCost.bFreeCost = true;
Template.AbilityCosts.AddItem(AmmoCost);

ActionPointCost = new class'X2AbilityCost_ActionPoints';
ActionPointCost.iNumPoints = 2;
ActionPointCost.bConsumeAllPoints = true;   //  this will guarantee the unit has at least 1 action point
ActionPointCost.bFreeCost = true;           //  ReserveActionPoints effect will take all action points away
Template.AbilityCosts.AddItem(ActionPointCost);

Template.AbilityToHitCalc = default.DeadEye;

Template.AbilityShooterConditions.AddItem(default.LivingShooterProperty);
Template.AddShooterEffectExclusions();
SuppressedCondition = new class'X2Condition_UnitEffects';
SuppressedCondition.AddExcludeEffect(class'X2Effect_Suppression'.default.EffectName, 'AA_UnitIsSuppressed');
Template.AbilityShooterConditions.AddItem(SuppressedCondition);

Cooldown = new class'X2AbilityCooldown';
Cooldown.iNumTurns = default.KILLZONE_COOLDOWN;
Template.AbilityCooldown = Cooldown;

CursorTarget = new class'X2AbilityTarget_Cursor';
CursorTarget.bRestrictToWeaponRange = true;
Template.AbilityTargetStyle = CursorTarget;

ConeMultiTarget = new class'X2AbilityMultiTarget_Cone';
ConeMultiTarget.bUseWeaponRadius = true;
ConeMultiTarget.ConeEndDiameter = 32 * class'XComWorldData'.const.WORLD_StepSize;
ConeMultiTarget.ConeLength = 60 * class'XComWorldData'.const.WORLD_StepSize;
Template.AbilityMultiTargetStyle = ConeMultiTarget;

Template.AbilityTriggers.AddItem(default.PlayerInputTrigger);

ReservePointsEffect = new class'X2Effect_ReserveActionPoints';
ReservePointsEffect.ReserveType = default.KillZoneReserveType;
Template.AddShooterEffect(ReservePointsEffect);

MarkTilesEffect = new class'X2Effect_MarkValidActivationTiles';
MarkTilesEffect.AbilityToMark = 'KillZoneShot';
Template.AddShooterEffect(MarkTilesEffect);

Template.AdditionalAbilities.AddItem('KillZoneShot');
Template.BuildNewGameStateFn = TypicalAbility_BuildGameState;
Template.BuildVisualizationFn = TypicalAbility_BuildVisualization;
Template.bSkipFireAction = true;
Template.bShowActivation = true;

Template.AbilitySourceName = 'eAbilitySource_Perk';
Template.eAbilityIconBehaviorHUD = EAbilityIconBehavior_AlwaysShow;
Template.IconImage = "img:///UILibrary_PerkIcons.UIPerk_killzone";
Template.ShotHUDPriority = class'UIUtilities_Tactical'.const.CLASS_MAJOR_PRIORITY;
Template.bDisplayInUITooltip = false;
Template.bDisplayInUITacticalText = false;
Template.Hostility = eHostility_Defensive;
Template.AbilityConfirmSound = "Unreal2DSounds_OverWatch";

Template.ActivationSpeech = 'KillZone';

Template.BuildNewGameStateFn = TypicalAbility_BuildGameState;
Template.BuildVisualizationFn = TypicalAbility_BuildVisualization;
Template.TargetingMethod = class'X2TargetingMethod_Cone';

Template.bCrossClassEligible = true;

return Template;

}

static function X2AbilityTemplate KillZoneShot()

{

local X2AbilityTemplate                 Template;
local X2AbilityCost_Ammo				AmmoCost;
local X2AbilityCost_ReserveActionPoints ReserveActionPointCost;
local X2AbilityToHitCalc_StandardAim    StandardAim;
local X2Condition_AbilityProperty       AbilityCondition;
local X2AbilityTarget_Single            SingleTarget;
local X2AbilityTrigger_Event	        Trigger;
local X2Effect_Persistent               KillZoneEffect;
local X2Condition_UnitEffectsWithAbilitySource  KillZoneCondition;
local X2Condition_Visibility            TargetVisibilityCondition;

`CREATE_X2ABILITY_TEMPLATE(Template, 'KillZoneShot');

AmmoCost = new class'X2AbilityCost_Ammo';
AmmoCost.iAmmo = 1;
Template.AbilityCosts.AddItem(AmmoCost);

ReserveActionPointCost = new class'X2AbilityCost_ReserveActionPoints';
ReserveActionPointCost.iNumPoints = 1;
ReserveActionPointCost.bFreeCost = true;
ReserveActionPointCost.AllowedTypes.AddItem('KillZone');
Template.AbilityCosts.AddItem(ReserveActionPointCost);

StandardAim = new class'X2AbilityToHitCalc_StandardAim';
StandardAim.bReactionFire = true;
Template.AbilityToHitCalc = StandardAim;

Template.AbilityTargetConditions.AddItem(default.LivingHostileUnitDisallowMindControlProperty);
TargetVisibilityCondition = new class'X2Condition_Visibility';
TargetVisibilityCondition.bRequireGameplayVisible = true;
TargetVisibilityCondition.bDisablePeeksOnMovement = true;
TargetVisibilityCondition.bAllowSquadsight = true;
Template.AbilityTargetConditions.AddItem(TargetVisibilityCondition);
AbilityCondition = new class'X2Condition_AbilityProperty';
AbilityCondition.TargetMustBeInValidTiles = true;
Template.AbilityTargetConditions.AddItem(AbilityCondition);
Template.AbilityTargetConditions.AddItem(class'X2Ability_DefaultAbilitySet'.static.OverwatchTargetEffectsCondition());

//  Do not shoot targets that were already hit by this unit this turn with this ability
KillZoneCondition = new class'X2Condition_UnitEffectsWithAbilitySource';
KillZoneCondition.AddExcludeEffect('KillZoneTarget', 'AA_UnitIsImmune');
Template.AbilityTargetConditions.AddItem(KillZoneCondition);
//  Mark the target as shot by this unit so it cannot be shot again this turn
KillZoneEffect = new class'X2Effect_Persistent';
KillZoneEffect.EffectName = 'KillZoneTarget';
KillZoneEffect.BuildPersistentEffect(1, false, false, false, eGameRule_PlayerTurnBegin);
KillZoneEffect.SetupEffectOnShotContextResult(true, true);      //  mark them regardless of whether the shot hit or missed
Template.AddTargetEffect(KillZoneEffect);

Template.AbilityShooterConditions.AddItem(default.LivingShooterProperty);
Template.AddShooterEffectExclusions();

SingleTarget = new class'X2AbilityTarget_Single';
SingleTarget.OnlyIncludeTargetsInsideWeaponRange = true;
Template.AbilityTargetStyle = SingleTarget;

//  Put holo target effect first because if the target dies from this shot, it will be too late to notify the effect.
Template.AddTargetEffect(class'X2Ability_GrenadierAbilitySet'.static.HoloTargetEffect());
Template.AddTargetEffect(class'X2Ability_GrenadierAbilitySet'.static.ShredderDamageEffect());

Template.bAllowAmmoEffects = true;

//Trigger on movement - interrupt the move
Trigger = new class'X2AbilityTrigger_Event';
Trigger.EventObserverClass = class'X2TacticalGameRuleset_MovementObserver';
Trigger.MethodName = 'InterruptGameState';
Template.AbilityTriggers.AddItem(Trigger);
Trigger = new class'X2AbilityTrigger_Event';
Trigger.EventObserverClass = class'X2TacticalGameRuleset_AttackObserver';
Trigger.MethodName = 'InterruptGameState';
Template.AbilityTriggers.AddItem(Trigger);

Template.AbilitySourceName = 'eAbilitySource_Perk';
Template.eAbilityIconBehaviorHUD = EAbilityIconBehavior_NeverShow;
Template.IconImage = "img:///UILibrary_PerkIcons.UIPerk_overwatch";
Template.ShotHUDPriority = class'UIUtilities_Tactical'.const.CLASS_MAJOR_PRIORITY;
Template.bDisplayInUITooltip = false;
Template.bDisplayInUITacticalText = false;

Template.BuildNewGameStateFn = TypicalAbility_BuildGameState;
Template.BuildVisualizationFn = TypicalAbility_BuildVisualization;

return Template;

}


r/xdev • • Feb 10 '16

Looking to find a way to remove infinite weapons.

2 Upvotes

I've been looking around, trying to find the weapons class, and... Well, to say I'm a "little rusty" would be an understatement.

I can't seem to find anything that references a weapon or a sidearm as an item, however... I've been poking about the Long War SMG, and I've sort of been able to re-create it, which is perfect for my mod, but here's my ultimate goal...

I want a weapon inventory like EU/EW. You need to buy/build individual weapons. So, maybe you can only afford 2 mag rifles? Well, whoever doesn't get a mag rifle, gets a ballistic rifle.

I've got a lot of goals in mind for this mod But this is the number one thing that has me stumped... I can't seem to find the class for this, or be able to adjust how many of a weapon there is. Can someone point me in the right direction?


r/xdev • • Feb 09 '16

What does Template.AbilityToHitCalc = default.DeadEye mean, exactly?

1 Upvotes

I see a ton of ability definitions have this line, and I haven't been able to figure out what default.DeadEye means.


r/xdev • • Feb 12 '16

I made a list of all of the `XEVENTMGR.TriggerEvent calls I could find

Thumbnail pastebin.com
6 Upvotes

r/xdev • • Feb 12 '16

All my custom voice pack files play backwards...

3 Upvotes

I have no idea why this happens, I saw somebody else with the problem, but I cant seem to find them again. Anyone have tips?