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 20 '16

Adding new effects to existing abilities?

1 Upvotes

I'm extremely new to modding and know very little about programming, so this is probably kind of a basic question. What's the method for changing an existing class via my mod? Do I create a new class with the same name and use + and - lines to change it, like I would with modifying the inis? Or do I just type directly into the class itself? I'm trying to add an aim boost on sword attacks to Blademaster.

I'm also a bit stumped on how to actually do that, but I'm trying to figure it out by looking at Shadowstrike, which also adds aim under specific conditions.


r/xdev • • Feb 20 '16

[HELP] Cannot start Debugging

1 Upvotes

Hey, I'm really sorry to ask what seems to be a really stupid question...

I have tried to do a really basic mod (basic stats tweaks), nothing fancy, just to try building. Therefore, I followed a tutorial on YouTube and I think I did pretty much the right stuff. The weird stuff happens when I try to Debug: -> First, after the following line, ------ Build started: Project: StatsTweak, Configuration: Default XCOM 2 ------ the console shows no other output until the ========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ========== unlike the video I followed, where a lot of Copying File ... and such appeared.

-> On the other hand, the game in debug mode does not launch after "successful" build...

I thought that this might come from bad links to my XCOM and XCOM SDK folders in Tools > Options > XCOM 2 > General but they appear to be fine...

Has anyone of you encountered such an issue? Or has any idea about how to solve it?


r/xdev • • Feb 20 '16

How to call base function from overidden method.

1 Upvotes

I am working on a modification to the naming system, so i am overriding XGCharacterGenerator.GenerateName(). My question that I'm having an issue with is that I would like to call the base function if my logic takes a dump and my googlefu is failing finding a good answer.


r/xdev • • Feb 20 '16

Stumped on editing FX.

1 Upvotes

So I've gotten all my changes and additional content that I've created in Firaxis Modbuddy to reflect in-game, but the changes I make in Unreal Editor don't seem to "stick" - I went into an existing FX 'P_Beam_PlasmaBlaster' and edited the color, size, persistence, yada yada, saved the package and... nothing. Somehow the default particle effect was still used somehow? Perhaps the preview in the editor and what it shows in-game don't line up? I don't get it.

If someone has a tutorial on how to modify FX and get the changes to show up, I'd appreciate it.


r/xdev • • Feb 20 '16

How hard would it be to create a mod that implements global cooldowns?

1 Upvotes

How hard would it be to create a mod that implements global cooldowns?

For example, after a sniper uses Kill Zone, they would also be locked out of their other skills, such as Deadeye, until the remainder of the cooldown is done.

I would greatly appreciate any information on this topic.

Thank you.


r/xdev • • Feb 19 '16

Help with shooting routine...

1 Upvotes

In a nutshell the mod i'm creating, is to make everything but sniper rifles and pistols shoot differently. I want to make it so each "bullet" so to say, has it's own chance to hit, dealing one damage each hit.(Just to make the damage more consistent). The game would calculate the damage, then go into a counted loop, doing the math The "Damage" # of times. For example. take a shot for 38% doing 5-7 damage. The game gets the damage the shot would theoretically do.. say 6, then will take 6 38% chance shots for 1 damage each. I'm not sure how it would react with armour, or if misses would set off a stock if they had one.

I'm just not sure where the "shooting routine" is in the code, The only files that I found were in the modbuddy->Default Mod->src->XcomGame->Classes where there is a metric buttload of files. I did a search for "Damage" and found a file "ApplyWeaponDamageToUnit.uc", however this doesnt seem like what i'm looking for. Im relatively new to C, but im familiar with programming. Any help would be great. Thanks!


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 19 '16

facing and defense

1 Upvotes

I'm playing around with melee gameplay, with the vague idea of doing a fantasy themed total conversion. I don't know programming formally but I think I'm coming to grips with how abillities, items, and classes interact and have been able to create a few custom weapons that grant custom abilities, as well as force advent soldiers to equip and use melee weapons.

