Skip to content

Commit

Permalink
Sync Mapbase FGD changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSpen210 committed Nov 19, 2024
1 parent 0f8d618 commit c0eb990
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 13 deletions.
1 change: 1 addition & 0 deletions fgd/bases/HintNode.fgd
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
2002: "Surrender: Idle Point (E:Z2)" [EZ2]

10000: "Mapbase - Custom Cover (Use hint activity)" [MBase]
10001: "Mapbase - Grenade Throw (Use hint radius)" [MBase]
]

hintactivity(string) : "Hint Activity" : : "Activity associated with this hint node. " +
Expand Down
3 changes: 2 additions & 1 deletion fgd/point/game/game_text.fgd
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@
]
customfont[KZ](string) : "Custom Font Name" : "" : "The name of the Game Font to use for this text. Game font lists are found in the KreedzClimbing/kz/resource/ClientScheme.res and SourceScheme.res (examples: ClientTitleFont, DefaultSmall). Custom .ttf files are currently not supported. Leave blank to use the default font."

font[MBase](string) : "Custom Font Name" : "" : "The name of the Game Font to use for this text. Game font lists are found in the resource/ClientScheme.res and SourceScheme.res (examples: ClientTitleFont, DefaultSmall). Leave blank to use the default font."
font[MBase](string) : "Custom Font Name" : "" : "Makes the message use a specific client scheme font. The font must be additive for the fade effects to function. Also supports custom fonts defined through clientside VScript functions. Game font lists are found in the resource/ClientScheme.res and SourceScheme.res (examples: ClientTitleFont, DefaultSmall). Leave blank to use the default font."
autobreak[MBase](boolean) : "Automatically Break Lines" : 0 : "Allows text to automatically shift to the next line whenever it can't fit on a player's screen. " +
"This accounts for a player's aspect ratio and adds hyphens when necessary."
// Inputs
input Display(void) : "Display the message text."
input DisplayValue[KZ](void) : "This input is used in conjunction with a math_counter, it displays the text and the value supplied after it. Use a math_counter's GetValue input with this to display the value of the math_counter."
input DisplayTeam[KZ](void) : "Display the message text to the activator player and their team."
input SetText[since_ASW, MBase](string) : "Set the text to display."
input SetFont[MBase](string) : "Sets the message font."
input SetPosX[since_P2](float) : "Set the X position of the text. (0 - 1.0 = left to right) (-1 centers)"
input SetPosY[since_P2](float) : "Set the Y position of the text. (0 - 1.0 = top to bottom) (-1 centers)"
input SetTextColor[since_P2](color255) : "Set color of the front text."
Expand Down
9 changes: 9 additions & 0 deletions fgd/point/info/info_node_hint.fgd
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,14 @@
output OnNPCStartedUsing(string) : "Fired when an NPC has reached this node and started using it. Passes along the NPC."
output OnNPCStoppedUsing(string) : "Fired when an NPC has stopped using this node. Passes along the NPC."

output OnScriptEvent01[MBase](void) : "Fires when a 'trigger' anim event occurs while playing the script. Use { event 1003 framenum 1 } in the QC."
output OnScriptEvent02[MBase](void) : "Fires when a 'trigger' anim event occurs while playing the script. Use { event 1003 framenum 2 } in the QC."
output OnScriptEvent03[MBase](void) : "Fires when a 'trigger' anim event occurs while playing the script. Use { event 1003 framenum 3 } in the QC."
output OnScriptEvent04[MBase](void) : "Fires when a 'trigger' anim event occurs while playing the script. Use { event 1003 framenum 4 } in the QC."
output OnScriptEvent05[MBase](void) : "Fires when a 'trigger' anim event occurs while playing the script. Use { event 1003 framenum 5 } in the QC."
output OnScriptEvent06[MBase](void) : "Fires when a 'trigger' anim event occurs while playing the script. Use { event 1003 framenum 6 } in the QC."
output OnScriptEvent07[MBase](void) : "Fires when a 'trigger' anim event occurs while playing the script. Use { event 1003 framenum 7 } in the QC."
output OnScriptEvent08[MBase](void) : "Fires when a 'trigger' anim event occurs while playing the script. Use { event 1003 framenum 8 } in the QC."

