Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entities: add pos_navcon entity #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions build/darkradiant/pkg/def/entities.def
Original file line number Diff line number Diff line change
Expand Up @@ -1242,6 +1242,62 @@ entityDef info_player_start
"targetname" ""
}

entityDef pos_navcon_next
{
// Class
"spawnclass" "iTarget"

// Description
"editor_usage" "Navmesh connection point (start point).\nLink it from a pos_navcon_start and the navmesh generator will generate a navmesh connection."

// Editor color
"editor_color" "ffcc44"

// Editor sizes
"editor_mins" "-8 -8 -8"
"editor_maxs" "8 8 8"

// Property description
"editor_var targetname" "[required] Name to use as target in a pos_navcon_start entity (or another pos_navcon_next in a chain). (string (targetname))"
"editor_var origin" "Position. (vec3_float)"
"editor_var target" "Set the name of another pos_navcon_next entity to connect them together in a chain. (string (target))"

// Property default value
"targetname" ""
"origin" ""
"target" ""
}

entityDef pos_navcon_start
{
// Class
"spawnclass" "iTarget"

// Description
"editor_usage" "Navmesh connection point (next point).\nLink it to a pos_navcon_next and the navmesh generator will generate a navmesh connection."

// Editor color
"editor_color" "ffcc44"

// Editor sizes
"editor_mins" "-8 -8 -8"
"editor_maxs" "8 8 8"

// Property description
"editor_var target" "[required] Set the name of a pos_navcon_next entity to connect them together. (string (target))"
"editor_var origin" "Position. (vec3_float)"
"editor_var playerclasses" "Space-separated list of player classes that can go this route."
"editor_float size" "Radius. (float, def: 50)"
"editor_var spawnflags" "Spawn flags. (bitfield as an integer: BIDIR: 1)"

// Property default value
"target" ""
"origin" ""
"playerclasses" ""
"size" "50"
"spawnflags" "0"
}

