Skip to content

Commit

Permalink
feat: Add turretrange to the rocket turret (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
AWildErin committed Jun 2, 2023
1 parent ae99da6 commit 3660b7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fgd/point/npc/npc_rocket_turret.fgd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@PointClass base(BaseNPC, ResponseContext)
studioprop() line(0 0 255, targetname, TripwireAimTarget)
appliesto(P2CE)
sphere(_sphere_radius)
sphere(turretrange)
= npc_rocket_turret: "Portal 1 rocket sentry, aims a rocket at a target. " +
"In Portal 2, the rocket spawns with a speed of 0 and sometimes gets " +
"stuck inside the model, so this will need to be worked around."
Expand All @@ -17,7 +17,7 @@
TripwireAimTarget(target_destination) : "Tripwire Aim Target" : : "In tripwire mode, the entity to aim at."
model(studio) : "Model" : "models/props_bts/rocket_sentry.mdl" : "Model to use in-game"

_sphere_radius[!engine](integer) readonly : "<Maximum Range>" : 8192 : "How far the turret will be able to see targets. Always 8192, but this keyvalue is needed to display the preview."
turretrange(float) : "Maximum Range" : 8192 : "How far the turret will be able to see targets."

// Inputs
input Toggle(void) : "Toggles between activated and deactivated states."
Expand Down

0 comments on commit 3660b7b

Please sign in to comment.