Jump to content

Photo

My New Weapon has no ammo

xcom weapon ini uc

  • Please log in to reply
No replies to this topic

#1
kdports

kdports

    Stranger

  • Members
  • Pip
  • 1 posts

I've been following Kwahn's tutorial on making a shotgun, and have set up the ini and uc files as stated. However, when i start the game the gun's clipsize is 0, and i cannot reload.

 

My .uc code related to the ini:

 

class X2Item_Blaze extends X2Item config(Blaze);
 
var config WeaponDamageValue BLAZE_BASEDAMAGE;
 
var config array<int> BLAZE_RANGE;
var config int BLAZE_AIM;
var config int BLAZE_CRITCHANCE;
var config int BLAZE_ICLIPSIZE;
var config int BLAZE_ISOUNDRANGE;
var config int BLAZE_IENVIRONMENTDAMAGE;
 
 
My ini code:
 
[Weapon01.X2Item_Blaze]
 
BLAZE_BASEDAMAGE=(Damage=3, Spread=0, PlusOne=0, Crit=2, Pierce=0, Shred=0, Tag="", DamageType="Projectile_Conventional")
 
BLAZE_AIM=0
BLAZE_CRITCHANCE=3
BLAZE_ICLIPSIZE=4
BLAZE_ISOUNDRANGE=27
BLAZE_IENVIRONMENTDAMAGE=0
 
I am calling my weapon Blaze instead of DoubleBarrelShotgun. Thanks in advance!

 







Also tagged with one or more of these keywords: xcom, weapon, ini, uc

Page loaded in: 1.028 seconds