Skip to content

Commit

Permalink
"0.3final", 2006-06-27 00:21:32
Browse files Browse the repository at this point in the history
Hey, it looks like this really was final!
  • Loading branch information
LionsPhil committed Feb 13, 2021
1 parent 6acc047 commit 3848d47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Classes/MutLPVehicleMods.uc
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ function SetVehicleWeapon(out MutLPVehicleModsVehicle vehicle, bool driver, int
wclass = class'LionsPhilMut.ONSMASCannonAlwaysDeployed';
}

// TODO Cicada needs a similar exception to use ONSLinkableWeapon

// Set weaponclsdrv/pas appropriately
if(driver) {
vehicle.weaponclsdrv[idx] = wclass;
Expand All @@ -138,7 +140,6 @@ function SetVehicleWeapon(out MutLPVehicleModsVehicle vehicle, bool driver, int
// If this weapon is of charging type, disable impulse
if(weapon.charging) {
vehicle.pcimpulse = 0.0;
log(">>>>> This vehicle " $ vehicle.dname $ " has a charging weapon, so its impulse has been zero'd.");
}

// Debugging trace
Expand Down Expand Up @@ -216,7 +217,6 @@ function BeginPlay() { // Care not for Zones or Volumes, so don't need to wait u

// End stonking great lump. Have a nice day!

log(">>> " $ vehicle.dname $ " has impulse of " $ vehicle.pcimpulse);
vehicles[vindex] = vehicle; // Yeah, you WISH it were a reference!
}
}
Expand Down
9 changes: 6 additions & 3 deletions Classes/MutLPVehicleMods.uc.src
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ function SetVehicleWeapon(out MutLPVehicleModsVehicle vehicle, bool driver, int

// Apply special case for Leviathan main cannon
if((wclass == class'OnslaughtFull.ONSMASCannon') && (vehicle.cfgname != "leviathan")) {
wclass = class'MutLPVehicleMods.ONSMASCannonAlwaysDeployed';
wclass = class'LionsPhilMut.ONSMASCannonAlwaysDeployed';
}

// TODO Cicada needs a similar exception to use ONSLinkableWeapon

// Set weaponclsdrv/pas appropriately
if(driver) {
vehicle.weaponclsdrv[idx] = wclass;
Expand All @@ -110,8 +112,9 @@ function SetVehicleWeapon(out MutLPVehicleModsVehicle vehicle, bool driver, int
}

// If this weapon is of charging type, disable impulse
if(weapon.charging)
{ vehicle.pcimpulse = 0.0; }
if(weapon.charging) {
vehicle.pcimpulse = 0.0;
}

// Debugging trace
// if(driver){dbg_dp="driver";}else{dbg_dp="passenger";}
Expand Down

0 comments on commit 3848d47

Please sign in to comment.