Skip to content

Commit

Permalink
FGD: Fix misc. errors, add Angles superclass to various entities
Browse files Browse the repository at this point in the history
  • Loading branch information
MotoLegacy committed Nov 26, 2024
1 parent 864ae13 commit a9dc7f7
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 71 deletions.
68 changes: 32 additions & 36 deletions source/maps/fgd/hl-nzp.fgd
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
killtarget(target_destination) : "Killtarget"
]

@BaseClass = Angles
[
angles(angle) : "Pitch Yaw Roll (Y Z X)" : "0 0 0" : "This entity's orientation in the world. Pitch is rotation around the Y axis, " +
"yaw is the rotation around the Z axis, roll is the rotation around the X axis."
]

// info_texlights
// It defines texture lights.
// Add any texture name as a key and their brightness as the value.
Expand Down Expand Up @@ -321,7 +327,7 @@
mangle(string) : "Mangle (Pitch Yaw Roll)"
]

@PointClass size(-16 -16 -32, 16 16 56) base(Item) color(107 29 20) studio("models/props/teleporter.mdl") = func_teleporter_entrance : "Teleporter Entrance"
@PointClass size(-16 -16 -32, 16 16 56) base(Item, Angles) color(107 29 20) studio("models/props/teleporter.mdl") = func_teleporter_entrance : "Teleporter Entrance"
[
target(target_destination) : "Destination"
cost(integer) : "Cost"
Expand All @@ -335,17 +341,17 @@
tpTimer(integer) : "[Timed] Time before return"
]

@PointClass size(-16 -16 -32, 16 16 56) base(Item) color(107 29 20) studio("models/props/mainframe_pad.mdl") = func_teleporter_destination : "Teleporter Destination"
@PointClass size(-16 -16 -32, 16 16 56) base(Item, Angles) color(107 29 20) studio("models/props/mainframe_pad.mdl") = func_teleporter_destination : "Teleporter Destination"
[
targetname(target_source) : "Name"
]

@PointClass size(-16 -16 -32, 16 16 56) base(Item) color(171 73 252) studio("models/props/mainframe_pad.mdl") = func_teleporter_timed : "Teleporter Timed Destination"
@PointClass size(-16 -16 -32, 16 16 56) base(Item, Angles) color(171 73 252) studio("models/props/mainframe_pad.mdl") = func_teleporter_timed : "Teleporter Timed Destination"
[
targetname(target_source) : "Name"
]

@PointClass size(-16 -16 -32, 16 16 56) base(Item) color(62 0 132) studio("models/props/mainframe_pad.mdl") = func_teleporter_pad : "Teleporter Pad"
@PointClass size(-16 -16 -32, 16 16 56) base(Item, Angles) color(62 0 132) studio("models/props/mainframe_pad.mdl") = func_teleporter_pad : "Teleporter Pad"
[
targetname(target_source) : "Name"
]
Expand All @@ -365,7 +371,7 @@
message(string) : "Message"
]

