From 974243aa916dc59758cf104f3393cc374f125b12 Mon Sep 17 00:00:00 2001 From: hgn Date: Thu, 13 Jul 2023 00:31:13 +0100 Subject: [PATCH] add world entities --- web/frag/workshop_content.html | 2 +- web/frag/workshop_entities.html | 316 ++++++++++++++++++++++++++++++++ web/index.php | 4 + web/serv.sh | 2 +- 4 files changed, 322 insertions(+), 2 deletions(-) create mode 100644 web/frag/workshop_entities.html diff --git a/web/frag/workshop_content.html b/web/frag/workshop_content.html index 363ec3d..f536879 100644 --- a/web/frag/workshop_content.html +++ b/web/frag/workshop_content.html @@ -10,6 +10,6 @@

Info Pages


Skaterift Addon
- Blender Entities
+ Blender Entities

diff --git a/web/frag/workshop_entities.html b/web/frag/workshop_entities.html new file mode 100644 index 0000000..66751bc --- /dev/null +++ b/web/frag/workshop_entities.html @@ -0,0 +1,316 @@ +
+

World Entities

+ +

Gate

#1: ent_gate [MESH]
+ + + + + + + + + + + + + + + + +
FieldTypeRange
SubtypeenumDefault - World portal
+ Non-Local - Connect between different worlds
Destinationentity_target or stringtarget portal or + two portals (in different worlds) with the same string
+ +

Spawn Point

#2: ent_spawn [MESH, EMPTY]
+ + + + + + + + + + + +
FieldTypeRange
Aliasstringstart for spawn priority, empty, or any string to be used + with the command:
respawn <string>
+ +

Routing Path

#3: ent_route_node [CURVE]
+
+NOTE:You should use an order 3 path type. Any amount of subcurves are
+allowed. The endpoints of the curves are the connecting points between other
+pathing elements.
+ + + + + + + + + + + +
FieldTypeRange
Aliasstringstart for spawn priority, empty, or any string to be used + with the command:
respawn <string>
+ +

Skate Course

#4: ent_route [EMPTY]
+ + + + + + + + + + + + + + + + +
FieldTypeRange
Colourrgba32Fdetermines the routing line colour
Checkpointsarray[ MESH:ent_gate ]List of entry gates that form the track
Must all be in one +Blender collection.
+ +

Water Surface

#5: ent_water [EMPTY, MESH]
+
One per level. Used to determine the reflection plane.
+ +

Volume/Trigger

#6: ent_volume [EMPTY]
+ + + + + + + + + + + + + + + + +
FieldTypeRange
SubtypeEnumTrigger - Player Trigger
+ Particles (0.1s) - Spawn particle randomly every 0.1s
TargetMESH,EMPTY:anyEntity to call the trigger function for.
+ +

Audio

#7: ent_audio [EMPTY,MESH]
+ + + + + + + + + + + + + + + + +
FieldTypeRange
FormatEnumUncompressed Mono - Store compressed on disk, uncompressed in memory +
+ Compressed Vorbis - Always compressed, stereo signal
+ [vg] Bird Synthesis - Government spy drones (WIP) +
Volumef32volume to play audio
+
Channels

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeRange
Max Channelsu32Specifies the limit of instances of this audio player
BehaviourEnumUnlimited - Create as many instances as possible up until the engine + limit (64)
+ Discard if group full - Doesnt play when triggered, if at limit +
+ Crossfade if group full - Pick an active sound from same group to + fade with. Temporarily creates an extra channel while fading +
Group IDu160-25565 (Don't use values: 1 or 26)
Transition Timef32If a crossfade is used, this is the duration
+
Flags

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeRange
3D AudioboolPlay with spacialization, or 2D? Falloff distance is the scale of the + object in blender. Yellow rings signify 100% falloff.
No DopplerboolDisable doppler effect for this instance
LoopboolGo back to the start of the sound file instead of being killed
Play at startboolBegin playing automatically at world load
Probability CurveenumConstant - No effect
+ Wildlife Day - Most chance to run during the day, and sunset/rise
+ Wildlife Night - Most chance to run during the night +
+
Filepaths

+ + + + + + + + + + + + + +
FormatsAccepted
Uncompressed, Compressed Stereopath: sound/<filename>.ogg
+ 44100hz, ogg Vorbis only.
[vg] Bird SynthBinary string. Undocumented.
+ +

Marker

#8: ent_marker [EMPTY,MESH]
+ + + + + + + + + + + +
FieldTypeRange
Aliasstringany value
+ +

Traffic Model

#11: ent_traffic [MESH]
+
Follows the nearest ent_route_node cyclically
+ + + + + + + + + + + +
FieldTypeRange
speedf32>0.0f
+ +

Skateshop

#12: ent_skateshop [EMPTY]
+
Undocumented.
+ +

Camera

#13: ent_camera <INTRINSIC[ CAMERA ]>
+
Blender camera
+ +

Workshop Preview

#14: ent_swspreview [EMPTY]
+
One per map
+ + + + + + + + + + + + + + + + + + + + + +
FieldTypeRange
Board DisplayEMPTY:ent_markerWhere to render board
Board Display (other side)EMPTY:ent_markerWhere to render board, but upside-down
ViewpointCAMERA:ent_cameraCamera which can see both preview locations
+ +

World Info

#16: ent_worldinfo [EMPTY]
+
One per map
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
FieldTypeRange
Name (unused)string
Description (unused)string
Author (unused)string
Timezone (+hrs)f32relative to 0:00 UTC, time zone where this map is.
+ +

CCmd

#17: ent_ccmd [EMPTY]
+ + + + + + + + + + + +
FieldTypeRange
Command Linestringstring to give to the command processor to run when triggered
+ +
diff --git a/web/index.php b/web/index.php index 24f3794..907e022 100755 --- a/web/index.php +++ b/web/index.php @@ -72,6 +72,10 @@ --k_ui_gray1: #a89984; } + table, th, td { + border:1px solid var(--k_ui_bg3); + } + body { font-family: 'Roboto Condensed', sans-serif; color: var(--k_ui_fg4); diff --git a/web/serv.sh b/web/serv.sh index a466ce8..4e1c5be 100755 --- a/web/serv.sh +++ b/web/serv.sh @@ -1 +1 @@ -php -S 127.0.0.1:8000 -t . +php -S 127.0.0.1:27410 -t . -- 2.25.1