entityDef pos_target
{
// Class
Expand Down
2 changes: 1 addition & 1 deletion build/gtkradiant/install/pkg/scripts/default_project.proj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<project>
<key name="version" value="2" />
<key name="template_version" value="8924" />
<key name="template_version" value="8977" />
<key name="basepath" value="$TEMPLATEenginepath$TEMPLATEbasedir/" />
<key name="rshcmd" value="" />
<key name="entitypath" value="$TEMPLATEtoolspath$TEMPLATEbasedir/scripts/entities.def" />
Expand Down
23 changes: 23 additions & 0 deletions build/gtkradiant/install/pkg/scripts/entities.def
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,29 @@ targetname: Can possibly be fired. (string (targetname))
Use pos_player_intermission instead.
*/

/*QUAKED pos_navcon_next (1 0.8 0.267) (-8 -8 -8) (8 8 8)
------ PROPERTIES ------
targetname: [required] Name to use as target in a pos_navcon_start entity (or another pos_navcon_next in a chain). (string (targetname))
origin: Position. (vec3_float)
target: Set the name of another pos_navcon_next entity to connect them together in a chain. (string (target))
------ DESCRIPTION ------
Navmesh connection point (start point).
Link it from a pos_navcon_start and the navmesh generator will generate a navmesh connection.
*/

/*QUAKED pos_navcon_start (1 0.8 0.267) (-8 -8 -8) (8 8 8) BIDIR
------ FLAGS ------
BIDIR: Bidirectional.
------ PROPERTIES ------
target: [required] Set the name of a pos_navcon_next entity to connect them together. (string (target))
origin: Position. (vec3_float)
playerclasses: Space-separated list of player classes that can go this route.
size: Radius. (float, def: 50)
------ DESCRIPTION ------
Navmesh connection point (next point).
Link it to a pos_navcon_next and the navmesh generator will generate a navmesh connection.
*/

/*QUAKED pos_target (0 0.498 0) (-8 -8 -8) (8 8 8)
------ PROPERTIES ------
targetname: [required] Must be someone's target for aiming. (string (targetname))
Expand Down
19 changes: 19 additions & 0 deletions build/jackhammer/install/unvanquished.fgd
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,25 @@
targetname(target_source) : Targetname : : "Can possibly be fired."
]

@PointClass size(-8 -8 -8, 8 8 8) color(255 204 68) = pos_navcon_next : "Navmesh connection point (start point).\n\nLink it from a pos_navcon_start and the navmesh generator will generate a navmesh connection."
[
targetname(target_source) : Targetname : : "[required] Name to use as target in a pos_navcon_start entity (or another pos_navcon_next in a chain)."
origin(string) : Origin : : "Position."
target(target_destination) : Target : : "Set the name of another pos_navcon_next entity to connect them together in a chain."
]

@PointClass size(-8 -8 -8, 8 8 8) color(255 204 68) = pos_navcon_start : "Navmesh connection point (next point).\n\nLink it to a pos_navcon_next and the navmesh generator will generate a navmesh connection."
[
target(target_destination) : Target : : "[required] Set the name of a pos_navcon_next entity to connect them together."
origin(string) : Origin : : "Position."
playerclasses(string) : Playerclasses : : "Space-separated list of player classes that can go this route."
size(string) : Size : 50 : "Radius."
spawnflags(flags) =
[
1 : "Bidir" : : "Bidirectional."
]
]

@PointClass flags(Angle) size(-8 -8 -8, 8 8 8) color(0 127 0) = pos_target : "Aiming target for entities like light, gfx_portal_camera and env_afx_push.\n\nUsed as a positional target for entities that can use directional pointing."
[
targetname(target_source) : Targetname : : "[required] Must be someone's target for aiming."
Expand Down
23 changes: 23 additions & 0 deletions build/netradiant/unvanquished.game/pkg/entities.ent
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,29 @@ Use pos_player_intermission instead.
<targetname key="targetname" name="targetname">Can possibly be fired. (string (targetname))</targetname>
</point>

<point name="pos_navcon_next" color="1 0.8 0.267" box="-8 -8 -8 8 8 8">
------ DESCRIPTION ------
Navmesh connection point (start point).
Link it from a pos_navcon_start and the navmesh generator will generate a navmesh connection.
------ PROPERTIES ------
<targetname key="targetname" name="targetname">[required] Name to use as target in a pos_navcon_start entity (or another pos_navcon_next in a chain). (string (targetname))</targetname>
<real3 key="origin" name="origin">Position. (vec3_float)</real3>
<target key="target" name="target">Set the name of another pos_navcon_next entity to connect them together in a chain. (string (target))</target>
</point>

<point name="pos_navcon_start" color="1 0.8 0.267" box="-8 -8 -8 8 8 8">
------ DESCRIPTION ------
Navmesh connection point (next point).
Link it to a pos_navcon_next and the navmesh generator will generate a navmesh connection.
------ SPAWNFLAGS ------
<flag key="BIDIR" name="BIDIR" bit="0">Bidirectional.</flag>
------ PROPERTIES ------
<target key="target" name="target">[required] Set the name of a pos_navcon_next entity to connect them together. (string (target))</target>
<real3 key="origin" name="origin">Position. (vec3_float)</real3>
<string key="playerclasses" name="playerclasses">Space-separated list of player classes that can go this route.</string>
<real key="size" name="size" value="50">Radius. (float, def: 50)</real>
</point>

<point name="pos_target" color="0 0.498 0" box="-8 -8 -8 8 8 8">
------ DESCRIPTION ------
Aiming target for entities like light, gfx_portal_camera and env_afx_push.
Expand Down
23 changes: 23 additions & 0 deletions build/trenchbroom/games/Unvanquished/entities.ent
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,29 @@ Use pos_player_intermission instead.
<targetname key="targetname" name="targetname">Can possibly be fired. (string (targetname))</targetname>
</point>

<point name="pos_navcon_next" color="1 0.8 0.267" box="-8 -8 -8 8 8 8">
------ DESCRIPTION ------
Navmesh connection point (start point).
Link it from a pos_navcon_start and the navmesh generator will generate a navmesh connection.
------ PROPERTIES ------
<targetname key="targetname" name="targetname">[required] Name to use as target in a pos_navcon_start entity (or another pos_navcon_next in a chain). (string (targetname))</targetname>
<real3 key="origin" name="origin">Position. (vec3_float)</real3>
<target key="target" name="target">Set the name of another pos_navcon_next entity to connect them together in a chain. (string (target))</target>
</point>

<point name="pos_navcon_start" color="1 0.8 0.267" box="-8 -8 -8 8 8 8">
------ DESCRIPTION ------
Navmesh connection point (next point).
Link it to a pos_navcon_next and the navmesh generator will generate a navmesh connection.
------ SPAWNFLAGS ------
<flag key="BIDIR" name="BIDIR" bit="0">Bidirectional.</flag>
------ PROPERTIES ------
<target key="target" name="target">[required] Set the name of a pos_navcon_next entity to connect them together. (string (target))</target>
<real3 key="origin" name="origin">Position. (vec3_float)</real3>
<string key="playerclasses" name="playerclasses">Space-separated list of player classes that can go this route.</string>
<real key="size" name="size" value="50">Radius. (float, def: 50)</real>
</point>

<point name="pos_target" color="0 0.498 0" box="-8 -8 -8 8 8 8">
------ DESCRIPTION ------
Aiming target for entities like light, gfx_portal_camera and env_afx_push.
Expand Down
1 change: 1 addition & 0 deletions src/entities/entities.deftypes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ period: *time
radius: vec3_float
random: float
replacement: string
size: float
shader: string (texture)
sound1to2: *sound
sound2to1: *sound
Expand Down
31 changes: 31 additions & 0 deletions src/entities/entities.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,37 @@
aliasof: pos_player_spawn
deprecated: y
d3Class: idPlayerStart
- name: pos_navcon_next
extend: [point]
d3Class: iTarget
color: ffcc44
props:
target: >
Set the name of another pos_navcon_next entity to connect them together in a chain.
targetname: >
[required] Name to use as target in a pos_navcon_start entity (or another pos_navcon_next in a chain).
desc: >
Navmesh connection point (start point).

Link it from a pos_navcon_start and the navmesh generator will generate a navmesh connection.
- name: pos_navcon_start
extend: [point]
d3Class: iTarget
color: ffcc44
flags:
- BIDIR: Bidirectional.
props:
target: >
[required] Set the name of a pos_navcon_next entity to connect them together.
size: Radius.
playerclasses: >
Space-separated list of player classes that can go this route.
propdefaults:
size: 50
desc: >
Navmesh connection point (next point).

Link it to a pos_navcon_next and the navmesh generator will generate a navmesh connection.
- name: pos_target
extend: [chain_target,point]
d3Class: idTarget
Expand Down