@PointClass size(-9 -9 -4, 9 9 4) base(Item) color(35 67 36) studio() = item_radio : "Radio"
@PointClass size(-9 -9 -4, 9 9 4) base(Item, Angles) color(35 67 36) studio() = item_radio : "Radio"
[
model(studio) : "Model" : "models/props/radio.mdl"
mins(vector) : "Bounding Box Mins" : "-8 -8 -4"
Expand All @@ -381,7 +387,7 @@
@PointClass size(-8 -8 -8, 8 8 8) base(Item) color(141 85 29) studio("models/props/teddy.mdl") = teddy_spawn : "Teddy spawn location" []


@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) studio() = zapper_switch : "Electro-Shock Activation Switch"
@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) base(Angles) studio() = zapper_switch : "Electro-Shock Activation Switch"
[
model(studio) : "Model" : "models/machines/hl_scale/zapper/z_switch.mdl"
skin(integer) : "Skin" : 0
Expand All @@ -399,15 +405,15 @@
1 : "Requires Power" : 0
]
]
@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) studio() = zapper_node : "Electro-Shock Node"
@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) base(Angles) studio() = zapper_node : "Electro-Shock Node"
[
model(studio) : "Model" : "models/machines/hl_scale/zapper/z_zap.mdl"
skin(integer) : "Skin" : 0
zappername(string) : "Zapper Name"
targetname(target_source) : "Name"
target(target_destination) : "Target"
]
@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) studio() = zapper_light : "Electro-Shock Node"
@PointClass size(-12 -12 -8, 12 12 8) color(35 67 36) base(Angles) studio() = zapper_light : "Electro-Shock Node"
[
model(studio) : "Model" : "models/machines/hl_scale/zapper/z_light.mdl"
skin(integer) : "Skin" : 0
Expand Down Expand Up @@ -438,7 +444,7 @@
//

// Jugger-Nog
@PointClass size(-16 -16 -32, 16 16 56) base(Item, Target) color(107 29 20) studio() = perk_juggernog : "Jugger-Nog"
@PointClass size(-16 -16 -32, 16 16 56) base(Item, Target, Angles) color(107 29 20) studio() = perk_juggernog : "Jugger-Nog"
[
model(studio) : "Model" : "models/machines/hl_scale/juggernog.mdl"
skin(integer) : "Skin" : 0
Expand Down Expand Up @@ -474,7 +480,7 @@
]

// PhD Flopper
@PointClass size(-16 -16 -32, 16 16 56) base(Item, Target) color(131 63 148) studio() = perk_flopper : "PhD Flopper"
@PointClass size(-16 -16 -32, 16 16 56) base(Item, Target, Angles) color(131 63 148) studio() = perk_flopper : "PhD Flopper"
[
model(studio) : "Model" : "models/machines/hl_scale/flopper.mdl"
skin(integer) : "Skin" : 0
Expand Down Expand Up @@ -510,7 +516,7 @@
]

// Double Tap Root Beer
@PointClass size(-16 -16 -32, 16 16 40) base(Item, Target) color(214 203 1) studio() = perk_double : "Double Tap Root Beer"
@PointClass size(-16 -16 -32, 16 16 40) base(Item, Target, Angles) color(214 203 1) studio() = perk_double : "Double Tap Root Beer"
[
model(studio) : "Model" : "models/machines/hl_scale/double_tap_2.mdl"
skin(integer) : "Skin" : 0
Expand Down Expand Up @@ -547,7 +553,7 @@
]

// Speed Cola
@PointClass size(-24 -24 -32, 24 24 56) base(Item, Target) color(0 117 58) studio() = perk_speed : "Speed Cola"
@PointClass size(-24 -24 -32, 24 24 56) base(Item, Target, Angles) color(0 117 58) studio() = perk_speed : "Speed Cola"
[
model(studio) : "Model" : "models/machines/hl_scale/speed_cola.mdl"
skin(integer) : "Skin" : 0
Expand Down Expand Up @@ -583,7 +589,7 @@
]

// Quick Revive
@PointClass size(-16 -16 -32, 16 16 32) base(Item, Target) color(129 172 254) studio() = perk_revive : "Quick Revive"
@PointClass size(-16 -16 -32, 16 16 32) base(Item, Target, Angles) color(129 172 254) studio() = perk_revive : "Quick Revive"
[
model(studio) : "Model" : "models/machines/hl_scale/quick_revive.mdl"
skin(integer) : "Skin" : 0
Expand Down Expand Up @@ -619,7 +625,7 @@
]

// Stamin-Up
@PointClass size(-24 -24 -32, 24 24 48) base(Item, Target) color(254 198 65) studio() = perk_staminup : "Stamin-Up"
@PointClass size(-24 -24 -32, 24 24 48) base(Item, Target, Angles) color(254 198 65) studio() = perk_staminup : "Stamin-Up"
[
model(studio) : "Model" : "models/machines/hl_scale/staminup.mdl"
skin(integer) : "Skin" : 0
Expand Down Expand Up @@ -655,7 +661,7 @@
]

// Deadshot Daiquiri
@PointClass size(-24 -24 -32, 24 24 56) base(Item, Target) color(0 35 10) studio() = perk_deadshot : "Deadshot Daiquiri"
@PointClass size(-24 -24 -32, 24 24 56) base(Item, Target, Angles) color(0 35 10) studio() = perk_deadshot : "Deadshot Daiquiri"
[
model(studio) : "Model" : "models/machines/hl_scale/deadshot.mdl"
skin(integer) : "Skin" : 0
Expand Down Expand Up @@ -691,7 +697,7 @@
]

// Mule Kick
@PointClass size(-24 -24 -32, 24 24 56) base(Item, Target) color(0 117 58) studio() = perk_mule : "Mule Kick"
@PointClass size(-24 -24 -32, 24 24 56) base(Item, Target, Angles) color(0 117 58) studio() = perk_mule : "Mule Kick"
[
model(studio) : "Model" : "models/machines/hl_scale/mulekick.mdl"
skin(integer) : "Skin" : 0
Expand Down Expand Up @@ -726,7 +732,7 @@
]
]