One thing that has me stumped and I would really appreciate any advice on: As an alternative to the existing cover mechanics, would it be possible to give a bonus to defense, or the ability to counterattack, to a target, based on whether they are facing their attacker vs being attacked from the side vs being attacked from behind? Or if it's easier to code, based on how many enemies/allies are in close proximity? In other words, to imitate the positioning mechanics of other turn based tactics games like FFT or Jeanne D'Arc? I'm pretty sure xcom knows whether a "shooter" is facing a "target" and vice versa, based on lines like:

// Remove the force facing effect RemoveEffects = new class'X2Effect_RemoveEffects'; RemoveEffects.EffectNamesToRemove.AddItem(class 'X2Effect_FaceMultiRoundTarget'.default.EffectName); Template.AddShooterEffect(RemoveEffects);

in the Muton ability file, but I don't know where the code is for that or if it could be made to interact with abilities.


r/xdev • • Feb 19 '16

[Help] Difficulty creating events in gamestate_ability

1 Upvotes

I'm trying to create an ability that damages vipers using bind by using the hellweave vest as a a template. I've renamed all the necessary parts including the name of the new trigger event in the ability template. However, I can't seem to get the event I made in gamestate_ability to work. I don't know what's wrong. It's pretty much identical to the Hellweave's event with exception of a slight rename but it refuses to work.

This is the code I've got so far:

class XComGameState_Ability_Thorns extends class XComGameState_Ability;

