From: mattn Date: Mon, 24 Mar 2008 15:24:37 +0000 (+0000) Subject: * added UFO:AI gamepack X-Git-Tag: xonotic-v0.7.0~16^2~12^2~112^2~21 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=db4ab5daaaa49eeee2350644d726b03ef59e7c14;p=xonotic%2Fnetradiant.git * added UFO:AI gamepack * changed gametools path in game definition file (this allows us to store more than one game in the games/ directory) git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@234 8a3a26a2-13c4-0310-b231-cf6edde360e5 --- diff --git a/install/games/ufoai/game.xlink b/install/games/ufoai/game.xlink new file mode 100644 index 00000000..963598cc --- /dev/null +++ b/install/games/ufoai/game.xlink @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/install/games/ufoai/synapse.config b/install/games/ufoai/synapse.config new file mode 100644 index 00000000..814e51ce --- /dev/null +++ b/install/games/ufoai/synapse.config @@ -0,0 +1,59 @@ + + + + + + tga jpg + + + pk3 + + + ufoai + + + mapq2 + + + def + + + ufoai + + + md2 + + + + + pk3 + + + + + + ufoai + + + pk3 + + + + + ufoai + + + + + ufoai + + + + + ufoai + + + pk3 + + + diff --git a/install/installs/UFOAIPack/base/scripts/common.shader b/install/installs/UFOAIPack/base/scripts/common.shader new file mode 100644 index 00000000..eeb9946a --- /dev/null +++ b/install/installs/UFOAIPack/base/scripts/common.shader @@ -0,0 +1,47 @@ +textures/tex_common/actorclip +{ + qer_trans 0.40 + surfaceparm playerclip +} + +textures/tex_common/caulk +{ + qer_trans 0.40 +} + +textures/tex_common/hint +{ + qer_trans 0.40 +} + +textures/tex_common/nodraw +{ + qer_trans 0.40 + surfaceparm nodraw +} + +textures/tex_common/origin +{ + qer_trans 0.40 +} + +textures/tex_common/slick +{ + qer_trans 0.40 +} + +textures/tex_common/stepon +{ + qer_trans 0.40 +} + +textures/tex_common/trigger +{ + qer_trans 0.50 +} + +textures/tex_common/weaponclip +{ + qer_trans 0.40 + surfaceparm botclip +} diff --git a/install/installs/UFOAIPack/base/scripts/default_project.proj b/install/installs/UFOAIPack/base/scripts/default_project.proj new file mode 100644 index 00000000..8fdbae95 --- /dev/null +++ b/install/installs/UFOAIPack/base/scripts/default_project.proj @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/install/installs/UFOAIPack/base/scripts/entities.def b/install/installs/UFOAIPack/base/scripts/entities.def new file mode 100644 index 00000000..4759426a --- /dev/null +++ b/install/installs/UFOAIPack/base/scripts/entities.def @@ -0,0 +1,140 @@ +/*QUAKED info_player_start (1 0 0) (-16 -16 -24) (16 16 32) +Starting point for a player. +"team" the number of the team for this player starting point. 0 is reserved for civilians and critters (use info_civilian_start instead) +*/ + + +/*QUAKED info_human_start (0 1 0) (-16 -16 -24) (16 16 32) +Starting point for a single player human. +*/ + + +/*QUAKED info_alien_start (0 0 1) (-16 -16 -24) (16 16 32) +Starting point for a single player alien. +*/ + + +/*QUAKED info_2x2_start (1 1 0) (-32 -32 -24) (32 32 32) +Starting point for a ugv 2x2 units. +"team" the number of the team for this player starting point. Only for multiplayer teams. +*/ + + +/*QUAKED info_civilian_start (0 1 1) (-16 -16 -24) (16 16 32) +Starting point for a civilian. +*/ + + +/*QUAKED misc_model (1 1 0) (-16 -16 -16) (16 16 16) level1 level2 level3 level4 level5 level6 level7 level8 server_solid glow +Displays a md2 model. +Set the level flags correctly! +Use angles [pitch yaw roll] to rotate the model. pitch (up/down), yaw (left/right) and roll (fall over) +"model" arbitrary .md2 file to display +"angles" direction of the model [pitch yaw roll] +"angle" direction of the model [yaw] +"skin" skin number (default 0) +"frame" frame number (default 0) - use frame or anim - but not both +"anim" is this an animated model (default empty otherwise fill the animname) +*/ + + +/*QUAKED misc_particle (0 0 1) (-16 -16 -16) (16 16 16) level1 level2 level3 level4 level5 level6 level7 level8 noday +Creates a particle. Particle properties can be set here with a preceding '-' or '+'. +'-' property is set before calling the particle init function +'+' do it afterwards +noday means that the particle is not shown at the day version of the map. E.g. useful for flare particles around streetlight. +Wait times are of the format "a b". It spawns particles in random intervals ranging from (a) to (a+b) seconds. If no wait time is specified one particle is created at map start. +"particle" name of the particle definition +"wait" wait time +*/ + + +/*QUAKED light (0 1 0) (-8 -8 -8) (8 8 8) day +Non-displayed light. All lights are for the night version. If you want them to show up in the day version, too - mark the day flag +"_color" Color for the light RGB +"light" intensity 0-255 +"target" entity target name (info_null) +"_cone" +"origin" +"angle" Special values: UP -1; DOWN -2; +*/ + +/*QUAKED light_spot (0 1 0) (-8 -8 -8) (8 8 8) day +Non-displayed light. All lights are for the night version. If you want them to show up in the day version, too - mark the day flag +"_color" Color for the light RGB +"light" intensity 0-255 +"_cone" +"origin" +"angle" Special values: UP -1; DOWN -2; +*/ + +/*QUAKED worldspawn (0 0 0) ? +Only used for the world. +"maxteams" max. teams for multiplayer +"maxlevel" highest selectable level +*/ + +/*QUAKED info_null (0 0.5 0) (-4 -4 -4) (4 4 4) +Used as a positional target for spotlights, etc. +"targetname" target name +*/ + +/*QUAKED info_civilian_target (0.5 0.8 0.1) (-16 -16 -24) (16 16 32) +Used as a target where civilians try to get in a mission (TODO: Implement me) +"count" The priority of this waypoint - the lower the number, the nearer the end-target +*/ + +/*QUAKED misc_sound (0.5 1 0.5) (-8 -8 -8) (8 8 8) level1 level2 level3 level4 level5 level6 level7 level8 +Used to play ambient sounds (looped sounds) +"noise" sound file name relative to sound/ambience +"volume" 0 - 128 +*/ + +/*QUAKED misc_mission (0.1 0.6 0.3) (-16 -16 -16) (16 16 16) level1 level2 level3 level4 level5 level6 level7 level8 +Defines a mission target +"particle" display a particle +"time" if set the entity has to be occupied x rounds to win the mission +"radius" if the entity has to be occupied this defines the radius that is needed +"health" if set the entity has to be destroyed to win the mission - otherwise is has just to be reached (see time) +*/ + +/*QUAKED misc_mission_alien (0.1 0.6 0.3) (-16 -16 -16) (16 16 16) level1 level2 level3 level4 level5 level6 level7 level8 +Defines the alien mission target +"particle" display a particle +"time" if set the entity has to be occupied x rounds to win the mission +"radius" if the entity has to be occupied this defines the radius that is needed +"health" if set the entity has to be destroyed to win the mission - otherwise is has just to be reached (see time) +*/ + +/*QUAKED func_door (0 .5 .8) ? level1 level2 level3 level4 level5 level6 level7 level8 +"angle" determines the opening direction +"health" if set, door must be shot open +"speed" movement speed (100 default) +"wait" wait before returning (3 default, -1 = never return) +"lip" lip remaining at end of move (8 default) +*/ + +/*QUAKED func_group (0 0 0) ? +Only for editor and terrain convenience. +"terrain" +"gensurf" +"phongshading" +*/ + +/*QUAKED func_breakable (0 0 0) ? level1 level2 level3 level4 level5 level6 level7 level8 +"health" damage until destroyed +"particle" particle id +"material" material id MAT_GLASS = 0 (default), MAT_METAL = 1, MAT_ELECTRICAL = 2, MAT_WOOD = 3 +*/ + +/*QUAKED func_rotating (0 0 0) ? level1 level2 level3 level4 level5 level6 level7 level8 +"health" damage until destroyed +"particle" particle id +"speed" rotation speed +"angle" rotate around this angle - pitch = 0, yaw = 1, roll = 2 +*/ + +/*QUAKED trigger_hurt (0 0 0) ? KILL STUN DAZE +Any entity that touches this will be hurt. It does dmg points of damage each server frame +"dmg" default 5 (whole numbers only) +*/ diff --git a/install/installs/UFOAIPack/base/scripts/shaderlist.txt b/install/installs/UFOAIPack/base/scripts/shaderlist.txt new file mode 100644 index 00000000..c3b933b2 --- /dev/null +++ b/install/installs/UFOAIPack/base/scripts/shaderlist.txt @@ -0,0 +1,2 @@ +common +textures diff --git a/install/installs/UFOAIPack/base/scripts/textures.shader b/install/installs/UFOAIPack/base/scripts/textures.shader new file mode 100644 index 00000000..2098ad03 --- /dev/null +++ b/install/installs/UFOAIPack/base/scripts/textures.shader @@ -0,0 +1,34 @@ +textures/tex_mattn/fence +{ + qer_alphafunc gequal 0.5 +} + +textures/tex_mattn/grate +{ + qer_alphafunc gequal 0.5 +} + +textures/tex_mattn/grate2 +{ + qer_alphafunc gequal 0.5 +} + +textures/tex_mattn/gully +{ + qer_alphafunc gequal 0.5 +} + +textures/tex_mattn/tire +{ + qer_alphafunc gequal 0.5 +} + +textures/tex_mattn/tire2 +{ + qer_alphafunc gequal 0.5 +} + +textures/tex_material/circle_gray +{ + qer_alphafunc gequal 0.5 +} diff --git a/install/installs/UFOAIPack/base/textures/radiant/notex.tga b/install/installs/UFOAIPack/base/textures/radiant/notex.tga new file mode 100644 index 00000000..07f1a23f Binary files /dev/null and b/install/installs/UFOAIPack/base/textures/radiant/notex.tga differ diff --git a/radiant/preferences.cpp b/radiant/preferences.cpp index c1bbaefa..38e5599b 100644 --- a/radiant/preferences.cpp +++ b/radiant/preferences.cpp @@ -3235,7 +3235,7 @@ void CGameInstall::Run() { } fprintf( fg, "\n