@PointClass size(-32 -32 -32, 32 32 56) base(Item) color(125 196 187) studio("models/machines/hl_scale/pap/p_machine.mdl") =
@PointClass size(-32 -32 -32, 32 32 56) base(Item, Angles) color(125 196 187) studio("models/machines/hl_scale/pap/p_machine.mdl") =
perk_pap : "Pack-A-Punch"
[
model(studio) : "Model" : "models/machines/hl_scale/pap/p_machine.mdl"
Expand Down Expand Up @@ -767,7 +773,7 @@
// NZP Weapons
//

@PointClass size(-32 -8 -8, 32 8 8) base(Item) color(141 85 29) studio() =
@PointClass size(-32 -8 -8, 32 8 8) base(Item, Angles) color(141 85 29) studio() =
mystery_box : "Mystery Box"
[
model(studio) : "Model" : "models/machines/mystery.mdl"
Expand All @@ -781,7 +787,7 @@
2 : "No Light" : 0
]
]
@PointClass size(-32 -8 -8, 32 8 8) base(Item) color(151 104 34) studio("models/machines/mystery.mdl") =
@PointClass size(-32 -8 -8, 32 8 8) base(Item, Angles) color(151 104 34) studio("models/machines/mystery.mdl") =
mystery_box_tp_spot : "Mystery Box Possible Spawn Point" []

@PointClass size(-28 -28 -64, 28 28 40 ) base(Item) color(114 224 172) studio() = item_barricade : "Window Barricade"
Expand All @@ -799,14 +805,14 @@

]

@PointClass size(-16 -16 -16, 16 16 51 ) base(Item) color(147 132 108) studio() = power_switch : "Power Switch"
@PointClass size(-16 -16 -16, 16 16 51 ) base(Item, Angles) color(147 132 108) studio() = power_switch : "Power Switch"
[
model(studio) : "Model" : "models/machines/hl_scale/power_switch.mdl"
skin(integer) : "Skin" : 0
oldmodel(string) : "Activation Sound" : "sounds/machines/power.wav"
]

@PointClass color(114 224 172) studio() = place_model : "Place a Model"
@PointClass color(114 224 172) base(Angles) studio() = place_model : "Place a Model"
[
model(studio) : "Model" : "models/Props/"
skin(integer) : "Skin" : 0
Expand All @@ -829,7 +835,7 @@
]
]

@PointClass base(Targetname) color(114 224 172) studio("models/misc/chalk.mdl") = weapon_wall : "Wall weapon for buy_weapon"
@PointClass base(Targetname, Angles) color(114 224 172) studio("models/misc/chalk.mdl") = weapon_wall : "Wall weapon for buy_weapon"
[
sequence(choices) : "Weapon" : 0 =
[
Expand Down Expand Up @@ -866,7 +872,7 @@
]
model(studio) : "World Model" : "models/GModels/"
]
@PointClass base(Targetname) color(114 224 172) studio() = explosive_barrel : "Barrel that can explode when shot at"
@PointClass base(Targetname, Angles) color(114 224 172) studio() = explosive_barrel : "Barrel that can explode when shot at"
[
model(studio) : "Model" : "models/props/barrel_m.mdl"
health(integer) : "Health" : 300
Expand Down Expand Up @@ -1044,13 +1050,13 @@
]
]

@PointClass iconsprite("sprites/light_environment.spr") = light_environment : "Environment"
@PointClass iconsprite("models/sprites/lamp_glow.spr") = light_environment : "Environment"
[
pitch(integer) : "Pitch" : 0
_light(color255) : "Brightness" : "255 255 128 200"
]

@PointClass size(-8 -8 -8, 8 8 8) base(Light, Target, Targetname) iconsprite("sprites/lightbulb.spr") =
@PointClass size(-8 -8 -8, 8 8 8) base(Light, Target, Targetname) iconsprite("models/sprites/lamp_glow.spr") =
light : "Invisible lightsource"
[
spawnflags(Flags) = [ 1 : "Initially dark" : 0 ]
Expand Down Expand Up @@ -1278,16 +1284,6 @@
health(integer) : "Damage Threshold" : 60
]

@SolidClass base(Targetname, Target, func_rubble) = func_breakawaywall : "Break Away Wall"
[
spawnflags(flags) =
[
1 : "explode" : 0
2 : "Use Particles" : 0
]
cnt(integer) : "Ent id # for using Counter"
]

@SolidClass base(Targetname) = func_button : "Button"
[
speed(integer) : "Speed" : 40
Expand Down Expand Up @@ -1691,7 +1687,7 @@
model(string) : "Sprite Model" : "progs/s_blood1.spr"
]

@PointClass size(32 32 32) studio() color(255 128 0) = misc_model : "A point entity for displaying models. A frame range can be given to animate the model. 'frame' can also be used to offset the animation. NOTE: set angle value to 0 if using angles key to rotate mdls"
@PointClass size(32 32 32) studio() base(Angles) color(255 128 0) = misc_model : "A point entity for displaying models. A frame range can be given to animate the model. 'frame' can also be used to offset the animation. NOTE: set angle value to 0 if using angles key to rotate mdls"
[
skin(integer) : "Skin index (default 0)" : : "Skin index (default 0) Use this when your custom model has more than one skin to select"
model(studio) : "Model Selection (ex progs/model.mdl)"
Expand Down
Loading

0 comments on commit a9dc7f7

Please sign in to comment.