Add Source 2013 Multiplayer FGD changes

This commit is contained in:
ALLEN-PC\acj30 2025-03-02 11:47:27 -06:00
parent f7cbdda060
commit ec5f5f8d88
2 changed files with 127 additions and 3 deletions

123
base.fgd
View File

@ -13,6 +13,17 @@
// //
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
@BaseClass = Script
[
vscripts(scriptlist) : "Entity Scripts" : : "Name(s) of script files that are executed after all entities have spawned."
thinkfunction(string) : "Script think function" : : "Name of a function in this entity's script scope which will be called automatically."
input RunScriptFile(string) : "Execute a game script file from disk."
input RunScriptCode(script) : "Execute a string of script source code. Backtick ( ` ) characters will be converted to quotes in-game for strings."
input CallScriptFunction(string) : "Execute the given function name."
input TerminateScriptScope(void) : "Terminates the script scope of the entity."
]
@BaseClass = Angles @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, " + 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, " +
@ -42,6 +53,9 @@
input EnableShadow(void) : "Turn shadow on." input EnableShadow(void) : "Turn shadow on."
input AlternativeSorting(bool) : "Used to attempt to fix sorting problems when rendering. True activates, false deactivates" input AlternativeSorting(bool) : "Used to attempt to fix sorting problems when rendering. True activates, false deactivates"
input SetModelScale(string) : "Takes two values separated by a space. The first is the target model scale. The second value is the number of seconds the change in scale will be spread over." input SetModelScale(string) : "Takes two values separated by a space. The first is the target model scale. The second value is the number of seconds the change in scale will be spread over."
input SetModel(string) : "Changes the model to the specified path.\nForm of 'models/ammo/ammo_us.mdl'.\nIMPORTANT:\nAbsolutely NO quotes!\nMake sure you use this slash '/'.\nMerasmus says to heed this advice thou shalt corrupt the VMF."
input SetCycle(float) : "Skip to a specific point in the current animation"
input SetPlaybackRate(float) : "Change the animation speed multiplier"
// Outputs // Outputs
output OnIgnite(void) : "Fired when this object catches fire." output OnIgnite(void) : "Fired when this object catches fire."
@ -54,7 +68,7 @@
input GoDown(void) : "Tells the platform to go down." input GoDown(void) : "Tells the platform to go down."
] ]
@BaseClass = Targetname @BaseClass base(Script) = Targetname
[ [
targetname(target_source) : "Name" : : "The name that other entities refer to this entity by." targetname(target_source) : "Name" : : "The name that other entities refer to this entity by."
@ -810,6 +824,9 @@
output OnStartTouchAll(void) : "Fired when an entity starts touching this trigger, and no other entities are touching it. Only entities that passed this trigger's filters are considered." output OnStartTouchAll(void) : "Fired when an entity starts touching this trigger, and no other entities are touching it. Only entities that passed this trigger's filters are considered."
output OnEndTouch(void) : "Fired when an entity stops touching this trigger. Only entities that passed this trigger's filters will cause this output to fire." output OnEndTouch(void) : "Fired when an entity stops touching this trigger. Only entities that passed this trigger's filters will cause this output to fire."
output OnEndTouchAll(void) : "Fires when an entity stops touching this trigger, and no other entities are touching it. Only entities that passed this trigger's filters are considered." output OnEndTouchAll(void) : "Fires when an entity stops touching this trigger, and no other entities are touching it. Only entities that passed this trigger's filters are considered."
// Inputs
input DisableAndEndTouch(void) : "Disables this trigger and calls EndTouch on all currently-touching entities."
] ]
@BaseClass = worldbase @BaseClass = worldbase
@ -1841,6 +1858,8 @@
input SetEndDistLerpTo(float) : "Set the fog end distance." input SetEndDistLerpTo(float) : "Set the fog end distance."
input StartFogTransition(void) : "Start fog transition." input StartFogTransition(void) : "Start fog transition."
input SetRadial(bool) : "Set the frog to be radial or not."
// Starting fog parameters for the level. These are selectable per LOD. // Starting fog parameters for the level. These are selectable per LOD.
fogenable(choices) : "Fog Enable" : 0 = fogenable(choices) : "Fog Enable" : 0 =
[ [
@ -1864,6 +1883,12 @@
fogend(string) : "Fog End" : "2000.0" fogend(string) : "Fog End" : "2000.0"
fogmaxdensity(float) : "Fog Max Density [0..1]" : "1" fogmaxdensity(float) : "Fog Max Density [0..1]" : "1"
fogradial(choices) : "Use Radial Fog?" : 0 =
[
0 : "No"
1 : "Yes"
]
foglerptime(float) : "Interpolate time" : "0" foglerptime(float) : "Interpolate time" : "0"
farz(string) : "Far Z Clip Plane" : "-1" farz(string) : "Far Z Clip Plane" : "-1"
@ -2288,6 +2313,11 @@
fogdir(string) : "Primary Fog Dir" : "1 0 0" fogdir(string) : "Primary Fog Dir" : "1 0 0"
fogstart(string) : "Fog Start" : "500.0" : "Distance at which the skybox fog should start." fogstart(string) : "Fog Start" : "500.0" : "Distance at which the skybox fog should start."
fogend(string) : "Fog End" : "2000.0" : "Distance at which the skybox fog should be fully opaque." fogend(string) : "Fog End" : "2000.0" : "Distance at which the skybox fog should be fully opaque."
fogradial(choices) : "Use Radial Fog?" : 0 =
[
0 : "No"
1 : "Yes"
]
] ]
@BaseClass base(Targetname, ResponseContext) = BaseSpeaker @BaseClass base(Targetname, ResponseContext) = BaseSpeaker
@ -2443,6 +2473,12 @@
2 : "No Dynamic Light" : 1 2 : "No Dynamic Light" : 1
] ]
IgnoreSolid(choices) : "Ignore Solid" : 0 : "If set, this spotlight won't trace for solids." =
[
0 : "No"
1 : "Yes"
]
spotlightlength(integer) : "Spotlight Length" : 500 : "Length of the spotlight beam." spotlightlength(integer) : "Spotlight Length" : 500 : "Length of the spotlight beam."
spotlightwidth(integer) : "Spotlight Width" : 50 : "Width of the spotlight beam." spotlightwidth(integer) : "Spotlight Width" : 50 : "Width of the spotlight beam."
rendercolor(color255) : "Color (R G B)" : "255 255 255" rendercolor(color255) : "Color (R G B)" : "255 255 255"
@ -3796,6 +3832,60 @@
input SetSpeed(float) : "Set the speed at which the door rotates. 100 is default." input SetSpeed(float) : "Set the speed at which the door rotates. 100 is default."
] ]
//-------------------------------------------------------------------------
// VScript
//-------------------------------------------------------------------------
@PointClass base(Targetname) iconsprite("editor/logic_script.vmt") = logic_script :
"An entity that acts as a container for scripts"
[
Group00(target_destination) : "EntityGroup[0]" : : "Entity group 0"
Group01(target_destination) : "EntityGroup[1]" : : "Entity group 1"
Group02(target_destination) : "EntityGroup[2]" : : "Entity group 2"
Group03(target_destination) : "EntityGroup[3]" : : "Entity group 3"
Group04(target_destination) : "EntityGroup[4]" : : "Entity group 4"
Group05(target_destination) : "EntityGroup[5]" : : "Entity group 5"
Group06(target_destination) : "EntityGroup[6]" : : "Entity group 6"
Group07(target_destination) : "EntityGroup[7]" : : "Entity group 7"
Group08(target_destination) : "EntityGroup[8]" : : "Entity group 8"
Group09(target_destination) : "EntityGroup[9]" : : "Entity group 9"
Group10(target_destination) : "EntityGroup[10]" : : "Entity group 10"
Group11(target_destination) : "EntityGroup[11]" : : "Entity group 11"
Group12(target_destination) : "EntityGroup[12]" : : "Entity group 12"
Group13(target_destination) : "EntityGroup[13]" : : "Entity group 13"
Group14(target_destination) : "EntityGroup[14]" : : "Entity group 14"
Group15(target_destination) : "EntityGroup[15]" : : "Entity group 15"
]
//-------------------------------------------------------------------------
// Used to listen to events called from code
//-------------------------------------------------------------------------
@PointClass base(Targetname) iconsprite("editor/logic_eventlistener.vmt") = logic_eventlistener :
"An entity that can listen to events fired from code and fire " +
"and output when it happens."
[
EventName(string) : "Event Name" : "" : "The name of the event that you want to listen for."
IsEnabled(choices) : "Start Enabled" : 1 =
[
0 : "No"
1 : "Yes"
]
TeamNum(choices) : "Team Number" : -1 : "If set, will only fire its output if the event is generated from someone of the specified team." =
[
-1 : "Don't care"
1 : "Team 1"
2 : "Team 2 (ORANGE)"
3 : "Team 3 (BLUE)"
]
// Inputs
input Enable(void) : "Enable the logic_measure_movement."
input Disable(void) : "Disable the logic_measure_movement."
// Outputs
output OnEventFired(void) : "Fired when the event has been detected."
]
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
// //
@ -5317,6 +5407,13 @@
0 : "No" 0 : "No"
1 : "Yes" 1 : "Yes"
] ]
generatelightmaps(choices) : "Generate (and use) lightmaps for this static prop" : 0 =
[
0 : "No"
1 : "Yes"
]
lightmapresolutionx(integer) : "Lightmap Resolution X" : 32 : "The resolution of the generated lightmap in the X (or U) direction (only used if Generate Lightmaps is Yes) "
lightmapresolutiony(integer) : "Lightmap Resolution Y" : 32 : "The resolution of the generated lightmap in the Y (or V) direction (only used if Generate Lightmaps is Yes) "
] ]
@BaseClass = BaseFadeProp @BaseClass = BaseFadeProp
@ -5363,7 +5460,6 @@
// Inputs // Inputs
input SetAnimation(string) : "Force the prop to play an animation. The parameter should be the name of the animation." input SetAnimation(string) : "Force the prop to play an animation. The parameter should be the name of the animation."
input SetDefaultAnimation(string) : "Set the Default Animation to the one specified in the parameter." input SetDefaultAnimation(string) : "Set the Default Animation to the one specified in the parameter."
input SetPlaybackRate(float) : "Set the playback rate for the animation."
input SetBodyGroup(integer) : "Set the visible bodygroup, by index." input SetBodyGroup(integer) : "Set the visible bodygroup, by index."
input TurnOn(void) : "Make the prop visible." input TurnOn(void) : "Make the prop visible."
input TurnOff(void) : "Make the prop invisible." input TurnOff(void) : "Make the prop invisible."
@ -6219,6 +6315,13 @@
] ]
] ]
@SolidClass base(Trigger) = trigger_teleport_relative :
"A trigger volume that teleports entities that touch it. Entities are teleported by Offset from their current position. Useful to get " +
"objects out of situations where levels or entities suddenly appear interseting with them."
[
teleportoffset(vector) : "Offset (X Y Z)" : "0 0 0" : "The offset (in World-Space Coordinates X Y Z) to teleport the entity when the trigger is touched."
]
@SolidClass base(Targetname) = trigger_transition : @SolidClass base(Targetname) = trigger_transition :
"A volume that's used to control which entities go through the level transition. Create one or more trigger_transitions and "+ "A volume that's used to control which entities go through the level transition. Create one or more trigger_transitions and "+
"give them the same name as the changelevel landmark. Any entities within the trigger_transition(s) will go to the next map."+ "give them the same name as the changelevel landmark. Any entities within the trigger_transition(s) will go to the next map."+
@ -6544,3 +6647,19 @@
parm9(instance_parm) : "Parm" : : "This is a parameter. It goes in the form of $variable type." parm9(instance_parm) : "Parm" : : "This is a parameter. It goes in the form of $variable type."
parm10(instance_parm) : "Parm" : : "This is a parameter. It goes in the form of $variable type." parm10(instance_parm) : "Parm" : : "This is a parameter. It goes in the form of $variable type."
] ]
@SolidClass base(Trigger) = trigger_apply_impulse :
"A trigger that adds impulse to touching entities."
[
impulse_dir(angle) : "Impulse Direction (Pitch Yaw Roll)" : "0 0 0" : "Angles indicating the direction to push touching entities."
force(float) : "Impulse Force" : "300" : ""
input ApplyImpulse(void) : "Apply impulse to touching entities"
]
@PointClass base(Targetname) size(-8 -8 -8, 8 8 8) = skybox_swapper :
"An entity that precaches skybox materials and swaps them on trigger."
[
SkyboxName(string) : "Skybox Material Name" : "sky_halloween_night_01"
input Trigger(void) : "Swap to this skybox."
]

View File

@ -1,4 +1,4 @@
//====== Copyright © 1996-2005, Valve Corporation, All rights reserved. ======= //====== Copyright <EFBFBD> 1996-2005, Valve Corporation, All rights reserved. =======
// //
// Purpose: Half-Life 2 game definition file (.fgd) // Purpose: Half-Life 2 game definition file (.fgd)
// //
@ -4194,6 +4194,11 @@
fogStart(float) : "Fog Start" : 2048 : "The near fog plane." fogStart(float) : "Fog Start" : 2048 : "The near fog plane."
fogEnd(float) : "Fog End" : 4096 : "The far fog/clipping plane." fogEnd(float) : "Fog End" : 4096 : "The far fog/clipping plane."
fogMaxDensity(float) : "Fog Max Density [0..1]" : 1 : "The maximum fog density. 0=no fog, 1=full fog." fogMaxDensity(float) : "Fog Max Density [0..1]" : 1 : "The maximum fog density. 0=no fog, 1=full fog."
fogRadial(choices) : "Use Radial Fog?" : 0 =
[
0 : "No"
1 : "Yes"
]
// Inputs // Inputs
input ChangeFOV(string) : "Changes camera's FOV over time" input ChangeFOV(string) : "Changes camera's FOV over time"