Lock-on Rockets

Lock-on Rockets 0.3.19

Fixed helicopters not taking damage
  • Like
Reactions: MalS and Vustra.
Rocket damage handling for HeliCommander
  • Like
Reactions: MalS
The config has changed! See below for information regarding updating your config

Added all the various gun traps to the detection list

Config Changes (1 line)
Code:
{
  "DetonationTime": 30.0,
  "DisableRocketBeep": false,
  "DisableSmokeEffects": false,
  "HelicopterLockModifiers": {
    "DamageModifier": 5.0,
    "SpeedModifier": 2.5
  },
  "LockOnTypes": {
    "Animal": true,
    "Car": true,
    "GunTraps": true, // Add this line here
    "Helicopter": true,
    "Loot": true,
    "Plane": true,
    "Player": true,
    "Resource": true,
    "Structure": true,
    "Tank": true
  },
  "RocketDamage": 300.0,
  "RocketSpeed": 40.0,
  "TimeToLockOn": 3.0
}
  • Like
Reactions: MalS
The config has changed! See below for more information

Added car to the detection list

Config Changes (1 line)
C#:
{
  "DetonationTime": 30.0,
  "DisableRocketBeep": false,
  "DisableSmokeEffects": false,
  "HelicopterLockModifiers": {
    "DamageModifier": 5.0,
    "SpeedModifier": 2.5
  },
  "LockOnTypes": {
    "Animal": true,
    "Car": true, // Add this line here
    "Helicopter": true,
    "Loot": true,
    "Plane": true,
    "Player": true,
    "Resource": true,
    "Structure": true,
    "Tank": true
  },
  "RocketDamage": 300.0,
  "RocketSpeed": 40.0,
  "TimeToLockOn": 3.0
}
The config has changed! See below for information regarding updating your config

Added the APC to the targeting types

Config Changes (1 line)
C#:
{
  "DetonationTime": 30.0,
  "DisableRocketBeep": false,
  "DisableSmokeEffects": false,
  "HelicopterLockModifiers": {
    "DamageModifier": 5.0,
    "SpeedModifier": 2.5
  },
  "LockOnTypes": {
    "Animal": true,
    "Helicopter": true,
    "Loot": true,
    "Plane": true,
    "Player": true,
    "Resource": true,
    "Structure": true, // Add this comma
    "Tank": true // Add this line here
  },
  "RocketDamage": 300.0,
  "RocketSpeed": 40.0,
  "TimeToLockOn": 3.0
}
Changed the damage method again, seems Rusts damage system doesn't damage all entity types

No issues with locking on to disabled entities. Possibly due to static variables persisting after a plugin has been unloaded but could not confirm. Update the plugin and try it after a server restart
Fixed lock types
Adjusted lock-on raycasting to be a bit more accurate
Fixed ddraw boxes for non-admin players
ddraw boxes now represent the actual locked-on position of the target
Changed damage method
Fix for animal lock
The config has changed! Either delete your old config or see below for information regarding editing your existing config

Made changes to the aim/locking system as recommended by @Trilby Mctip
Added options to toggle lockable entity types
Now forces damage against helicopters
Added helicopter specific modifiers to make taking down a heli much easier

New Config:
C#:
{
  "DetonationTime": 30.0,
  "DisableRocketBeep": false,
  "DisableSmokeEffects": false,
  "HelicopterLockModifiers": { // Add from this line here
    "DamageModifier": 5.0,
    "SpeedModifier": 2.5
  },
  "LockOnTypes": {
    "Animal": true,
    "Helicopter": true,
    "Loot": true,
    "Plane": true,
    "Player": true,
    "Resource": true,
    "Structure": true
  }, // To this line her
  "RocketDamage": 300.0,
  "RocketSpeed": 40.0,
  "TimeToLockOn": 3.0
}
  • Like
Reactions: Trilby Mctip
Added localization
Slightly adjusted lock height
Stopped damage leeching through walls
Fixed being able to fire a locked rocket when not aiming