How do i add weapons to loadout options?

xzzxxz

Member
when i add a weapon like the shotgun to the weapons available bit it says invalid. this also happened with a rifle i made. how do i fix this?
 

Volt Cruelerz

Legions Developer
loadouts.cs is probably the file that you'll want to take a look at. I haven't learned the new structure of it yet, but it's obviously undergone heavy modification.
 

Jordahan

World Leader of The 21st Century
You can't put weapons on a class that isn't supposed to have them. Ex/ no sniper on Sent, no mortar on OR.
No idea where the file is that is setting that block
 

Volt Cruelerz

Legions Developer
depending on the new architecture, you may need to go into defaultPlayer and add in something along the lines of...

Code:
maxInventory[Shotgun]=1;//allows you to have a shotgun on a given loadout
maxInventory[ShotgunAmmo]=20//allows you to set how many rounds you have

Idk if this would fix it, but it's worth a shot.
 

RockeyRex

Legions Developer
loadouts.cs is probably the file that you'll want to take a look at.
Correct.

Code:
$LOArmor[0] = "OutriderPlayer";
$LOArmor[1] = "RaiderPlayer";
$LOArmor[2] = "SentinelPlayer";
 
$LOGrenade[0] = "BoostGrenade";
$LOGrenade[1] = "FragGrenade";
 
$LOWeapon[0] = "Rifle";
$LOWeapon[1] = "Chaingun";
$LOWeapon[2] = "RocketLauncher";
$LOWeapon[3] = "MortarLauncher";
$LOWeapon[4] = "GrenadeLauncher";
$LOWeapon[5] = "Plasma";
$LOWeapon[6] = "Blaster";
$LOWeapon[7] = "SkyboltLauncher";
 
$LOCore[0] = "OverdriveCore";
$LOCore[1] = "RegenerationCore";
$LOCore[2] = "WarpCore";
Add to the list.

go into defaultPlayer and add in something along the lines of...

Code:
maxInventory[Shotgun]=1;//allows you to have a shotgun on a given loadout
maxInventory[ShotgunAmmo]=20//allows you to set how many rounds you have
And then this.
 

Jordahan

World Leader of The 21st Century
Meh. It was OP damage wise, but I 100% agree it was a great fun to use. I'll see if I can dig up the files for the old rifle if someone wishes to use it for their mods.
It's already in Defender's Meltdown mod, as Laser Rifle HD
 

Volt Cruelerz

Legions Developer
Meh. It was OP damage wise, but I 100% agree it was a great fun to use. I'll see if I can dig up the files for the old rifle if someone wishes to use it for their mods.
I will agree there. After the old LR was removed, I more or less stopped using it because it just wasn't fun to use for me anymore.
 
Top