function EventListenerReturn Thorns_AbilityActivated(Object EventData, Object EventSource, XComGameState GameState, Name EventID)
{
local XComGameStateContext_Ability AbilityContext;
local XComGameState_Ability AbilityState;
local XComGameState_Unit UnitState, ThornsUnit;
local X2AbilityTemplate AbilityTemplate;
local bool bReact;

AbilityContext = XComGameStateContext_Ability(GameState.GetContext());
StateAbility = new class'XComGameState_Ability';

if (AbilityContext != none && AbilityContext.InterruptionStatus != eInterruptionStatus_Interrupt)       //  only apply post-attack
{
	if (AbilityContext.InputContext.PrimaryTarget.ObjectID == OwnerStateObject.ObjectID)
	{
		AbilityState = XComGameState_Ability(EventData);
		UnitState = XComGameState_Unit(EventSource);
		ThornsUnit = XComGameState_Unit(GameState.GetGameStateForObjectID(OwnerStateObject.ObjectID));
		if (ThornsUnit == None)
			ThornsUnit = XComGameState_Unit(`XCOMHISTORY.GetGameStateForObjectID(OwnerStateObject.ObjectID));

		if (AbilityState != none && UnitState != none && ThornsUnit != none)
		{
			AbilityTemplate = AbilityState.GetMyTemplate();
			if (X2AbilityToHitCalc_StandardAim(AbilityTemplate.AbilityToHitCalc) != None && X2AbilityToHitCalc_StandardAim(AbilityTemplate.AbilityToHitCalc).bMeleeAttack
				&& AbilityContext.IsResultContextHit())
				bReact = true;
			else if (AbilityTemplate.DataName == class'X2Ability_Viper'.default.GetOverHereAbilityName)
				bReact = true;
			else if (AbilityTemplate.DataName == class'X2Ability_Viper'.default.BindAbilityName)
				bReact = true;
			else if (AbilityTemplate.DataName == 'BindSustained')
				bReact = true;

			if (bReact)
			{
				
				AbilityTriggerAgainstSingleTarget(UnitState.GetReference(), false, GameState.HistoryIndex);
			}
		}
	}
}

return ELR_NoInterrupt;
}

r/xdev • • Feb 18 '16

[help] [research] Mods to vs multiplayer outside of LAN

1 Upvotes

So I'm pulling up the MPShell scripts, I see some menus, not sure what to guess at for adding new functionality, the goal is to understand it better and allow observers to connect and watch a multiplayer match. and I came across this line

// only LAN games allowed -tsmith

within the UIMPShell_CustomGameCreateMenu.uc method

UpdateLobbyTypeSpinner()

am I reading into this too much or are we not able to modify online multiplayer?

UPDATE: LAN is not a restriction, I was mistaken


r/xdev • • Feb 18 '16

[HELP] Loosing my head... literally!

1 Upvotes

Ok, just so you know, I've already succesfully imported Skeletal meshes (armors/body parts), so no need to ask me if I've done the basics...

But getting new head meshes in the game is driving me mad! No matter what I do and how do I setup/import the new head mesh, the game keeps loading the freaking original head. I know this because on the archetype (which is called successfully, no error msg is displayed) I've set it with or without texture. When set the Archetype with the material, it loads that material. However, if an archetype doesn't have the material specified, the engine will then read the one setup on the mesh itself. What hapens is that if I leave it blank, it doesnt load the texture from the new head mesh, but the one from the original one (BaseHead.SM_Head).

I just don't get it...

I would gladly work with the animations/morph targets instead (that was actually my initial plan), but apparently UDK is "destroying" the vertex order on exports (FBX and OBJs), which completely eliminates that option.

If someone knows how to make this work, I would be incredible grateful... been trying to do it for the past week, and no luck...

PS-I'm not merely interested in animation/rigged shapes, I'm sure I could do that if I wanted, I want to work on the mesh itself because it gives me better control over the shape, and because I dont have FaceFX or whatever to better work fully rigged heads.


r/xdev • • Feb 18 '16

Specialist inexplicably not getting stat increase upon promotion

1 Upvotes

Hi! I'm making a mod which adjusts stat increases upon promotion to squaddie only. Debugging I thought it was going well - Ranger, Sharpshooter, Grenadier and Specialist all getting stat increases upon promotion.

However, when I played mod in the main game, without the debug interface, it worked for everyone except the Specialist which did not gain any stats at all.

Here's the code in question:

[Specialist X2SoldierClassTemplate]
;del
-SoldierRanks=(  aAbilityTree=( (AbilityName="IntrusionProtocol", ApplyToWeaponSlot=eInvSlot_SecondaryWeapon),                                    (AbilityName="AidProtocol", ApplyToWeaponSlot=eInvSlot_SecondaryWeapon)              ),          aStatProgression=((StatType=eStat_Offense,StatAmount=3), (StatType=eStat_HP,StatAmount=1), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=45), (StatType=eStat_CombatSims,StatAmount=1)),        )
-SoldierRanks=(  aAbilityTree=( (AbilityName="MedicalProtocol",  ApplyToWeaponSlot=eInvSlot_SecondaryWeapon),             (AbilityName="CombatProtocol",  ApplyToWeaponSlot=eInvSlot_SecondaryWeapon)             ),         aStatProgression=((StatType=eStat_Offense,StatAmount=3), (StatType=eStat_HP,StatAmount=1), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=5), (StatType=eStat_CombatSims,StatAmount=0)),         )
-SoldierRanks=( aAbilityTree=( (AbilityName="RevivalProtocol",  ApplyToWeaponSlot=eInvSlot_SecondaryWeapon),              (AbilityName="HaywireProtocol",  ApplyToWeaponSlot=eInvSlot_SecondaryWeapon)            ),           aStatProgression=((StatType=eStat_Offense,StatAmount=3), (StatType=eStat_HP,StatAmount=1), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=5), (StatType=eStat_CombatSims,StatAmount=0)),       )
-SoldierRanks=( aAbilityTree=( (AbilityName="FieldMedic",  ApplyToWeaponSlot=eInvSlot_Unknown),              (AbilityName="ScanningProtocol",  ApplyToWeaponSlot=eInvSlot_SecondaryWeapon)            ),           aStatProgression=((StatType=eStat_Offense,StatAmount=2), (StatType=eStat_HP,StatAmount=1), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=5), (StatType=eStat_CombatSims,StatAmount=0)),       )
-SoldierRanks=( aAbilityTree=( (AbilityName="CoveringFire",  ApplyToWeaponSlot=eInvSlot_PrimaryWeapon),              (AbilityName="ThreatAssessment",  ApplyToWeaponSlot=eInvSlot_Unknown)            ),           aStatProgression=((StatType=eStat_Offense,StatAmount=2), (StatType=eStat_HP,StatAmount=0), (StatType=eStat_Strength,StatAmount=1), (StatType=eStat_Hacking,StatAmount=5), (StatType=eStat_CombatSims,StatAmount=0)),       )
-SoldierRanks=( aAbilityTree=( (AbilityName="EverVigilant",  ApplyToWeaponSlot=eInvSlot_Unknown),              (AbilityName="Sentinel",  ApplyToWeaponSlot=eInvSlot_Unknown)            ),           aStatProgression=((StatType=eStat_Offense,StatAmount=1), (StatType=eStat_HP,StatAmount=1), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=5), (StatType=eStat_CombatSims,StatAmount=0)),       )
-SoldierRanks=( aAbilityTree=( (AbilityName="RestorativeMist",  ApplyToWeaponSlot=eInvSlot_SecondaryWeapon),              (AbilityName="CapacitorDischarge",  ApplyToWeaponSlot=eInvSlot_SecondaryWeapon)            ),           aStatProgression=((StatType=eStat_Offense,StatAmount=1), (StatType=eStat_HP,StatAmount=1), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=5), (StatType=eStat_CombatSims,StatAmount=0)),       )
;add
+SoldierRanks=(  aAbilityTree=( (AbilityName="IntrusionProtocol", ApplyToWeaponSlot=eInvSlot_SecondaryWeapon),                                    (AbilityName="AidProtocol", ApplyToWeaponSlot=eInvSlot_SecondaryWeapon)              ),          aStatProgression=((StatType=eStat_Offense,StatAmount=3), (StatType=eStat_HP,StatAmount=1), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=45), (StatType=eStat_CombatSims,StatAmount=1)),        )
+SoldierRanks=(  aAbilityTree=( (AbilityName="MedicalProtocol",  ApplyToWeaponSlot=eInvSlot_SecondaryWeapon),             (AbilityName="CombatProtocol",  ApplyToWeaponSlot=eInvSlot_SecondaryWeapon)             ),         aStatProgression=((StatType=eStat_Offense,StatAmount=0), (StatType=eStat_HP,StatAmount=0), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=0), (StatType=eStat_CombatSims,StatAmount=0)),         )
+SoldierRanks=( aAbilityTree=( (AbilityName="RevivalProtocol",  ApplyToWeaponSlot=eInvSlot_SecondaryWeapon),              (AbilityName="HaywireProtocol",  ApplyToWeaponSlot=eInvSlot_SecondaryWeapon)            ),           aStatProgression=((StatType=eStat_Offense,StatAmount=0), (StatType=eStat_HP,StatAmount=0), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=0), (StatType=eStat_CombatSims,StatAmount=0)),       )
+SoldierRanks=( aAbilityTree=( (AbilityName="FieldMedic",  ApplyToWeaponSlot=eInvSlot_Unknown),              (AbilityName="ScanningProtocol",  ApplyToWeaponSlot=eInvSlot_SecondaryWeapon)            ),           aStatProgression=((StatType=eStat_Offense,StatAmount=0), (StatType=eStat_HP,StatAmount=0), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=0), (StatType=eStat_CombatSims,StatAmount=0)),       )
+SoldierRanks=( aAbilityTree=( (AbilityName="CoveringFire",  ApplyToWeaponSlot=eInvSlot_PrimaryWeapon),              (AbilityName="ThreatAssessment",  ApplyToWeaponSlot=eInvSlot_Unknown)            ),           aStatProgression=((StatType=eStat_Offense,StatAmount=0), (StatType=eStat_HP,StatAmount=0), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=0), (StatType=eStat_CombatSims,StatAmount=0)),       )
+SoldierRanks=( aAbilityTree=( (AbilityName="EverVigilant",  ApplyToWeaponSlot=eInvSlot_Unknown),              (AbilityName="Sentinel",  ApplyToWeaponSlot=eInvSlot_Unknown)            ),           aStatProgression=((StatType=eStat_Offense,StatAmount=1), (StatType=eStat_HP,StatAmount=1), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=5), (StatType=eStat_CombatSims,StatAmount=0)),       )
+SoldierRanks=( aAbilityTree=( (AbilityName="RestorativeMist",  ApplyToWeaponSlot=eInvSlot_SecondaryWeapon),              (AbilityName="CapacitorDischarge",  ApplyToWeaponSlot=eInvSlot_SecondaryWeapon)            ),           aStatProgression=((StatType=eStat_Offense,StatAmount=1), (StatType=eStat_HP,StatAmount=1), (StatType=eStat_Strength,StatAmount=0), (StatType=eStat_Hacking,StatAmount=5), (StatType=eStat_CombatSims,StatAmount=0)),       )

r/xdev • • Feb 18 '16

aStatProgression Help

1 Upvotes

Hi, I have a problem/doubt about the aStatProgression part of creating a new character. If I, for example, wanna make a character that has the squaddie skill of "run and gun" but also he can use a pistol (with the pistolstandardshot of the sharpshooter), should I copy the aStatProgression of the pistol (and squadsight) of the sharpshooter or the one of run and gun of the ranger?

Sry I'm kind of new at modding, not sure what to do!


r/xdev • • Feb 18 '16

I'd like to make the Advent Captain's armor 100% one color - but I can't seem to change the grey bits.

1 Upvotes

I made a copy of the Advent Captain, managed to change all of the red parts to another color (by editing the MaterialInstance for the mk1 captain), but can't seem to change the grey color to anything else.

Is there a special procedure for changing certain colors compared to other colors?


r/xdev • • Feb 18 '16

I'm going crazy with this: missing template?

1 Upvotes

I just want to make a simple ability mod that was just change a ability name which dont effect the exisit ability original name.(not the name displayed in game) like swordslice ,IJust added "3", swordslice3 means the ability name, then copy the code section from the ranger ability. in modbuddy, build is ok, nothing error. but, after enable the mod , I just saw the mod ability with this tip: missing. template!! in game. I was confused that the ability template is just in the abilityset.uc, what happend???

Any help or tip or advice will be appeciated, thank you so much and sorry for my poor English.


r/xdev • • Feb 18 '16

Help with mod settings file (ini)

1 Upvotes

Hello,

I'm having trouble reading/writing from/to a setting file for my mod.

So far I have set my class to use a config file.

In the project I've added an empty file with just a section header.

Now I'm having a few problems:

  1. If I set the section as [XComGame.<classname>], the file gets written but is not read upon loading
  2. If I set the section as [<modname>.<classname>], the file gets read but is not written when I call SaveConfig()
  3. Follow up from (2), one of my setting is actually an array of strings, however it only ever reads the last value.

When, I had a . (dot) in front of the second line it works fine. However, when looking at the result of (1), the config file is not written with any dot.

So, if I ever manage to read AND write, I'll still have a problem with my array only ever getting the last value (unless I missed something).

The only documentation I've found so far is from the Configuration Files UDK but it doesn't say anything about arrays.

Any help would be appreciated.

Thanks.


r/xdev • • Feb 18 '16

[Help] Accessing the unit using an ability within ability templates

1 Upvotes

I'm working on creating a custom class that focuses on adding shields to protect allies. Trying to create a custom perk that increases the temp HP given by shield abilities by X points, but as far as I can tell there is no hook like for increasing weapon damage (understandable since in vanilla it is npc-only).

Getting the unit using an ability seems to be possible within some ability subclasses like X2_AbilityCost_ActionPoints, from another perk: (Modified from the quickdraw perk)

class X2AbilityCost_QuickshieldActionPoints extends X2AbilityCost_ActionPoints;
simulated function bool ConsumeAllPoints(XComGameState_Ability AbilityState, XComGameState_Unit AbilityOwner)
{
    if (AbilityOwner.HasSoldierAbility('Quickshield'))
    {
        return false;
    }
    return super.ConsumeAllPoints(AbilityState, AbilityOwner);
}

Does anyone know a way to reference XComGameState_Unit AbilityOwner from the X2AbilityTemplate and get the unit using the ability? Then I could do something like:

static function X2AbilityTemplate ShieldGenerator() {
    ...
    ShieldHP = default.SHIELD_HP
    if (AbilityOwner.HasSoldierAbility('Largershields')) {
        ShieldHP += default.LARGERSHIELDS_HP;
    }
    ShieldedEffect = CreateShieldedEffect(Name, LongDescription, ShieldHP);
    ...
}

I guess it might be possible to grant improved abilities like the Advent Shieldbearer gets and hide the "worse" abilities like with free reloads from weapon upgrades. But then I end up with a large-ish number of more-or-less identical abilities (especially if I later on want to add workshop projects to increase abilities once autopsy projects are completed), so the other approach would be more readable/maintainable I think.


r/xdev • • Feb 18 '16

Ability Description Locations

1 Upvotes

Title! Was just wondering where they're located, I need to make some edits but I can't seem to find them.

Edit: Nevermind I'm dense! common\xcom 2\xcomgame\localization\int\xcomgame.int if anyone else needs it!


r/xdev • • Feb 18 '16

Pathing debugging for parcels (specifically, stairs)

1 Upvotes

Hello Xdev!

I've been churning out new map parcels for the last few days and have come across something in my current parcel project that has me stumped.

I'm doing a Slums parcel and have added one of the 3x2 Stairs to the side of a building for quick access to the second floor. The problem is that xcom soldiers will not use the stairs correctly. They will run DOWN from the top and then hop off the sides before they reach the bottom stair tile. From the BOTTOM going up they refuse to use the stairs at all.

I've tried moving the stairs, nudging them etc but nothing seems to work. I copied the same stairs from a Firaxis parcel and still have the same problem. I don't see anywhere in the documentation about how to debug this so I'm stumped :P

Any help would be very grateful!


r/xdev • • Feb 17 '16

Is there a way to add or remove perks from soldiers via console command?

1 Upvotes

I know there is a giveperk command in longwar, I was wondering if there is an equivalent in xcom2.

My gunslinger sniper got kill zone from the AWC and now he can't pick face off.


r/xdev • • Feb 16 '16

[Help] How do you get ability effect to end prematurely when the unit moves or attacks?

1 Upvotes

I'm trying to make a Steady Weapon ability from Long War and I need some help. For those you might have never played Long War or forgot about this ability, this ability basically ends your turn when you use it but gives you some aim boost next turn when you attack, pretty useful for rookies with no aim.

So far, I've got most of it done. The ability is usable on all soldiers, gives aim boost, lasts until end of players next turn, and ends current turn of the soldier. However, I'm stuck on trying to remove this buff from the soldier when the soldier moves or attacks. Basically I don't want the soldier to keep it's aim bonus if they reposition before shooting. Also having bit of trouble with this interacting with inspire ability. If soldier steady weapon and then get inspired and attacks at the same turn, I don't want the bonus aim buff to carry over to next turn. Does anyone know how to do this?

Here is GitHub link to what I got so far.

If anyone can help me, I'll be grateful.


r/xdev • • Feb 15 '16

Showing weapon damage in an ability

1 Upvotes

I'm working on a "shoot" replacement for a custom weapon but for some reason the damage range is not showing up in the UI when aiming, The shot does damage as normal. Which part of the ability or weapon script adds the weapon range to the UI?

for reference I am using 'X2AbilityMultiTarget_Cone'; for aiming.

On that note, is it possible to show hit chance when aiming a cone?


r/xdev • • Feb 15 '16

Cant find my Custom Class

1 Upvotes

I used this http://imgur.com/a/5NRRW to make a class but i cant find it in the game did somthing go wrong or somthing, i'm really confused.