@resources []
]
13 changes: 12 additions & 1 deletion fgd/point/point/point_bugbait.fgd
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@PointClass base(BaseEntityPoint)
@BaseClass appliesto(MBase) wirebox(bmins, bmaxs) = _point_bugbait_mbase []

@PointClass base(BaseEntityPoint, _point_bugbait_mbase)
appliesto(EP1, EP2, HL2, P1)
iconsprite(editor/vizzys/point_bugbait)
sphere()
Expand All @@ -12,13 +14,22 @@
2: "Don't activate on thrown bugbait splashes" : 0
4: "Don't activate on squeezed bugbait" : 0
]
useradius[MBase](boolean) : "Use Radius Keyvalue" : 1 : "If disabled, use mins and maxs."

radius(integer) : "Sensor Radius" : 512

bmins[MBase](vector) : "Mins" : "-0 -0 -0"
bmaxs[MBase](vector) : "Maxs" : "0 0 0"

// Inputs
input Enable(void) : "Enable the sensor."
input Disable(void) : "Disable the sensor."
input Toggle(void) : "Toggle the sensor."
input EnableRadius[MBase](void) : "Use the Radius keyvalue of the sensor."
input DisableRadius[MBase](void) : "Use the mins/maxs keyvalues of the sensor."
input SetRadius[MBase](integer) : "Sets the radius of the sensor."
input SetMins[MBase](vector) : "Sets the mins of the sensor."
input SetMaxs[MBase](vector) : "Sets the maxs of the sensor."

// Outputs
output OnBaited(void) : "Fires when bugbait lands within a radius of the sensor"
Expand Down
20 changes: 10 additions & 10 deletions fgd/point/vgui/vgui_text_display.fgd
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@
alignment(choices) : "Text Alignment" : 7 : "The text's alignment in relation to the panel size. " +
"With 'South', the text will be centered between the origin and the sphere's left bound relative to the angles the text is facing." =
[
0 : "[0] Northwest"
1 : "[1] North"
2 : "[2] Northeast"
3 : "[3] West"
4 : "[4] Center"
5 : "[5] East"
6 : "[6] Southwest"
7 : "[7] South"
8 : "[8] Southeast"
0 : "Northwest"
1 : "North"
2 : "Northeast"
3 : "West"
4 : "Center"
5 : "East"
6 : "Southwest"
7 : "South"
8 : "Southeast"
]
font(string) : "Font" : : "The font to use from resource/ClientScheme.res. A blank value is equivalent to the default font. Not all fonts may function. Commonly defined fonts include 'DefaultSmall' and 'Trebuchet18'/'Trebuchet24'."
font(string) : "Font" : : "Makes the text use a specific client scheme font. The font must not be additive or proportional. Commonly defined fonts include 'DefaultSmall' and 'Trebuchet18'/'Trebuchet24'. Also supports custom fonts defined through clientside VScript functions."
resolution(integer) : "Panel Resolution" : 200 : "The number of pixels available to the text. The higher the resolution is, the smaller the text will be. " +
"(NOTE: Changing the resolution with inputs later will scale the screen itself.)"
textsize(float) : "Panel Size" : 100 : "The size of the text panel in the world. This is previewed with a sphere, but it actually extends 'north-west' relative to the direction it's facing. " +
Expand Down
2 changes: 1 addition & 1 deletion mapbase-fgds
Submodule mapbase-fgds updated 2 files
+14 −1 base.fgd
+16 −2 halflife2.fgd

0 comments on commit c0eb990

Please sign in to comment.