From 0e20a292271f38c6eabbee319bec6dfb21d9780c Mon Sep 17 00:00:00 2001 From: archive Date: Thu, 4 May 2000 00:00:00 +0000 Subject: [PATCH] as released 2000-05-04 --- amtest.qc | 85 ----------------------------------------------------- buttons.qc | 27 ++++++++++++++++- client.qc | 26 ++++++++++++++++ combat.qc | 26 ++++++++++++++++ defs.qc | 26 ++++++++++++++++ doors.qc | 26 ++++++++++++++++ items.qc | 26 ++++++++++++++++ jctest.qc | 15 ---------- misc.qc | 26 ++++++++++++++++ models.qc | 26 ++++++++++++++++ plats.qc | 26 ++++++++++++++++ player.qc | 26 ++++++++++++++++ server.qc | 26 ++++++++++++++++ spectate.qc | 29 +++++++++++++++++- sprites.qc | 26 ++++++++++++++++ subs.qc | 26 ++++++++++++++++ triggers.qc | 26 ++++++++++++++++ weapons.qc | 25 ++++++++++++++++ world.qc | 26 ++++++++++++++++ 19 files changed, 443 insertions(+), 102 deletions(-) delete mode 100644 amtest.qc delete mode 100644 jctest.qc diff --git a/amtest.qc b/amtest.qc deleted file mode 100644 index af59720..0000000 --- a/amtest.qc +++ /dev/null @@ -1,85 +0,0 @@ -/*~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~> -~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~*/ - -void() test_teleport_touch; -void() tele_done; - -/*QUAKED test_teleport (0 .5 .8) ? -Teleporter testing -*/ -void() test_teleport = -{ - precache_model ("sprites/s_aball.spr"); - setsize (self, self.mins, self.maxs); - self.touch = test_teleport_touch; - self.solid = 1; - - if (!self.target) - objerror ("no target\n"); -}; - -void() test_teleport_touch = -{ -local entity oldself; - other.movetype = MOVETYPE_TOSS; -// other.solid = SOLID_NOT; - other.dest = '256 -128 -128'; - oldself = self; - self = other; -// SUB_CalcMove (self.dest, 200, tele_done); - self.velocity = '1000 0 0 '; - self = oldself; -}; - -void() tele_done = -{ - self.movetype = MOVETYPE_WALK; - self.solid = SOLID_SLIDEBOX; -}; - -/*~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~> -~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~<~>~*/ - -void() test_goaway; -void() test_spawn; - -/*QUAKED test_fodder (0 .5 .8) ? -beating guy -*/ -void() test_fodder = -{ - self.nextthink = time + 3; - self.think = test_spawn; -}; - -void() test_spawn = -{ -local entity body; - makevectors (self.angles); - - body = spawn(); - setmodel (body, "progs/soldier.mdl"); - setorigin (body, self.origin); - body.classname = "player"; - body.health = 1000; - body.frags = 0; - body.takedamage = DAMAGE_AIM; - body.solid = SOLID_SLIDEBOX; - body.movetype = MOVETYPE_WALK; - body.show_hostile = 0; - body.weapon = 1; - body.velocity = v_forward * 200; - - body.nextthink = time + 5; - body.think = test_goaway; - -self.nextthink = time + 3; -self.think = test_spawn; - -}; - -void() test_goaway = -{ - remove (self); -}; - diff --git a/buttons.qc b/buttons.qc index 016ce6e..8a678d6 100644 --- a/buttons.qc +++ b/buttons.qc @@ -1,4 +1,29 @@ -// button and multiple button +/* + buttons.qc + + button and multiple button + + Copyright (C) 1996-1997 Id Software, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + +*/ void() button_wait; void() button_return; diff --git a/client.qc b/client.qc index 80c6970..40acdc6 100644 --- a/client.qc +++ b/client.qc @@ -1,3 +1,29 @@ +/* + client.qc + + client functions + + Copyright (C) 1996-1997 Id Software, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + +*/ // prototypes void () W_WeaponFrame; diff --git a/combat.qc b/combat.qc index 6367852..524108c 100644 --- a/combat.qc +++ b/combat.qc @@ -1,3 +1,29 @@ +/* + combat.qc + + damage, obit, etc related functions + + Copyright (C) 1996-1997 Id Software, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + +*/ void() T_MissileTouch; void() info_player_start; diff --git a/defs.qc b/defs.qc index 8305c98..971f33c 100644 --- a/defs.qc +++ b/defs.qc @@ -1,3 +1,29 @@ +/* + defs.qc + + global definitions + + Copyright (C) 1996-1997 Id Software, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + +*/ /* ============================================================================== diff --git a/doors.qc b/doors.qc index 2cd303d..5c61167 100644 --- a/doors.qc +++ b/doors.qc @@ -1,3 +1,29 @@ +/* + doors.qc + + door functions + + Copyright (C) 1996-1997 Id Software, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + +*/ float DOOR_START_OPEN = 1; float DOOR_DONT_LINK = 4; diff --git a/items.qc b/items.qc index 4ae0766..3c8b4a8 100644 --- a/items.qc +++ b/items.qc @@ -1,3 +1,29 @@ +/* + items.qc + + item functions + + Copyright (C) 1996-1997 Id Software, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + +*/ void() W_SetCurrentAmmo; /* ALL LIGHTS SHOULD BE 0 1 0 IN COLOR ALL OTHER ITEMS SHOULD BE .8 .3 .4 IN COLOR */ diff --git a/jctest.qc b/jctest.qc deleted file mode 100644 index 85a7605..0000000 --- a/jctest.qc +++ /dev/null @@ -1,15 +0,0 @@ - -void() jctrig = -{ -dprint ("here\n\n"); - lightstyle(0, "az"); -}; - -/*QUAKED trigger_jctest (.5 .5 .5) ? -*/ -void() trigger_jctest = -{ - setsize (self, self.mins, self.maxs); - self.solid = SOLID_EDGE; - self.touch = jctrig; -}; diff --git a/misc.qc b/misc.qc index 6ba82b5..9f8e9be 100644 --- a/misc.qc +++ b/misc.qc @@ -1,3 +1,29 @@ +/* + misc.qc + + pretty much everything else + + Copyright (C) 1996-1997 Id Software, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + +*/ /*QUAKED info_null (0 0.5 0) (-4 -4 -4) (4 4 4) Used as a positional target for spotlights, etc. diff --git a/models.qc b/models.qc index 56f474d..fd45365 100644 --- a/models.qc +++ b/models.qc @@ -1,3 +1,29 @@ +/* + models.qc + + model definitions + + Copyright (C) 1996-1997 Id Software, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + +*/ /* =============================================================================== diff --git a/plats.qc b/plats.qc index f60081e..ad29b85 100644 --- a/plats.qc +++ b/plats.qc @@ -1,3 +1,29 @@ +/* + plats.qc + + platform functions + + Copyright (C) 1996-1997 Id Software, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + +*/ void() plat_center_touch; diff --git a/player.qc b/player.qc index 0c5dec2..3175c3b 100644 --- a/player.qc +++ b/player.qc @@ -1,3 +1,29 @@ +/* + player.qc + + player functions/definitions + + Copyright (C) 1996-1997 Id Software, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + +*/ void() bubble_bob; diff --git a/server.qc b/server.qc index 031e253..5c4b6e1 100644 --- a/server.qc +++ b/server.qc @@ -1,3 +1,29 @@ +/* + server.qc + + server functions (movetarget code) + + Copyright (C) 1996-1997 Id Software, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + +*/ void() monster_ogre = {remove(self);}; void() monster_demon1 = {remove(self);}; diff --git a/spectate.qc b/spectate.qc index 81c6533..aebc9ec 100644 --- a/spectate.qc +++ b/spectate.qc @@ -1,4 +1,31 @@ -// Spectator functions +/* + spectate.qc + + spectator functions + + PURPOSE + + Copyright (C) 1996-1997 Id Software, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + +*/ // Added Aug11'97 by Zoid // // These functions are called from the server if they exist. diff --git a/sprites.qc b/sprites.qc index f1bb605..c6aa769 100644 --- a/sprites.qc +++ b/sprites.qc @@ -1,3 +1,29 @@ +/* + sprites.qc + + sprite definitions + + Copyright (C) 1996-1997 Id Software, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + +*/ // these are the only sprites still in the game... diff --git a/subs.qc b/subs.qc index f985fcd..43e4f76 100644 --- a/subs.qc +++ b/subs.qc @@ -1,3 +1,29 @@ +/* + subs.qc + + sub-functions, mostly movement related + + Copyright (C) 1996-1997 Id Software, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + +*/ void() SUB_Null = {}; diff --git a/triggers.qc b/triggers.qc index b428ca8..0d31915 100644 --- a/triggers.qc +++ b/triggers.qc @@ -1,3 +1,29 @@ +/* + triggers.qc + + trigger functions + + Copyright (C) 1996-1997 Id Software, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + +*/ entity stemp, otemp, s, old; diff --git a/weapons.qc b/weapons.qc index 3ff892f..7d3dde8 100644 --- a/weapons.qc +++ b/weapons.qc @@ -1,5 +1,30 @@ /* + weapons.qc + + weapon and weapon hit functions + + Copyright (C) 1996-1997 Id Software, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + */ + void (entity targ, entity inflictor, entity attacker, float damage) T_Damage; void () player_run; void(entity bomb, entity attacker, float rad, entity ignore, string dtype) T_RadiusDamage; diff --git a/world.qc b/world.qc index 503b530..9719094 100644 --- a/world.qc +++ b/world.qc @@ -1,3 +1,29 @@ +/* + world.qc + + main/world setup functions + + Copyright (C) 1996-1997 Id Software, Inc. + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to: + + Free Software Foundation, Inc. + 59 Temple Place - Suite 330 + Boston, MA 02111-1307, USA + +*/ void() InitBodyQue;