diff --git a/src/server/button_aiwallplug.qc b/src/server/button_aiwallplug.qc new file mode 100644 index 0000000..dd01c5d --- /dev/null +++ b/src/server/button_aiwallplug.qc @@ -0,0 +1,32 @@ +class +button_aiwallplug:NSRenderableEntity +{ +public: + void button_aiwallplug(void); + + virtual void Precache(void); + virtual void Respawn(void); +}; + +void +button_aiwallplug::button_aiwallplug(void) +{ + +} + +void +button_aiwallplug::Precache(void) +{ + precache_model("models/aiwallplug.mdl"); +} + +void +button_aiwallplug::Respawn(void) +{ + SetSolid(SOLID_BBOX); + SetMovetype(MOVETYPE_NONE); + SetModel("models/aiwallplug.mdl"); + SetSize([-32,-32,0], [32,32,48]); + SetOrigin(GetSpawnOrigin()); + SetAngles(GetSpawnAngles()); +} \ No newline at end of file diff --git a/src/server/decore.qc b/src/server/decore.qc index 5de33ef..fbcd1d5 100644 --- a/src/server/decore.qc +++ b/src/server/decore.qc @@ -1,28 +1,116 @@ +/* + * Copyright (c) 2019-2023 Marco Cawthorne + * + * Permission to use, copy, modify, and distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER + * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING + * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + class RWDecore:NSSurfacePropEntity { - bool m_bDropToFloor; - +public: void(void) RWDecore; + virtual void SpawnKey(string, string); virtual void(void) Respawn; + virtual void StartTouch(entity); + +private: + bool m_bDropToFloor; + vector m_vecSpawnMins; + vector m_vecSpawnMaxs; + bool m_bIsSolid; + int m_iDamage; + float m_flDamageTime; + float m_flDamageTest; + int m_iSpawnFrame; }; +void +RWDecore::RWDecore(void) +{ + m_bDropToFloor = false; + m_vecSpawnMins = g_vec_null; + m_vecSpawnMaxs = g_vec_null; + m_bIsSolid = false; + m_iDamage = 0i; + m_flDamageTime = 0.0; + m_flDamageTest = 0.0f; + m_iSpawnFrame = 0i; +} + +void +RWDecore::SpawnKey(string strKey, string strValue) +{ + switch (strKey) { + case "mins": + m_vecSpawnMins = ReadVector(strValue); + break; + case "maxs": + m_vecSpawnMaxs = ReadVector(strValue); + break; + case "droptofloor": + m_bDropToFloor = ReadBool(strValue); + break; + case "solid": + m_bIsSolid = ReadBool(strValue); + break; + case "damage": + m_iDamage = ReadInt(strValue); + break; + case "dmgtime": + m_flDamageTime = ReadFloat(strValue); + break; + case "rotate": + avelocity[0] = random(-32, 32); + avelocity[1] = random(-32, 32); + avelocity[2] = random(-32, 32); + movetype = MOVETYPE_NOCLIP; + break; + case "frame": + m_iSpawnFrame = ReadInt(strValue); + break; + default: + super::SpawnKey(strKey, strValue); + break; + } +} + void RWDecore::Respawn(void) { - vector newmins = mins; - vector newmaxs = maxs; + if (m_bIsSolid == true) + SetSolid(SOLID_BBOX); + else + SetSolid(SOLID_NOT); SetOrigin(GetSpawnOrigin()); SetModel(GetSpawnModel()); - SetSize(newmins, newmaxs); + SetSize(m_vecSpawnMins, m_vecSpawnMaxs); + SetFrame(m_iSpawnFrame); if (m_bDropToFloor == true) DropToFloor(); } void -RWDecore::RWDecore(void) +RWDecore::StartTouch(entity touchingEntity) { + if (m_flDamageTest > time) + return; + + if (touchingEntity.takedamage == DAMAGE_NO) + return; + + Damage_Apply(touchingEntity, this, m_iDamage, WEAPON_NONE, 0); + m_flDamageTest = time + m_flDamageTime; } \ No newline at end of file diff --git a/src/server/decore_asteroid.qc b/src/server/decore_asteroid.qc deleted file mode 100644 index 0bece0b..0000000 --- a/src/server/decore_asteroid.qc +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_asteroid (0 0.8 0.8) (-16 -16 0) (16 16 40) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/rockspin.mdl" -*/ - -class decore_asteroid:RWDecore -{ - void(void) decore_asteroid; - - virtual void(string, string) SpawnKey; -}; - -void -decore_asteroid::SpawnKey(string strKey, string strValue) -{ - switch (strKey) { - case "asteroidsize": - SetBody(stoi(strValue) + 1); - break; - default: - super::SpawnKey(strKey, strValue); - } -} - -void -decore_asteroid::decore_asteroid(void) -{ - model = "models/rockspin.mdl"; - mins = [-16, -16, 0]; - maxs = [16, 16, 40]; -} diff --git a/src/server/decore_baboon.qc b/src/server/decore_baboon.qc deleted file mode 100644 index 1330b59..0000000 --- a/src/server/decore_baboon.qc +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_baboon (0 0.8 0.8) (-16 -16 0) (16 16 16) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/baboon.mdl" -*/ - -class decore_baboon:RWDecore -{ - void(void) decore_baboon; -}; - -void -decore_baboon::decore_baboon(void) -{ - model = "models/baboon.mdl"; - mins = [-16, -16, 0]; - maxs = [16, 16, 16]; -} diff --git a/src/server/decore_bodygib.qc b/src/server/decore_bodygib.qc deleted file mode 100644 index 7b8715e..0000000 --- a/src/server/decore_bodygib.qc +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_bodygib (0 0.8 0.8) (-16 -16 0) (16 16 40) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/bodygib.mdl" -*/ - -class decore_bodygib:RWDecore -{ - void(void) decore_bodygib; -}; - -void -decore_bodygib::decore_bodygib(void) -{ - model = "models/bodygib.mdl"; - mins = [-16, -16, 0]; - maxs = [16, 16, 40]; - m_bDropToFloor = true; -} diff --git a/src/server/decore_cactus.qc b/src/server/decore_cactus.qc deleted file mode 100644 index 01b6b3e..0000000 --- a/src/server/decore_cactus.qc +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_cactus (0 0.8 0.8) (-16 -16 0) (16 16 64) -This is a decorative entity from Gunman Chronicles. -It will hurt the player whenever it gets touched. -The damage is 1 health point per second. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/cactus.mdl" -*/ - -class decore_cactus:RWDecore -{ - float m_flDmgTest; - - void(void) decore_cactus; - - virtual void(void) Respawn; - virtual void(entity) StartTouch; -}; - -void -decore_cactus::StartTouch(entity eToucher) -{ - if (m_flDmgTest > time) - return; - - if (eToucher.takedamage == DAMAGE_NO) - return; - - NSSurfacePropEntity t = (NSSurfacePropEntity)eToucher; - Damage_Apply(eToucher, this, 1, WEAPON_NONE, 0); - m_flDmgTest = time + 1.0f; -} - -void -decore_cactus::Respawn(void) -{ - super::Respawn(); - SetSolid(SOLID_BBOX); -} - -void -decore_cactus::decore_cactus(void) -{ - model = "models/cactus.mdl"; - mins = [-16, -16, 0]; - maxs = [16, 16, 64]; - m_bDropToFloor = true; -} diff --git a/src/server/decore_cam.qc b/src/server/decore_cam.qc deleted file mode 100644 index 957554f..0000000 --- a/src/server/decore_cam.qc +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_cam (0 0.8 0.8) (-16 -16 0) (16 16 16) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/camera.mdl" -*/ - -class decore_cam:RWDecore -{ - void(void) decore_cam; -}; - -void -decore_cam::decore_cam(void) -{ - model = "models/camera.mdl"; - mins = [-16, -16, 0]; - maxs = [16, 16, 16]; -} diff --git a/src/server/decore_camflare.qc b/src/server/decore_camflare.qc deleted file mode 100644 index c4ed781..0000000 --- a/src/server/decore_camflare.qc +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_camflare (0 0.8 0.8) (-16 -16 0) (16 16 72) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/cameracone.mdl" -*/ - -class decore_camflare:RWDecore -{ - void(void) decore_camflare; -}; - -void -decore_camflare::decore_camflare(void) -{ - model = "models/cameracone.mdl"; - mins = [-16, -16, 0]; - maxs = [16, 16, 72]; -} diff --git a/src/server/decore_eagle.qc b/src/server/decore_eagle.qc deleted file mode 100644 index 693d49b..0000000 --- a/src/server/decore_eagle.qc +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_eagle (0 0.8 0.8) (-32 -32 -16) (32 32 16) -This is a decorative monster entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/eagle.mdl" -*/ - -class decore_eagle:NSMonster -{ - void(void) decore_eagle; -}; - -void -decore_eagle::decore_eagle(void) -{ - model = "models/eagle.mdl"; - mins = [-32, -32, 16]; - maxs = [32, 32, 16]; -} diff --git a/src/server/decore_explodable.qc b/src/server/decore_explodable.qc deleted file mode 100644 index ac1565a..0000000 --- a/src/server/decore_explodable.qc +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_explodable (0 0.8 0.8) (-16 -16 0) (16 16 72) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/dropship.mdl" -*/ - -class decore_explodable:RWDecore -{ - void(void) decore_explodable; -}; - -void -decore_explodable::decore_explodable(void) -{ - model = "models/dropship.mdl"; - mins = [-16, -16, 0]; - maxs = [16, 16, 72]; -} diff --git a/src/server/decore_foot.qc b/src/server/decore_foot.qc deleted file mode 100644 index d3bceb2..0000000 --- a/src/server/decore_foot.qc +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_foot (0 0.8 0.8) (-16 -16 0) (16 16 72) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/renesaurfoot.mdl" -*/ - -class decore_foot:RWDecore -{ - void(void) decore_foot; -}; - -void -decore_foot::decore_foot(void) -{ - model = "models/renesaurfoot.mdl"; - mins = [-16, -16, 0]; - maxs = [16, 16, 72]; -} diff --git a/src/server/decore_goldskull.qc b/src/server/decore_goldskull.qc deleted file mode 100644 index 2e35052..0000000 --- a/src/server/decore_goldskull.qc +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_goldskull (0 0.8 0.8) (-10 -10 -12) (10 10 12) -This is a decorative monster entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/goldskull.mdl" -*/ - -class decore_goldskull:NSMonster -{ - void(void) decore_goldskull; -}; - -void -decore_goldskull::decore_goldskull(void) -{ - model = "models/goldskull.mdl"; - mins = [-10, -10, -12]; - maxs = [10, 10, 12]; -} diff --git a/src/server/decore_gutspile.qc b/src/server/decore_gutspile.qc deleted file mode 100644 index dadf935..0000000 --- a/src/server/decore_gutspile.qc +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_gutspile (0 0.8 0.8) (-16 -16 0) (16 16 40) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/gutspile.mdl" -*/ - -class decore_gutspile:RWDecore -{ - void(void) decore_gutspile; -}; - -void -decore_gutspile::decore_gutspile(void) -{ - model = "models/gutspile.mdl"; - mins = [-16, -16, 0]; - maxs = [16, 16, 40]; - m_bDropToFloor = true; -} diff --git a/src/server/decore_hatgib.qc b/src/server/decore_hatgib.qc deleted file mode 100644 index 2222c62..0000000 --- a/src/server/decore_hatgib.qc +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_hatgib (0 0.8 0.8) (-16 -16 0) (16 16 40) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/hatgib.mdl" -*/ - -class decore_hatgib:RWDecore -{ - void(void) decore_hatgib; -}; - -void -decore_hatgib::decore_hatgib(void) -{ - model = "models/hatgib.mdl"; - mins = [-16, -16, 0]; - maxs = [16, 16, 40]; - m_bDropToFloor = true; -} diff --git a/src/server/decore_ice.qc b/src/server/decore_ice.qc deleted file mode 100644 index a2e1690..0000000 --- a/src/server/decore_ice.qc +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_ice (0 0.8 0.8) (-16 -16 0) (16 16 40) -This is a decorative monster entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/ice.mdl" -*/ - -class decore_ice:NSMonster -{ - void(void) decore_ice; -}; - -void -decore_ice::decore_ice(void) -{ - model = "models/ice.mdl"; - mins = [-16, -16, 0]; - maxs = [16, 16, 40]; -} diff --git a/src/server/decore_icebeak.qc b/src/server/decore_icebeak.qc deleted file mode 100644 index f8e9c87..0000000 --- a/src/server/decore_icebeak.qc +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_icebeak (0 0.8 0.8) (-16 -16 0) (16 16 72) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/icebeak.mdl" -*/ - -class decore_icebeak:RWDecore -{ - void(void) decore_icebeak; -}; - -void -decore_icebeak::decore_icebeak(void) -{ - model = "models/icebeak.mdl"; - mins = [-16, -16, 0]; - maxs = [16, 16, 72]; -} diff --git a/src/server/decore_labstuff.qc b/src/server/decore_labstuff.qc deleted file mode 100644 index 271b19f..0000000 --- a/src/server/decore_labstuff.qc +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_labstuff (0 0.8 0.8) (-16 -16 0) (16 16 64) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/swampstuff.mdl" -*/ - -class decore_labstuff:RWDecore -{ - void(void) decore_labstuff; -}; - -void -decore_labstuff::decore_labstuff(void) -{ - model = "models/labstuff.mdl"; - mins = [-16, -16, 0]; - maxs = [16, 16, 64]; -} diff --git a/src/server/decore_mushroom.qc b/src/server/decore_mushroom.qc deleted file mode 100644 index 890e299..0000000 --- a/src/server/decore_mushroom.qc +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_mushroom (0 0.8 0.8) (-16 -16 0) (16 16 16) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/mushroom.mdl" -*/ - -class decore_mushroom:RWDecore -{ - void(void) decore_mushroom; -}; - -void -decore_mushroom::decore_mushroom(void) -{ - model = "models/mushroom.mdl"; - mins = [-16, -16, 0]; - maxs = [16, 16, 16]; -} diff --git a/src/server/decore_mushroom2.qc b/src/server/decore_mushroom2.qc deleted file mode 100644 index 31677df..0000000 --- a/src/server/decore_mushroom2.qc +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_mushroom2 (0 0.8 0.8) (-16 -16 0) (16 16 16) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/mushroom2.mdl" -*/ - -class decore_mushroom2:RWDecore -{ - void(void) decore_mushroom2; -}; - -void -decore_mushroom2::decore_mushroom2(void) -{ - model = "models/mushroom2.mdl"; - mins = [-16, -16, 0]; - maxs = [16, 16, 16]; -} diff --git a/src/server/decore_nest.qc b/src/server/decore_nest.qc deleted file mode 100644 index 120446e..0000000 --- a/src/server/decore_nest.qc +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_nest (0 0.8 0.8) (-32 -32 0) (32 32 16) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/ornest.mdl" -*/ - -class decore_nest:RWDecore -{ - void(void) decore_nest; -}; - -void -decore_nest::decore_nest(void) -{ - model = "models/ornest.mdl"; - m_bDropToFloor = true; - mins = [-32, -32, 0]; - maxs = [32, 32, 16]; -} diff --git a/src/server/decore_pipes.qc b/src/server/decore_pipes.qc deleted file mode 100644 index 6c4df61..0000000 --- a/src/server/decore_pipes.qc +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_pipes (0 0.8 0.8) (-16 -16 -16) (16 16 0) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/pipes.mdl" -*/ - -class decore_pipes:RWDecore -{ - void(void) decore_pipes; -}; - -void -decore_pipes::decore_pipes(void) -{ - model = "models/pipes.mdl"; - mins = [-16, -16, -16]; - maxs = [16, 16, 0]; -} diff --git a/src/server/decore_prickle.qc b/src/server/decore_prickle.qc deleted file mode 100644 index 30304f6..0000000 --- a/src/server/decore_prickle.qc +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_prickle (0 0.8 0.8) (-8 -8 0) (8 8 8) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/prickle.mdl" -*/ - -class decore_prickle:RWDecore -{ - void(void) decore_prickle; -}; - -void -decore_prickle::decore_prickle(void) -{ - model = "models/prickle.mdl"; - mins = [-8, -8, 0]; - maxs = [8, 8, 8]; - m_bDropToFloor = true; -} diff --git a/src/server/decore_pteradon.qc b/src/server/decore_pteradon.qc deleted file mode 100644 index e5f6fa5..0000000 --- a/src/server/decore_pteradon.qc +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_pteradon (0 0.8 0.8) (-32 -32 -16) (32 32 16) -This is a decorative monster entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/pteradon2.mdl" -*/ - -class decore_pteradon:NSMonster -{ - void(void) decore_pteradon; -}; - -void -decore_pteradon::decore_pteradon(void) -{ - model = "models/pteradon2.mdl"; - mins = [-32, -32, -16]; - maxs = [32, 32, 16]; -} diff --git a/src/server/decore_sack.qc b/src/server/decore_sack.qc deleted file mode 100644 index 06f4f16..0000000 --- a/src/server/decore_sack.qc +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_sack (0 0.8 0.8) (-16 -16 0) (16 16 64) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/sack.mdl" -*/ - -class decore_sack:RWDecore -{ - void(void) decore_sack; - virtual void(void) Respawn; -}; - -void -decore_sack::Respawn(void) -{ - super::Respawn(); - SetMovetype(MOVETYPE_NONE); -} - -void -decore_sack::decore_sack(void) -{ - model = "models/sack.mdl"; - mins = [-16, -16, 0]; - maxs = [16, 16, 64]; -} diff --git a/src/server/decore_sittingtubemortar.qc b/src/server/decore_sittingtubemortar.qc deleted file mode 100644 index 6ab404d..0000000 --- a/src/server/decore_sittingtubemortar.qc +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_sittingtubemortar (0 0.8 0.8) (-32 -32 0) (32 32 64) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/tubemortar.mdl" -*/ - -class decore_sittingtubemortar:RWDecore -{ - void(void) decore_sittingtubemortar; -}; - -void -decore_sittingtubemortar::decore_sittingtubemortar(void) -{ - model = "models/tubemortar.mdl"; - mins = [-32, -32, 0]; - maxs = [32, 32, 64]; - m_bDropToFloor = true; -} diff --git a/src/server/decore_swampplants.qc b/src/server/decore_swampplants.qc deleted file mode 100644 index 73b7337..0000000 --- a/src/server/decore_swampplants.qc +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_swampplants (0 0.8 0.8) (-16 -16 0) (16 16 64) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/swampstuff.mdl" -*/ - -class decore_swampplants:RWDecore -{ - void(void) decore_swampplants; -}; - -void -decore_swampplants::decore_swampplants(void) -{ - model = "models/swampstuff.mdl"; - mins = [-16, -16, 0]; - maxs = [16, 16, 64]; -} diff --git a/src/server/decore_torch.qc b/src/server/decore_torch.qc deleted file mode 100644 index 58f2062..0000000 --- a/src/server/decore_torch.qc +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_torch (0 0.8 0.8) (-8 -8 -8) (8 8 16) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="models/torch.mdl" -*/ - -class decore_torch:RWDecore -{ - decore_torchflame flame; - - void(void) decore_torch; - - virtual void(void) Spawned; -}; - -void -decore_torch::Spawned(void) -{ - super::Spawned(); - - if (!flame) - flame = spawn(decore_torchflame); - - flame.origin = flame.m_oldOrigin = origin + [0,0,32]; -} - -void -decore_torch::decore_torch(void) -{ - model = "models/torch.mdl"; - mins = [-8, -8, 0]; - maxs = [8, 8, 16]; -} diff --git a/src/server/decore_torchflame.qc b/src/server/decore_torchflame.qc deleted file mode 100644 index 49223ba..0000000 --- a/src/server/decore_torchflame.qc +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (c) 2016-2022 Marco Cawthorne - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER - * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING - * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -/*QUAKED decore_torchflame (0 0.8 0.8) (-4 -4 -8) (4 4 16) -This is a decorative entity from Gunman Chronicles. - --------- KEYS -------- -"targetname" : Name - --------- MODEL FOR RADIANT ONLY - DO NOT SET THIS AS A KEY -------- -model="sprites/flames.spr" -*/ - -class decore_torchflame:RWDecore -{ - void(void) decore_torchflame; - - virtual void(void) Respawn; - virtual void(void) UpdateFrame; -}; - -void -decore_torchflame:: UpdateFrame(void) -{ - frame++; - - if (frame > 22) - frame = 0; - - nextthink = time + 0.1f; -} - -void -decore_torchflame::Respawn(void) -{ - super::Respawn(); - - SetRenderMode(RM_ADDITIVE); - SetRenderColor([1,1,1]); - SetRenderAmt(1.0f); - think = UpdateFrame; - nextthink = time + 0.1f; -} - -void -decore_torchflame::decore_torchflame(void) -{ - model = "sprites/flames.spr"; - mins = [-4, -4, -8]; - maxs = [4, 4, 16]; -} \ No newline at end of file diff --git a/src/server/entity_spritegod.qc b/src/server/entity_spritegod.qc index bf68102..85c2791 100644 --- a/src/server/entity_spritegod.qc +++ b/src/server/entity_spritegod.qc @@ -14,28 +14,39 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/*QUAKED entity_spritegod (0 0.8 0.8) (-16 -16 -16) (16 16 16) +/*!QUAKED entity_spritegod (0 0.8 0.8) (-16 -16 -16) (16 16 16) +# OVERVIEW Master entity for emitting a series of sprites. --------- KEYS -------- +# KEYS "targetname" : Name "spritename" : Sprite model to emit "spritenoise" : Unknown. "spritestartstate" : Whether to start off (0) or on (1) -"spritecount" : How many sprites to emit per interval -"spritefreq" : Emitting frequency, defaults to 5. -"spritex" : Direction on the X-Axis (?) -"spritey" : Direction on the Y-Axis (?) -"spritez" : Direction on the Z-Axis (?) -"targetent" : Target entity, maybe used for setting the direction alternatively (?) +"spritecount" : How many sprites to emit per interval +"spritefreq" : Emitting frequency, defaults to 5. +"spritex" : Direction on the X-Axis (?) +"spritey" : Direction on the Y-Axis (?) +"spritez" : Direction on the Z-Axis (?) +"targetent" : Target entity, maybe used for setting the direction alternatively (?) --------- TRIVIA -------- +# TRIVIA This entity was introduced in Gunman Chronicles (2000). */ - class entity_spritegod:NSPointTrigger { +public: + void(void) entity_spritegod; + + virtual void(string, string) SpawnKey; + virtual void(void) Spawned; + virtual void(void) Respawn; + virtual void(entity, triggermode_t) Trigger; + virtual void(void) StartTimer; + virtual void(void) EmitSprite; + +private: string m_strSprite; int m_iNoise; float m_flSpeed; @@ -44,82 +55,19 @@ entity_spritegod:NSPointTrigger float m_iFrequency; vector m_vecDirection; string m_strTargetEnt; - - void(void) entity_spritegod; - - virtual void(string, string) SpawnKey; - virtual void(void) Respawn; - virtual void(void) EmitSprite; - virtual void(entity, triggermode_t) Trigger; - virtual void(void) StartTimer; - virtual void(void) Spawned; }; void -entity_spritegod::StartTimer(void) +entity_spritegod::entity_spritegod(void) { - nextthink = time + (m_iFrequency / 100); -} - -void -entity_spritegod::Trigger(entity eAct, triggermode_t iState) -{ - switch (iState) { - case TRIG_OFF: - m_iValue = 0; - break; - case TRIG_ON: - m_iValue = 1; - break; - case TRIG_TOGGLE: - m_iValue = 1 - m_iValue; - break; - } - - if (m_iValue) - StartTimer(); -} - -void -entity_spritegod:: EmitSprite(void) -{ - for (int i = 0; i < m_iCount; i++) { - env_sprite new = spawn(env_sprite); - new.SetOrigin(GetOrigin()); - new.SetModel(m_strSprite); - new.SetMovetype(MOVETYPE_NOCLIP); - - /* I have no idea what I'm doing, seems to be an offset? wtf? */ - makevectors(vectoangles(origin - (origin + m_vecDirection))); - new.SetVelocity(v_forward * m_flSpeed); - new.think = Util_Destroy; - new.nextthink = time + 1.0f; - } - - if (m_iValue) - StartTimer(); -} - -void -entity_spritegod::Respawn(void) -{ - SetSize([0,0,0], [0,0,0]); - SetOrigin(GetSpawnOrigin()); - think = EmitSprite; - - if (m_bState == true) - m_iValue = 1; - - if (m_iValue) - StartTimer(); -} - -void -entity_spritegod::Spawned(void) -{ - super::Spawned(); - - precache_model(m_strSprite); + m_strSprite = __NULL__; + m_iNoise = 50; + m_flSpeed = 100; + m_bState = true; + m_iCount = 1; + m_iFrequency = 5; + m_vecDirection = [0,0,0]; + m_strTargetEnt = __NULL__; } void @@ -162,14 +110,67 @@ entity_spritegod::SpawnKey(string strKey, string strValue) } void -entity_spritegod::entity_spritegod(void) +entity_spritegod::Spawned(void) { - m_strSprite = __NULL__; - m_iNoise = 50; - m_flSpeed = 100; - m_bState = true; - m_iCount = 1; - m_iFrequency = 5; - m_vecDirection = [0,0,0]; - m_strTargetEnt = __NULL__; + super::Spawned(); + + precache_model(m_strSprite); +} + +void +entity_spritegod::Respawn(void) +{ + SetSize([0,0,0], [0,0,0]); + SetOrigin(GetSpawnOrigin()); + SetThink(EmitSprite); + + if (m_bState == true) + m_iValue = 1; + + if (m_iValue) + StartTimer(); +} + +void +entity_spritegod::Trigger(entity eAct, triggermode_t iState) +{ + switch (iState) { + case TRIG_OFF: + m_iValue = 0; + break; + case TRIG_ON: + m_iValue = 1; + break; + case TRIG_TOGGLE: + m_iValue = 1 - m_iValue; + break; + } + + if (m_iValue) + StartTimer(); +} + +void +entity_spritegod::StartTimer(void) +{ + SetNextThink(m_iFrequency / 100); +} + +void +entity_spritegod::EmitSprite(void) +{ + for (int i = 0; i < m_iCount; i++) { + env_sprite new = spawn(env_sprite); + new.SetOrigin(GetOrigin()); + new.SetModel(m_strSprite); + new.SetMovetype(MOVETYPE_NOCLIP); + + /* I have no idea what I'm doing, seems to be an offset? wtf? */ + makevectors(vectoangles(origin - (origin + m_vecDirection))); + new.SetVelocity(v_forward * m_flSpeed); + new.ScheduleThink(Destroy, 1.0); + } + + if (m_iValue) + StartTimer(); } diff --git a/src/server/gamerules.qc b/src/server/gamerules.qc index 918bc0b..1a9c3a0 100644 --- a/src/server/gamerules.qc +++ b/src/server/gamerules.qc @@ -58,6 +58,36 @@ HLGameRules::LevelDecodeParms(NSClientPlayer pp) pl.rpg_mag = parm29; pl.satchel_chg = parm30;*/ + pl.ammo_battery = parm12; /* beamgun */ + pl.ammo_chem = parm13; /* chemicalgun */ + pl.ammo_rocket = parm14; /* dml / grenades */ + pl.ammo_gauss = parm15; /* gauspistol */ + pl.ammo_minigun = parm16; /* minigun */ + pl.ammo_buckshot = parm17; /* shotgun */ + + pl.fist_mode = parm18; /* knife/fists */ + pl.gauss_mode = parm19; + pl.shotgun_shells = parm20; + pl.shotgun_spread = parm21; + + pl.dml_launch = parm22; /* when fired, when targeted */ + pl.dml_flightpath = parm23; /* guided, homing, spiral */ + pl.dml_detonate = parm24; /* on impact, in proximity, timed, when tripped */ + pl.dml_payload = parm25; /* explosive, cluster */ + pl.chem_acid = parm26; + pl.chem_neutral = parm27; + pl.chem_base = parm28; + pl.chem_pressure = parm29; + + pl.beam_range = parm30; /* TOUCH TAZER, SHORT TAZER, MEDIUM BEAM, LONG BEAM */ + pl.beam_poweracc = parm31; /* LOW HIGHEST, MEDIUM HIGH, HIGH MEDIUM, HIGHEST LOW */ + pl.beam_lightning = parm32; /* BEAM, CHAIN, BALL */ + pl.gren_detonate = parm33; /* when tripped (tripmine = parm24;, timed, on impact */ + pl.gren_payload = parm34; /* cluster, explosive */ + + pl.menu_active = parm35; + pl.dml_state = parm36; + if (pl.flags & FL_CROUCHING) { setsize(pl, VEC_CHULL_MIN, VEC_CHULL_MAX); } else { @@ -81,25 +111,36 @@ HLGameRules::LevelChangeParms(NSClientPlayer pp) parm64 = pl.flags; parm10 = pl.g_items; parm11 = pl.activeweapon; - /*parm12 = pl.ammo_9mm; - parm13 = pl.ammo_357; - parm14 = pl.ammo_buckshot; - parm15 = pl.ammo_m203_grenade; - parm16 = pl.ammo_bolt; - parm17 = pl.ammo_rocket; - parm18 = pl.ammo_uranium; - parm19 = pl.ammo_handgrenade; - parm20 = pl.ammo_satchel; - parm21 = pl.ammo_tripmine; - parm22 = pl.ammo_snark; - parm23 = pl.ammo_hornet; - parm24 = pl.glock_mag; - parm25 = pl.mp5_mag; - parm26 = pl.python_mag; - parm27 = pl.shotgun_mag; - parm28 = pl.crossbow_mag; - parm29 = pl.rpg_mag; - parm30 = pl.satchel_chg;*/ + + parm12 = pl.ammo_battery; /* beamgun */ + parm13 = pl.ammo_chem; /* chemicalgun */ + parm14 = pl.ammo_rocket; /* dml / grenades */ + parm15 = pl.ammo_gauss; /* gauspistol */ + parm16 = pl.ammo_minigun; /* minigun */ + parm17 = pl.ammo_buckshot; /* shotgun */ + + parm18 = pl.fist_mode; /* knife/fists */ + parm19 = pl.gauss_mode; + parm20 = pl.shotgun_shells; + parm21 = pl.shotgun_spread; + + parm22 = pl.dml_launch; /* when fired, when targeted */ + parm23 = pl.dml_flightpath; /* guided, homing, spiral */ + parm24 = pl.dml_detonate; /* on impact, in proximity, timed, when tripped */ + parm25 = pl.dml_payload; /* explosive, cluster */ + parm26 = pl.chem_acid; + parm27 = pl.chem_neutral; + parm28 = pl.chem_base; + parm29 = pl.chem_pressure; + + parm30 = pl.beam_range; /* TOUCH TAZER, SHORT TAZER, MEDIUM BEAM, LONG BEAM */ + parm31 = pl.beam_poweracc; /* LOW HIGHEST, MEDIUM HIGH, HIGH MEDIUM, HIGHEST LOW */ + parm32 = pl.beam_lightning; /* BEAM, CHAIN, BALL */ + parm33 = pl.gren_detonate; /* when tripped (tripmine;, timed, on impact */ + parm34 = pl.gren_payload; /* cluster, explosive */ + + parm35 = pl.menu_active; + parm36 = pl.dml_state; } void diff --git a/src/server/progs.src b/src/server/progs.src index f0da2d8..4a8f598 100644 --- a/src/server/progs.src +++ b/src/server/progs.src @@ -23,36 +23,11 @@ gunman_cycler.qc hologram_damage.qc decore.qc -decore_asteroid.qc -decore_baboon.qc -decore_bodygib.qc -decore_cactus.qc -decore_cam.qc -decore_camflare.qc -decore_eagle.qc -decore_explodable.qc -decore_foot.qc -decore_goldskull.qc -decore_gutspile.qc -decore_hatgib.qc -decore_ice.qc -decore_icebeak.qc -decore_labstuff.qc -decore_mushroom.qc -decore_mushroom2.qc -decore_nest.qc -decore_pipes.qc -decore_prickle.qc -decore_pteradon.qc -decore_sittingtubemortar.qc -decore_sack.qc -decore_swampplants.qc -decore_torchflame.qc -decore_torch.qc entity_spritegod.qc sphere_explosion.qc player_giveitems.qc +button_aiwallplug.qc ../../../valve/src/server/player.qc @@ -64,6 +39,7 @@ gamerules.qc gamerules_singleplayer.qc gamerules_multiplayer.qc + ../../../valve/src/server/server.qc ../../../valve/src/server/damage.qc ../../../valve/src/server/flashlight.qc diff --git a/src/shared/player.qc b/src/shared/player.qc index d638671..b851af4 100644 --- a/src/shared/player.qc +++ b/src/shared/player.qc @@ -80,6 +80,8 @@ class player:NSClientPlayer #ifdef SERVER virtual void(void) EvaluateEntity; virtual float(entity, float) SendEntity; + virtual void Save(float); + virtual void Restore(string,string); #endif }; @@ -362,6 +364,154 @@ player::PredictPostFrame(void) } #else +void +player::Save(float handle) +{ + super::Save(handle); + + SaveInt(handle, "anim_top", anim_top); + SaveFloat(handle, "anim_top_time", anim_top_time); + SaveFloat(handle, "anim_top_delay", anim_top_delay); + SaveInt(handle, "anim_bottom", anim_bottom); + SaveFloat(handle, "anim_bottom_time", anim_bottom_time); + + SaveInt(handle, "ammo_battery", ammo_battery); /* beamgun */ + SaveInt(handle, "ammo_chem", ammo_chem); /* chemicalgun */ + SaveInt(handle, "ammo_rocket", ammo_rocket); /* dml / grenades */ + SaveInt(handle, "ammo_gauss", ammo_gauss); /* gauspistol */ + SaveInt(handle, "ammo_minigun", ammo_minigun); /* minigun */ + SaveInt(handle, "ammo_buckshot", ammo_buckshot); /* shotgun */ + + SaveInt(handle, "fist_mode", fist_mode); /* knife/fists */ + SaveInt(handle, "gauss_mode", gauss_mode); + SaveInt(handle, "shotgun_shells", shotgun_shells); + SaveInt(handle, "shotgun_spread", shotgun_spread); + + SaveInt(handle, "dml_launch", dml_launch); /* when fired, when targeted */ + SaveInt(handle, "dml_flightpath", dml_flightpath); /* guided, homing, spiral */ + SaveInt(handle, "dml_detonate", dml_detonate); /* on impact, in proximity, timed, when tripped */ + SaveInt(handle, "dml_payload", dml_payload); /* explosive, cluster */ + SaveInt(handle, "chem_acid", chem_acid); + SaveInt(handle, "chem_neutral", chem_neutral); + SaveInt(handle, "chem_base", chem_base); + SaveInt(handle, "chem_pressure", chem_pressure); + + SaveInt(handle, "beam_range", beam_range); /* TOUCH TAZER, SHORT TAZER, MEDIUM BEAM, LONG BEAM */ + SaveInt(handle, "beam_poweracc", beam_poweracc); /* LOW HIGHEST, MEDIUM HIGH, HIGH MEDIUM, HIGHEST LOW */ + SaveInt(handle, "beam_lightning", beam_lightning); /* BEAM, CHAIN, BALL */ + SaveInt(handle, "gren_detonate", gren_detonate); /* when tripped (tripmine);, timed, on impact */ + SaveInt(handle, "gren_payload", gren_payload); /* cluster, explosive */ + + SaveInt(handle, "menu_active", menu_active); + SaveInt(handle, "dml_state", dml_state); +} + +void +player::Restore(string strKey, string strValue) +{ + switch (strKey) { + case "anim_top": + anim_top = ReadInt(strValue); + break; + case "anim_top_time": + anim_top_time = ReadFloat(strValue); + break; + case "anim_top_delay": + anim_top_delay = ReadFloat(strValue); + break; + case "anim_bottom": + anim_bottom = ReadInt(strValue); + break; + case "anim_bottom_time": + anim_bottom_time = ReadFloat(strValue); + break; + + /* AMMO 1 */ + case "ammo_battery": + ammo_battery = ReadInt(strValue); /* beamgun */ + break; + case "ammo_chem": + ammo_chem = ReadInt(strValue); /* chemicalgun */ + break; + case "ammo_rocket": + ammo_rocket = ReadInt(strValue); /* dml / grenades */ + break; + case "ammo_gauss": + ammo_gauss = ReadInt(strValue); /* gauspistol */ + break; + case "ammo_minigun": + ammo_minigun = ReadInt(strValue); /* minigun */ + break; + case "ammo_buckshot": + ammo_buckshot = ReadInt(strValue); /* shotgun */ + break; + + case "fist_mode": + fist_mode = ReadInt(strValue); /* knife/fists */ + break; + case "gauss_mode": + gauss_mode = ReadInt(strValue); + break; + case "shotgun_shells": + shotgun_shells = ReadInt(strValue); + break; + case "shotgun_spread": + shotgun_spread = ReadInt(strValue); + break; + + case "dml_launch": + dml_launch = ReadInt(strValue); /* when fired, when targeted */ + break; + case "dml_flightpath": + dml_flightpath = ReadInt(strValue); /* guided, homing, spiral */ + break; + case "dml_detonate": + dml_detonate = ReadInt(strValue); /* on impact, in proximity, timed, when tripped */ + break; + case "dml_payload": + dml_payload = ReadInt(strValue); /* explosive, cluster */ + break; + case "chem_acid": + chem_acid = ReadInt(strValue); + break; + case "chem_neutral": + chem_neutral = ReadInt(strValue); + break; + case "chem_base": + chem_base = ReadInt(strValue); + break; + case "chem_pressure": + chem_pressure = ReadInt(strValue); + break; + + case "beam_range": + beam_range = ReadInt(strValue); /* TOUCH TAZER, SHORT TAZER, MEDIUM BEAM, LONG BEAM */ + break; + case "beam_poweracc": + beam_poweracc = ReadInt(strValue); /* LOW HIGHEST, MEDIUM HIGH, HIGH MEDIUM, HIGHEST LOW */ + break; + case "beam_lightning": + beam_lightning = ReadInt(strValue); /* BEAM, CHAIN, BALL */ + break; + case "gren_detonate": + gren_detonate = ReadInt(strValue); /* when tripped (tripmine = ReadInt(strValue);, timed, on impact */ + break; + case "gren_payload": + gren_payload = ReadInt(strValue); /* cluster, explosive */ + break; + + case "menu_active": + menu_active = ReadInt(strValue); + break; + case "dml_state": + dml_state = ReadInt(strValue); + break; + + default: + super::Restore(strKey, strValue); + } +} + void player::EvaluateEntity(void) { diff --git a/src/shared/w_aicore.qc b/src/shared/w_aicore.qc index 3eeb684..abe5c56 100644 --- a/src/shared/w_aicore.qc +++ b/src/shared/w_aicore.qc @@ -44,10 +44,22 @@ w_aicore_primary(player pl) } src = Weapons_GetCameraPos(pl); + makevectors(pl.v_angle); -#ifdef CLIENT - //Weapons_ViewAnimation(pl, GP_FIRESINGLE); + traceline(src, src + v_forward * 96, MOVE_NORMAL, pl); + + if (trace_fraction < 1.0f) { + if (trace_ent.classname == "button_aiwallplug") { +#ifdef SERVER + NSEntity wallPlug = (NSEntity)trace_ent; + wallPlug.Trigger(pl, TRIG_TOGGLE); #endif + Weapons_ViewAnimation(pl, AIC_PLUGIN); + pl.w_attack_next = 5.0; + pl.w_idle_next = 10.0f; + return; + } + } pl.w_attack_next = 0.15f; pl.w_idle_next = 2.5f; @@ -142,12 +154,3 @@ weapon_t w_aicore = .type = gunman_wpntype_close, .hudpic = w_aicore_hudpic }; - -/* entity definitions for pickups */ -#ifdef SERVER -void -weapon_aicore(void) -{ - Weapons_InitItem(WEAPON_AICORE); -} -#endif diff --git a/src/shared/w_beamgun.qc b/src/shared/w_beamgun.qc index bc23bcd..0677eda 100644 --- a/src/shared/w_beamgun.qc +++ b/src/shared/w_beamgun.qc @@ -274,15 +274,6 @@ weapon_t w_beamgun = .hudpic = w_beamgun_hudpic }; -/* entity definitions for pickups */ -#ifdef SERVER -void -weapon_beamgun(void) -{ - Weapons_InitItem(WEAPON_BEAMGUN); -} -#endif - #ifdef CLIENT int w_beamgun_hudforward(player pl) diff --git a/src/shared/w_chemicalgun.qc b/src/shared/w_chemicalgun.qc index b8d0003..e2e19b9 100644 --- a/src/shared/w_chemicalgun.qc +++ b/src/shared/w_chemicalgun.qc @@ -375,15 +375,6 @@ weapon_t w_chemicalgun = .hudpic = w_chemicalgun_hudpic }; -/* entity definitions for pickups */ -#ifdef SERVER -void -weapon_SPchemicalgun(void) -{ - Weapons_InitItem(WEAPON_CHEMICALGUN); -} -#endif - #ifdef CLIENT int w_chemgun_hudforward(player pl) diff --git a/src/shared/w_dml.qc b/src/shared/w_dml.qc index 80bb269..83e9c1e 100644 --- a/src/shared/w_dml.qc +++ b/src/shared/w_dml.qc @@ -425,15 +425,6 @@ weapon_t w_dml = .hudpic = w_dml_hudpic }; -/* entity definitions for pickups */ -#ifdef SERVER -void -weapon_dml(void) -{ - Weapons_InitItem(WEAPON_DML); -} -#endif - #ifdef CLIENT int w_dml_hudforward(player pl) diff --git a/src/shared/w_fists.qc b/src/shared/w_fists.qc index a1acbc9..3cecf81 100644 --- a/src/shared/w_fists.qc +++ b/src/shared/w_fists.qc @@ -315,13 +315,4 @@ weapon_t w_fists = .aimanim = w_fists_aimanim, .type = gunman_wpntype_close, .hudpic = w_fists_hudpic -}; - -/* entity definitions for pickups */ -#ifdef SERVER -void -weapon_fists(void) -{ - Weapons_InitItem(WEAPON_FISTS); -} -#endif \ No newline at end of file +}; \ No newline at end of file diff --git a/src/shared/w_gausspistol.qc b/src/shared/w_gausspistol.qc index 4ac5336..5b2e166 100644 --- a/src/shared/w_gausspistol.qc +++ b/src/shared/w_gausspistol.qc @@ -439,15 +439,6 @@ weapon_t w_gausspistol = .hudpic = w_gausspistol_hudpic }; -/* entity definitions for pickups */ -#ifdef SERVER -void -weapon_gausspistol(void) -{ - Weapons_InitItem(WEAPON_GAUSSPISTOL); -} -#endif - #ifdef CLIENT int w_gausspistol_hudforward(player pl) diff --git a/src/shared/w_grenade.qc b/src/shared/w_grenade.qc index 9f8f7e7..45ced66 100644 --- a/src/shared/w_grenade.qc +++ b/src/shared/w_grenade.qc @@ -238,15 +238,6 @@ weapon_t w_grenade = .hudpic = w_grenade_hudpic }; -/* entity definitions for pickups */ -#ifdef SERVER -void -weapon_grenade(void) -{ - Weapons_InitItem(WEAPON_GRENADE); -} -#endif - #ifdef CLIENT int w_grenade_hudforward(player pl) diff --git a/src/shared/w_minigun.qc b/src/shared/w_minigun.qc index 6579580..62cf651 100644 --- a/src/shared/w_minigun.qc +++ b/src/shared/w_minigun.qc @@ -267,12 +267,3 @@ weapon_t w_minigun = .type = gunman_wpntype_ranged, .hudpic = w_minigun_hudpic }; - -/* entity definitions for pickups */ -#ifdef SERVER -void -weapon_minigun(void) -{ - Weapons_InitItem(WEAPON_MINIGUN); -} -#endif diff --git a/src/shared/w_shotgun.qc b/src/shared/w_shotgun.qc index be10cba..af95ed3 100644 --- a/src/shared/w_shotgun.qc +++ b/src/shared/w_shotgun.qc @@ -340,15 +340,6 @@ weapon_t w_shotgun = .hudpic = w_shotgun_hudpic }; -/* entity definitions for pickups */ -#ifdef SERVER -void -weapon_shotgun(void) -{ - Weapons_InitItem(WEAPON_SHOTGUN); -} -#endif - #ifdef CLIENT int w_shotgun_hudforward(player pl) diff --git a/zpak001.pk3dir/def/ammo.def b/zpak001.pk3dir/def/ammo.def new file mode 100644 index 0000000..26bb97f --- /dev/null +++ b/zpak001.pk3dir/def/ammo.def @@ -0,0 +1,7 @@ +include "ammo/beamgunclip.def" +include "ammo/buckshot.def" +include "ammo/dmlclip.def" +include "ammo/dmlsingle.def" +include "ammo/gaussclip.def" +include "ammo/minigunclip.def" +include "ammo/chemical.def" diff --git a/zpak001.pk3dir/def/ammo/beamgunclip.def b/zpak001.pk3dir/def/ammo/beamgunclip.def new file mode 100644 index 0000000..74d640a --- /dev/null +++ b/zpak001.pk3dir/def/ammo/beamgunclip.def @@ -0,0 +1,14 @@ +entityDef ammo_beamgunclip +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "AI Core" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/beamgunammo.mdl" + "inv_item" "$WEAPON_AICORE" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/ammo/buckshot.def b/zpak001.pk3dir/def/ammo/buckshot.def new file mode 100644 index 0000000..a2cc22f --- /dev/null +++ b/zpak001.pk3dir/def/ammo/buckshot.def @@ -0,0 +1,14 @@ +entityDef ammo_buckshot +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "AI Core" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/shotgunammo.mdl" + "inv_item" "$WEAPON_AICORE" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/ammo/chemical.def b/zpak001.pk3dir/def/ammo/chemical.def new file mode 100644 index 0000000..af72a95 --- /dev/null +++ b/zpak001.pk3dir/def/ammo/chemical.def @@ -0,0 +1,14 @@ +entityDef ammo_chemical +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "AI Core" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/chem_ammo.mdl" + "inv_item" "$WEAPON_AICORE" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/ammo/dmlclip.def b/zpak001.pk3dir/def/ammo/dmlclip.def new file mode 100644 index 0000000..5bf6dbf --- /dev/null +++ b/zpak001.pk3dir/def/ammo/dmlclip.def @@ -0,0 +1,14 @@ +entityDef ammo_dmlclip +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "AI Core" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/dmlammo.mdl" + "inv_item" "$WEAPON_AICORE" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/ammo/dmlsingle.def b/zpak001.pk3dir/def/ammo/dmlsingle.def new file mode 100644 index 0000000..40dc91a --- /dev/null +++ b/zpak001.pk3dir/def/ammo/dmlsingle.def @@ -0,0 +1,14 @@ +entityDef ammo_dmlsingle +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "AI Core" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/dmlrocket.mdl" + "inv_item" "$WEAPON_AICORE" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/ammo/gaussclip.def b/zpak001.pk3dir/def/ammo/gaussclip.def new file mode 100644 index 0000000..f8dfa2c --- /dev/null +++ b/zpak001.pk3dir/def/ammo/gaussclip.def @@ -0,0 +1,14 @@ +entityDef ammo_gaussclip +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "AI Core" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/guassammo.mdl" + "inv_item" "$WEAPON_AICORE" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/ammo/minigunclip.def b/zpak001.pk3dir/def/ammo/minigunclip.def new file mode 100644 index 0000000..3e2e6ef --- /dev/null +++ b/zpak001.pk3dir/def/ammo/minigunclip.def @@ -0,0 +1,19 @@ +entityDef ammo_minigunClip +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "AI Core" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/mechammo.mdl" + "inv_item" "$WEAPON_AICORE" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} + +entityDef ammo_mechgunClip +{ + "spawnclass" "ammo_minigunClip" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore.def b/zpak001.pk3dir/def/decore.def new file mode 100644 index 0000000..fe683fe --- /dev/null +++ b/zpak001.pk3dir/def/decore.def @@ -0,0 +1,31 @@ +include "decore/aicore.def" +include "decore/bodygib.def" +include "decore/butterflyflock.def" +include "decore/foot.def" +include "decore/cam.def" +include "decore/camflare.def" +include "decore/corpse.def" +include "decore/eagle.def" +include "decore/goldskull.def" +include "decore/gutspile.def" +include "decore/hatgib.def" +include "decore/ice.def" +include "decore/icebeak.def" +include "decore/labstuff.def" +include "decore/mushroom.def" +include "decore/mushroom2.def" +include "decore/nest.def" +include "decore/pipes.def" +include "decore/prickle.def" +include "decore/pteradon.def" +include "decore/sack.def" +include "decore/scripted_boulder.def" +include "decore/sittingtubemortar.def" +include "decore/spacedebris.def" +include "decore/swampplants.def" +include "decore/torch.def" +include "decore/torchflame.def" +include "decore/baboon.def" +include "decore/asteroid.def" +include "decore/cactus.def" +include "decore/explodable.def" diff --git a/zpak001.pk3dir/def/decore/aicore.def b/zpak001.pk3dir/def/decore/aicore.def new file mode 100644 index 0000000..5127433 --- /dev/null +++ b/zpak001.pk3dir/def/decore/aicore.def @@ -0,0 +1,9 @@ +entityDef decore_aicore +{ + "spawnclass" "RWDecore" + "model" "models/w_aicore.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 40" + "rotate" "1" + +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/asteroid.def b/zpak001.pk3dir/def/decore/asteroid.def new file mode 100644 index 0000000..d4602d6 --- /dev/null +++ b/zpak001.pk3dir/def/decore/asteroid.def @@ -0,0 +1,18 @@ +entityDef decore_asteroid +{ + "spawnclass" "RWDecore" + "model" "models/rockspin.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 40" + "rotate" "1" + + when "asteroidsize" equals "1" + { + "body" "2" + } + + when "asteroidsize" equals "2" + { + "body" "3" + } +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/baboon.def b/zpak001.pk3dir/def/decore/baboon.def new file mode 100644 index 0000000..b94888c --- /dev/null +++ b/zpak001.pk3dir/def/decore/baboon.def @@ -0,0 +1,7 @@ +entityDef decore_baboon +{ + "spawnclass" "cycler_sprite" + "model" "models/baboon.mdl" + "mins" "-16 -16 -32" + "maxs" "16 16 16" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/bodygib.def b/zpak001.pk3dir/def/decore/bodygib.def new file mode 100644 index 0000000..0f35819 --- /dev/null +++ b/zpak001.pk3dir/def/decore/bodygib.def @@ -0,0 +1,8 @@ +entityDef decore_bodygib +{ + "spawnclass" "RWDecore" + "model" "models/bodygib.mdl" + "mins" "-32 -32 0" + "maxs" "32 32 12" + "droptofloor" "1" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/butterflyflock.def b/zpak001.pk3dir/def/decore/butterflyflock.def new file mode 100644 index 0000000..9c4ae75 --- /dev/null +++ b/zpak001.pk3dir/def/decore/butterflyflock.def @@ -0,0 +1,7 @@ +entityDef decore_butterflyflock +{ + "spawnclass" "RWDecore" + "model" "models/butterfly.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 16" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/cactus.def b/zpak001.pk3dir/def/decore/cactus.def new file mode 100644 index 0000000..86e36da --- /dev/null +++ b/zpak001.pk3dir/def/decore/cactus.def @@ -0,0 +1,11 @@ +entityDef decore_cactus +{ + "spawnclass" "RWDecore" + "model" "models/cactus.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 80" + "droptofloor" "1" + "solid" "1" + "damage" "1" + "dmgtime" "1" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/cam.def b/zpak001.pk3dir/def/decore/cam.def new file mode 100644 index 0000000..37d83ca --- /dev/null +++ b/zpak001.pk3dir/def/decore/cam.def @@ -0,0 +1,7 @@ +entityDef decore_cam +{ + "spawnclass" "RWDecore" + "model" "models/camera.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 16" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/camflare.def b/zpak001.pk3dir/def/decore/camflare.def new file mode 100644 index 0000000..3c9c5a4 --- /dev/null +++ b/zpak001.pk3dir/def/decore/camflare.def @@ -0,0 +1,7 @@ +entityDef decore_camflare +{ + "spawnclass" "RWDecore" + "model" "models/cameracone.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 72" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/corpse.def b/zpak001.pk3dir/def/decore/corpse.def new file mode 100644 index 0000000..fc1cc96 --- /dev/null +++ b/zpak001.pk3dir/def/decore/corpse.def @@ -0,0 +1,7 @@ +entityDef decore_corpse +{ + "spawnclass" "RWDecore" + "model" "models/error.vvm" + "mins" "-16 -16 0" + "maxs" "16 16 16" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/eagle.def b/zpak001.pk3dir/def/decore/eagle.def new file mode 100644 index 0000000..d7dba58 --- /dev/null +++ b/zpak001.pk3dir/def/decore/eagle.def @@ -0,0 +1,7 @@ +entityDef decore_eagle +{ + "spawnclass" "RWDecore" + "model" "models/eagle.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 32" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/explodable.def b/zpak001.pk3dir/def/decore/explodable.def new file mode 100644 index 0000000..1efcca0 --- /dev/null +++ b/zpak001.pk3dir/def/decore/explodable.def @@ -0,0 +1,7 @@ +entityDef decore_explodable +{ + "spawnclass" "RWDecore" + "model" "models/dropship.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 72" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/foot.def b/zpak001.pk3dir/def/decore/foot.def new file mode 100644 index 0000000..ee815c3 --- /dev/null +++ b/zpak001.pk3dir/def/decore/foot.def @@ -0,0 +1,7 @@ +entityDef decore_foot +{ + "spawnclass" "RWDecore" + "model" "models/renesaurfoot.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 72" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/goldskull.def b/zpak001.pk3dir/def/decore/goldskull.def new file mode 100644 index 0000000..5b27601 --- /dev/null +++ b/zpak001.pk3dir/def/decore/goldskull.def @@ -0,0 +1,7 @@ +entityDef decore_goldskull +{ + "spawnclass" "RWDecore" + "model" "models/goldskull.mdl" + "mins" "-10 -10 0" + "maxs" "10 10 24" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/gutspile.def b/zpak001.pk3dir/def/decore/gutspile.def new file mode 100644 index 0000000..6113fa3 --- /dev/null +++ b/zpak001.pk3dir/def/decore/gutspile.def @@ -0,0 +1,8 @@ +entityDef decore_gutspile +{ + "spawnclass" "RWDecore" + "model" "models/gutspile.mdl" + "mins" "-32 -32 0" + "maxs" "32 32 32" + "droptofloor" "1" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/hatgib.def b/zpak001.pk3dir/def/decore/hatgib.def new file mode 100644 index 0000000..b13cc09 --- /dev/null +++ b/zpak001.pk3dir/def/decore/hatgib.def @@ -0,0 +1,8 @@ +entityDef decore_hatgib +{ + "spawnclass" "RWDecore" + "model" "models/hatgib.mdl" + "mins" "-10 -10 0" + "maxs" "10 10 12" + "droptofloor" "1" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/ice.def b/zpak001.pk3dir/def/decore/ice.def new file mode 100644 index 0000000..38550ea --- /dev/null +++ b/zpak001.pk3dir/def/decore/ice.def @@ -0,0 +1,10 @@ +entityDef decore_ice +{ + "spawnclass" "RWDecore" + "model" "models/ice.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 64" + "droptofloor" "1" + "solid" "1" + "rendermode" "$RM_ADDITIVE" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/icebeak.def b/zpak001.pk3dir/def/decore/icebeak.def new file mode 100644 index 0000000..9fbd39f --- /dev/null +++ b/zpak001.pk3dir/def/decore/icebeak.def @@ -0,0 +1,9 @@ +entityDef decore_icebeak +{ + "spawnclass" "RWDecore" + "model" "models/icebeak.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 40" + "droptofloor" "1" + "solid" "1" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/labstuff.def b/zpak001.pk3dir/def/decore/labstuff.def new file mode 100644 index 0000000..ef9a29d --- /dev/null +++ b/zpak001.pk3dir/def/decore/labstuff.def @@ -0,0 +1,7 @@ +entityDef decore_labstuff +{ + "spawnclass" "RWDecore" + "model" "models/labstuff.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 40" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/mushroom.def b/zpak001.pk3dir/def/decore/mushroom.def new file mode 100644 index 0000000..a90ddf6 --- /dev/null +++ b/zpak001.pk3dir/def/decore/mushroom.def @@ -0,0 +1,8 @@ +entityDef decore_mushroom +{ + "spawnclass" "RWDecore" + "model" "models/mushroom.mdl" + "mins" "-16 -16 -16" + "maxs" "16 16 16" + "solid" "1" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/mushroom2.def b/zpak001.pk3dir/def/decore/mushroom2.def new file mode 100644 index 0000000..aa6128a --- /dev/null +++ b/zpak001.pk3dir/def/decore/mushroom2.def @@ -0,0 +1,8 @@ +entityDef decore_mushroom2 +{ + "spawnclass" "RWDecore" + "model" "models/mushroom2.mdl" + "mins" "-8 -8 -16" + "maxs" "8 8 16" + "solid" "1" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/nest.def b/zpak001.pk3dir/def/decore/nest.def new file mode 100644 index 0000000..383309b --- /dev/null +++ b/zpak001.pk3dir/def/decore/nest.def @@ -0,0 +1,8 @@ +entityDef decore_nest +{ + "spawnclass" "RWDecore" + "model" "models/ornest.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 16" + "droptofloor" "1" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/pipes.def b/zpak001.pk3dir/def/decore/pipes.def new file mode 100644 index 0000000..f2133a4 --- /dev/null +++ b/zpak001.pk3dir/def/decore/pipes.def @@ -0,0 +1,8 @@ +entityDef decore_pipes +{ + "spawnclass" "RWDecore" + "model" "models/pipes.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 16" + "solid" "1" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/prickle.def b/zpak001.pk3dir/def/decore/prickle.def new file mode 100644 index 0000000..973fe7e --- /dev/null +++ b/zpak001.pk3dir/def/decore/prickle.def @@ -0,0 +1,8 @@ +entityDef decore_prickle +{ + "spawnclass" "RWDecore" + "model" "models/prickle.mdl" + "mins" "-8 -8 0" + "maxs" "8 8 8" + "droptofloor" "1" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/pteradon.def b/zpak001.pk3dir/def/decore/pteradon.def new file mode 100644 index 0000000..129df25 --- /dev/null +++ b/zpak001.pk3dir/def/decore/pteradon.def @@ -0,0 +1,7 @@ +entityDef decore_pteradon +{ + "spawnclass" "RWDecore" + "model" "models/pteradon2.mdl" + "mins" "-32 -32 -16" + "maxs" "32 32 16" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/sack.def b/zpak001.pk3dir/def/decore/sack.def new file mode 100644 index 0000000..a746dd2 --- /dev/null +++ b/zpak001.pk3dir/def/decore/sack.def @@ -0,0 +1,7 @@ +entityDef decore_sack +{ + "spawnclass" "RWDecore" + "model" "models/sack.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 64" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/scripted_boulder.def b/zpak001.pk3dir/def/decore/scripted_boulder.def new file mode 100644 index 0000000..baa37a5 --- /dev/null +++ b/zpak001.pk3dir/def/decore/scripted_boulder.def @@ -0,0 +1,8 @@ +entityDef decore_scripted_boulder +{ + "spawnclass" "RWDecore" + "model" "models/boulder.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 16" + "solid" "1" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/sittingtubemortar.def b/zpak001.pk3dir/def/decore/sittingtubemortar.def new file mode 100644 index 0000000..aa5944a --- /dev/null +++ b/zpak001.pk3dir/def/decore/sittingtubemortar.def @@ -0,0 +1,10 @@ +entityDef decore_sittingtubemortar +{ + "spawnclass" "RWDecore" + "model" "models/tubemortar.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 48" + "droptofloor" "1" + "solid" "1" + "frame" "1" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/spacedebris.def b/zpak001.pk3dir/def/decore/spacedebris.def new file mode 100644 index 0000000..403a1c4 --- /dev/null +++ b/zpak001.pk3dir/def/decore/spacedebris.def @@ -0,0 +1,8 @@ +entityDef decore_spacedebris +{ + "spawnclass" "RWDecore" + "model" "models/spacedebris.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 16" + "solid" "1" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/swampplants.def b/zpak001.pk3dir/def/decore/swampplants.def new file mode 100644 index 0000000..119c472 --- /dev/null +++ b/zpak001.pk3dir/def/decore/swampplants.def @@ -0,0 +1,7 @@ +entityDef decore_swampplants +{ + "spawnclass" "RWDecore" + "model" "models/swampstuff.mdl" + "mins" "-16 -16 0" + "maxs" "16 16 48" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/torch.def b/zpak001.pk3dir/def/decore/torch.def new file mode 100644 index 0000000..376a66d --- /dev/null +++ b/zpak001.pk3dir/def/decore/torch.def @@ -0,0 +1,7 @@ +entityDef decore_torch +{ + "spawnclass" "RWDecore" + "model" "models/torch.mdl" + "mins" "-8 -8 -8" + "maxs" "8 8 16" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/decore/torchflame.def b/zpak001.pk3dir/def/decore/torchflame.def new file mode 100644 index 0000000..d8d42a1 --- /dev/null +++ b/zpak001.pk3dir/def/decore/torchflame.def @@ -0,0 +1,12 @@ +entityDef decore_torchflame +{ + "spawnclass" "env_sprite" + "model" "sprites/flames.spr" + "mins" "-4 -4 -8" + "maxs" "4 4 16" + "maxframe" "22" + "framerate" "10" + "rendermode" "$RM_ADDITIVE" + "rendercolor" "255 255 255" + "renderamt" "255" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/items.def b/zpak001.pk3dir/def/items.def new file mode 100644 index 0000000..af0e0c9 --- /dev/null +++ b/zpak001.pk3dir/def/items.def @@ -0,0 +1,3 @@ +include "items/armor.def" +include "items/gascan.def" +include "items/healthkit.def" diff --git a/zpak001.pk3dir/def/items/armor.def b/zpak001.pk3dir/def/items/armor.def new file mode 100644 index 0000000..7ac6d67 --- /dev/null +++ b/zpak001.pk3dir/def/items/armor.def @@ -0,0 +1,14 @@ +entityDef item_armor +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "AI Core" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_armor.mdl" + "inv_item" "$WEAPON_AICORE" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/items/gascan.def b/zpak001.pk3dir/def/items/gascan.def new file mode 100644 index 0000000..a5da227 --- /dev/null +++ b/zpak001.pk3dir/def/items/gascan.def @@ -0,0 +1,14 @@ +entityDef item_gascan +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "AI Core" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/gastank.mdl" + "inv_item" "$WEAPON_AICORE" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/items/healthkit.def b/zpak001.pk3dir/def/items/healthkit.def new file mode 100644 index 0000000..3bbf951 --- /dev/null +++ b/zpak001.pk3dir/def/items/healthkit.def @@ -0,0 +1,14 @@ +entityDef item_healthkit +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "AI Core" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_medkit.mdl" + "inv_item" "$WEAPON_AICORE" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/monsters.def b/zpak001.pk3dir/def/monsters.def index 21aa158..4d351ee 100644 --- a/zpak001.pk3dir/def/monsters.def +++ b/zpak001.pk3dir/def/monsters.def @@ -1,3 +1,4 @@ +include "monsters/beak.def" include "monsters/cricket.def" include "monsters/critter.def" include "monsters/darttrap.def" @@ -11,7 +12,6 @@ include "monsters/human_bandit.def" include "monsters/human_chopper.def" include "monsters/human_demoman.def" include "monsters/human_gunman.def" -include "monsters/human_scientist.def" include "monsters/human_unarmed.def" include "monsters/largescorpion.def" include "monsters/manta.def" diff --git a/zpak001.pk3dir/def/monsters/beak.def b/zpak001.pk3dir/def/monsters/beak.def new file mode 100644 index 0000000..096531a --- /dev/null +++ b/zpak001.pk3dir/def/monsters/beak.def @@ -0,0 +1,16 @@ +entityDef monster_beak +{ + "spawnclass" "NSMonster" + "model" "models/beak.mdl" + "netname" "Beak" + "health" "skill:beak_health" + "mins" "-16 -16 0" + "maxs" "16 16 72" + "eye_height" "64" + "team" "0" + "propdata" "actor_alien" + "team" "$ALLIANCE_ALIEN" + + "speed_walk" "50" + "speed_run" "200" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/monsters/cricket.def b/zpak001.pk3dir/def/monsters/cricket.def index 2170100..3ee06dc 100644 --- a/zpak001.pk3dir/def/monsters/cricket.def +++ b/zpak001.pk3dir/def/monsters/cricket.def @@ -9,7 +9,7 @@ entityDef monster_cricket "eye_height" "64" "team" "0" "propdata" "actor_alien" - - "speed_walk" "50" + "team" "$ALLIANCE_NEUTRAL" + "speed_walk" "50" "speed_run" "200" } \ No newline at end of file diff --git a/zpak001.pk3dir/def/monsters/critter.def b/zpak001.pk3dir/def/monsters/critter.def index 4eb5df4..c0046af 100644 --- a/zpak001.pk3dir/def/monsters/critter.def +++ b/zpak001.pk3dir/def/monsters/critter.def @@ -9,6 +9,7 @@ entityDef monster_critter "eye_height" "64" "team" "0" "propdata" "actor_alien" + "team" "$ALLIANCE_NEUTRAL" "speed_walk" "50" "speed_run" "200" diff --git a/zpak001.pk3dir/def/monsters/darttrap.def b/zpak001.pk3dir/def/monsters/darttrap.def index f079216..050db58 100644 --- a/zpak001.pk3dir/def/monsters/darttrap.def +++ b/zpak001.pk3dir/def/monsters/darttrap.def @@ -1,7 +1,7 @@ entityDef monster_darttrap { - "spawnclass" "NSMonster" - "model" "models/null.mdl" + "spawnclass" "NSMonster" + "model" "models/monika.mdl" "netname" "Dart Trap" "health" "skill:darttrap_health" "mins" "-16 -16 0" @@ -9,6 +9,7 @@ entityDef monster_darttrap "eye_height" "64" "team" "0" "propdata" "actor_robot" + "team" "ALLIANCE_ENEMY" "speed_walk" "50" "speed_run" "200" diff --git a/zpak001.pk3dir/def/monsters/dragonfly.def b/zpak001.pk3dir/def/monsters/dragonfly.def index e241906..6bdd77c 100644 --- a/zpak001.pk3dir/def/monsters/dragonfly.def +++ b/zpak001.pk3dir/def/monsters/dragonfly.def @@ -9,6 +9,7 @@ entityDef monster_dragonfly "eye_height" "64" "team" "0" "propdata" "actor_alien" + "team" "ALLIANCE_NEUTRAL" "speed_walk" "50" "speed_run" "200" diff --git a/zpak001.pk3dir/def/monsters/endboss.def b/zpak001.pk3dir/def/monsters/endboss.def index 2840b5d..125f37e 100644 --- a/zpak001.pk3dir/def/monsters/endboss.def +++ b/zpak001.pk3dir/def/monsters/endboss.def @@ -9,6 +9,7 @@ entityDef monster_endboss "eye_height" "64" "team" "0" "propdata" "actor_robot" + "team" "$ALLIANCE_BANDITS" "speed_walk" "50" "speed_run" "200" diff --git a/zpak001.pk3dir/def/monsters/gator.def b/zpak001.pk3dir/def/monsters/gator.def index 58f0369..6b973ce 100644 --- a/zpak001.pk3dir/def/monsters/gator.def +++ b/zpak001.pk3dir/def/monsters/gator.def @@ -1,15 +1,16 @@ entityDef monster_gator { "spawnclass" "NSMonster" - "model" "models/gator.mdl" - "netname" "Gator" - "health" "skill:gator_health" - "mins" "-16 -16 0" - "maxs" "16 16 72" + "model" "models/gator.mdl" + "netname" "Gator" + "health" "skill:gator_health" + "mins" "-16 -16 0" + "maxs" "16 16 72" "eye_height" "64" - "team" "1" - "propdata" "actor_human" + "team" "1" + "propdata" "actor_human" + "team" "$ALLIANCE_REPTILES" "speed_walk" "50" - "speed_run" "200" + "speed_run" "200" } \ No newline at end of file diff --git a/zpak001.pk3dir/def/monsters/gunner_friendly.def b/zpak001.pk3dir/def/monsters/gunner_friendly.def index e307dd9..c871017 100644 --- a/zpak001.pk3dir/def/monsters/gunner_friendly.def +++ b/zpak001.pk3dir/def/monsters/gunner_friendly.def @@ -1,15 +1,16 @@ entityDef monster_gunner_friendly { "spawnclass" "NSTalkMonster" - "model" "models/aigunner.mdl" - "netname" "Gunner Friendly" - "health" "skill:gunner_health" - "mins" "-16 -16 0" - "maxs" "16 16 72" + "model" "models/aigunner.mdl" + "netname" "Gunner Friendly" + "health" "skill:gunner_health" + "mins" "-16 -16 0" + "maxs" "16 16 72" "eye_height" "64" - "team" "0" - "propdata" "actor_robot" + "team" "0" + "propdata" "actor_robot" + "team" "$ALLIANCE_FRIENDLY" "speed_walk" "50" - "speed_run" "200" + "speed_run" "200" } \ No newline at end of file diff --git a/zpak001.pk3dir/def/monsters/hatchetfish.def b/zpak001.pk3dir/def/monsters/hatchetfish.def index 55a1114..e190fc8 100644 --- a/zpak001.pk3dir/def/monsters/hatchetfish.def +++ b/zpak001.pk3dir/def/monsters/hatchetfish.def @@ -9,6 +9,7 @@ entityDef monster_hatchetfish "eye_height" "64" "team" "0" "propdata" "actor_alien" + "team" "$ALLIANCE_NEUTRAL" "speed_walk" "50" "speed_run" "200" diff --git a/zpak001.pk3dir/def/monsters/hiveback.def b/zpak001.pk3dir/def/monsters/hiveback.def index 849ba9d..520f27c 100644 --- a/zpak001.pk3dir/def/monsters/hiveback.def +++ b/zpak001.pk3dir/def/monsters/hiveback.def @@ -9,6 +9,7 @@ entityDef monster_hiveback "eye_height" "64" "team" "0" "propdata" "actor_alien" + "team" "$ALLIANCE_ALIEN" "speed_walk" "50" "speed_run" "200" diff --git a/zpak001.pk3dir/def/monsters/human_bandit.def b/zpak001.pk3dir/def/monsters/human_bandit.def index 219de58..879405d 100644 --- a/zpak001.pk3dir/def/monsters/human_bandit.def +++ b/zpak001.pk3dir/def/monsters/human_bandit.def @@ -9,6 +9,7 @@ entityDef monster_human_bandit "eye_height" "64" "team" "0" "propdata" "actor_human" + "team" "$ALLIANCE_BANDITS" "speed_walk" "50" "speed_run" "200" diff --git a/zpak001.pk3dir/def/monsters/human_chopper.def b/zpak001.pk3dir/def/monsters/human_chopper.def index bd9f3d8..a723424 100644 --- a/zpak001.pk3dir/def/monsters/human_chopper.def +++ b/zpak001.pk3dir/def/monsters/human_chopper.def @@ -9,6 +9,7 @@ entityDef monster_human_chopper "eye_height" "64" "team" "0" "propdata" "actor_robot" + "team" "$ALLIANCE_BANDITS" "speed_walk" "50" "speed_run" "200" diff --git a/zpak001.pk3dir/def/monsters/human_demoman.def b/zpak001.pk3dir/def/monsters/human_demoman.def index 0a3697d..3effcf5 100644 --- a/zpak001.pk3dir/def/monsters/human_demoman.def +++ b/zpak001.pk3dir/def/monsters/human_demoman.def @@ -9,6 +9,7 @@ entityDef monster_human_demoman "eye_height" "64" "team" "0" "propdata" "actor_human" + "team" "$ALLIANCE_BANDITS" "speed_walk" "50" "speed_run" "200" diff --git a/zpak001.pk3dir/def/monsters/human_gunman.def b/zpak001.pk3dir/def/monsters/human_gunman.def index 36d9272..8aaf603 100644 --- a/zpak001.pk3dir/def/monsters/human_gunman.def +++ b/zpak001.pk3dir/def/monsters/human_gunman.def @@ -9,6 +9,7 @@ entityDef monster_human_gunman "eye_height" "64" "team" "0" "propdata" "actor_human" + "team" "$ALLIANCE_FRIENDLY" "speed_walk" "50" "speed_run" "200" diff --git a/zpak001.pk3dir/def/monsters/human_scientist.def b/zpak001.pk3dir/def/monsters/human_scientist.def deleted file mode 100644 index 8a2005f..0000000 --- a/zpak001.pk3dir/def/monsters/human_scientist.def +++ /dev/null @@ -1,9 +0,0 @@ -entityDef monster_human_scientist -{ - "spawnclass" "NSTalkMonster" - "inherit" "monster_scientist" - "netname" "Human Scientist" - "model" "models/scientist.mdl" - "health" "skill:scientist_health" - -} \ No newline at end of file diff --git a/zpak001.pk3dir/def/monsters/human_unarmed.def b/zpak001.pk3dir/def/monsters/human_unarmed.def index e577805..25bffb7 100644 --- a/zpak001.pk3dir/def/monsters/human_unarmed.def +++ b/zpak001.pk3dir/def/monsters/human_unarmed.def @@ -9,6 +9,7 @@ entityDef monster_human_unarmed "eye_height" "64" "team" "0" "propdata" "actor_human" + "team" "$ALLIANCE_FRIENDLY" "speed_walk" "50" "speed_run" "200" diff --git a/zpak001.pk3dir/def/monsters/largescorpion.def b/zpak001.pk3dir/def/monsters/largescorpion.def index 80e6542..659c28c 100644 --- a/zpak001.pk3dir/def/monsters/largescorpion.def +++ b/zpak001.pk3dir/def/monsters/largescorpion.def @@ -9,6 +9,7 @@ entityDef monster_largescorpion "eye_height" "64" "team" "0" "propdata" "actor_human" + "team" "$ALLIANCE_REPTILES" "speed_walk" "50" "speed_run" "200" diff --git a/zpak001.pk3dir/def/monsters/manta.def b/zpak001.pk3dir/def/monsters/manta.def index 9bcaf1e..4a53eb6 100644 --- a/zpak001.pk3dir/def/monsters/manta.def +++ b/zpak001.pk3dir/def/monsters/manta.def @@ -9,6 +9,7 @@ entityDef monster_manta "eye_height" "64" "team" "0" "propdata" "actor_human" + "team" "$ALLIANCE_NEUTRAL" "speed_walk" "50" "speed_run" "200" diff --git a/zpak001.pk3dir/def/monsters/microraptor.def b/zpak001.pk3dir/def/monsters/microraptor.def index 62478c0..dccda42 100644 --- a/zpak001.pk3dir/def/monsters/microraptor.def +++ b/zpak001.pk3dir/def/monsters/microraptor.def @@ -1,7 +1,7 @@ entityDef monster_microraptor { "spawnclass" "NSMonster" - "model" "models/microraptor.mdl" + "model" "models/raptor.mdl" "netname" "Micro Raptor" "health" "skill:microraptor_health" "mins" "-16 -16 0" @@ -9,6 +9,7 @@ entityDef monster_microraptor "eye_height" "64" "team" "0" "propdata" "actor_human" + "team" "$ALLIANCE_REPTILES" "speed_walk" "50" "speed_run" "200" diff --git a/zpak001.pk3dir/def/monsters/ourano.def b/zpak001.pk3dir/def/monsters/ourano.def index 0848a7d..f082ed4 100644 --- a/zpak001.pk3dir/def/monsters/ourano.def +++ b/zpak001.pk3dir/def/monsters/ourano.def @@ -9,6 +9,7 @@ entityDef monster_ourano "eye_height" "64" "team" "0" "propdata" "actor_human" + "team" "$ALLIANCE_NEUTRAL" "speed_walk" "50" "speed_run" "200" diff --git a/zpak001.pk3dir/def/monsters/penta.def b/zpak001.pk3dir/def/monsters/penta.def index ee93b4a..312cc5e 100644 --- a/zpak001.pk3dir/def/monsters/penta.def +++ b/zpak001.pk3dir/def/monsters/penta.def @@ -9,6 +9,7 @@ entityDef monster_penta "eye_height" "64" "team" "0" "propdata" "actor_human" + "team" "$ALLIANCE_NEUTRAL" "speed_walk" "50" "speed_run" "200" diff --git a/zpak001.pk3dir/def/monsters/raptor.def b/zpak001.pk3dir/def/monsters/raptor.def index 7d07d19..2b770e6 100644 --- a/zpak001.pk3dir/def/monsters/raptor.def +++ b/zpak001.pk3dir/def/monsters/raptor.def @@ -1,7 +1,7 @@ entityDef monster_raptor { "spawnclass" "NSMonster" - "model" "models/raptor.mdl" + "model" "models/rheptor.mdl" "netname" "Raptor" "health" "skill:raptor_health" "mins" "-16 -16 0" @@ -9,6 +9,7 @@ entityDef monster_raptor "eye_height" "64" "team" "0" "propdata" "actor_human" + "team" "$ALLIANCE_REPTILES" "speed_walk" "50" "speed_run" "200" diff --git a/zpak001.pk3dir/def/monsters/rustbattery.def b/zpak001.pk3dir/def/monsters/rustbattery.def index 8dbcbb1..cd95405 100644 --- a/zpak001.pk3dir/def/monsters/rustbattery.def +++ b/zpak001.pk3dir/def/monsters/rustbattery.def @@ -1,7 +1,7 @@ entityDef monster_rustbattery { "spawnclass" "NSMonster" - "model" "models/rustbattery.mdl" + "model" "models/battbot.mdl" "netname" "Tank" "health" "skill:rustbattery_health" "mins" "-16 -16 0" @@ -9,6 +9,7 @@ entityDef monster_rustbattery "eye_height" "64" "team" "0" "propdata" "actor_robot" + "team" "$ALLIANCE_ROBOT" "speed_walk" "0" "speed_run" "0" diff --git a/zpak001.pk3dir/def/monsters/rustbit.def b/zpak001.pk3dir/def/monsters/rustbit.def index 075c8f0..c556db9 100644 --- a/zpak001.pk3dir/def/monsters/rustbit.def +++ b/zpak001.pk3dir/def/monsters/rustbit.def @@ -9,6 +9,7 @@ entityDef monster_rustbit "eye_height" "64" "team" "0" "propdata" "actor_robot" + "team" "$ALLIANCE_ROBOT" "speed_walk" "0" "speed_run" "0" diff --git a/zpak001.pk3dir/def/monsters/rustbit_friendly.def b/zpak001.pk3dir/def/monsters/rustbit_friendly.def index 72d0304..7cccd7e 100644 --- a/zpak001.pk3dir/def/monsters/rustbit_friendly.def +++ b/zpak001.pk3dir/def/monsters/rustbit_friendly.def @@ -9,6 +9,7 @@ entityDef monster_rustbit_friendly "eye_height" "64" "team" "0" "propdata" "actor_robot" + "team" "$ALLIANCE_FRIENDLY" "speed_walk" "0" "speed_run" "0" diff --git a/zpak001.pk3dir/def/monsters/rustbot.def b/zpak001.pk3dir/def/monsters/rustbot.def index 6afb327..edaa016 100644 --- a/zpak001.pk3dir/def/monsters/rustbot.def +++ b/zpak001.pk3dir/def/monsters/rustbot.def @@ -9,6 +9,7 @@ entityDef monster_rustbot "eye_height" "64" "team" "0" "propdata" "actor_robot" + "team" "$ALLIANCE_ROBOT" "speed_walk" "0" "speed_run" "0" diff --git a/zpak001.pk3dir/def/monsters/rustbot_friendly.def b/zpak001.pk3dir/def/monsters/rustbot_friendly.def index b7393d0..0ea2849 100644 --- a/zpak001.pk3dir/def/monsters/rustbot_friendly.def +++ b/zpak001.pk3dir/def/monsters/rustbot_friendly.def @@ -9,6 +9,7 @@ entityDef monster_rustbot_friendly "eye_height" "64" "team" "0" "propdata" "actor_robot" + "team" "$ALLIANCE_FRIENDLY" "speed_walk" "0" "speed_run" "0" diff --git a/zpak001.pk3dir/def/monsters/rustflier.def b/zpak001.pk3dir/def/monsters/rustflier.def index 775ef21..5154a0d 100644 --- a/zpak001.pk3dir/def/monsters/rustflier.def +++ b/zpak001.pk3dir/def/monsters/rustflier.def @@ -9,6 +9,7 @@ entityDef monster_rustflier "eye_height" "64" "team" "0" "propdata" "actor_robot" + "team" "$ALLIANCE_ROBOT" "speed_walk" "0" "speed_run" "0" diff --git a/zpak001.pk3dir/def/monsters/rustgunr.def b/zpak001.pk3dir/def/monsters/rustgunr.def index d883eb3..0b3602f 100644 --- a/zpak001.pk3dir/def/monsters/rustgunr.def +++ b/zpak001.pk3dir/def/monsters/rustgunr.def @@ -9,6 +9,7 @@ entityDef monster_rustgunr "eye_height" "64" "team" "0" "propdata" "actor_robot" + "team" "$ALLIANCE_ROBOT" "speed_walk" "0" "speed_run" "0" diff --git a/zpak001.pk3dir/def/monsters/scientist.def b/zpak001.pk3dir/def/monsters/scientist.def index d8e152a..6c98f0e 100644 --- a/zpak001.pk3dir/def/monsters/scientist.def +++ b/zpak001.pk3dir/def/monsters/scientist.def @@ -7,7 +7,7 @@ entityDef monster_human_scientist "mins" "-16 -16 0" "maxs" "16 16 72" "eye_height" "64" - "team" "1" + "team" "$ALLIANCE_FRIENDLY" "propdata" "actor_human" // When body equals 0, this is our default Scientist. @@ -70,4 +70,9 @@ entityDef monster_human_scientist "talk_player_idle" "!SC_PIDLE" "follow_on_use" "0" } +} + +entityDef monster_scientist +{ + "spawnclass" "monster_human_scientist" } \ No newline at end of file diff --git a/zpak001.pk3dir/def/monsters/scorpion.def b/zpak001.pk3dir/def/monsters/scorpion.def index 6d0448d..498d2d4 100644 --- a/zpak001.pk3dir/def/monsters/scorpion.def +++ b/zpak001.pk3dir/def/monsters/scorpion.def @@ -9,6 +9,7 @@ entityDef monster_scorpion "eye_height" "16" "team" "2" "propdata" "actor_alien" + "team" "$ALLIANCE_REPTILES" "speed_walk" "0" "speed_run" "0" diff --git a/zpak001.pk3dir/def/monsters/sentry.def b/zpak001.pk3dir/def/monsters/sentry.def index 936ab56..08b105e 100644 --- a/zpak001.pk3dir/def/monsters/sentry.def +++ b/zpak001.pk3dir/def/monsters/sentry.def @@ -9,6 +9,7 @@ entityDef monster_sentry "eye_height" "64" "team" "0" "propdata" "actor_robot" + "team" "$ALLIANCE_ROBOT" "speed_walk" "0" "speed_run" "0" diff --git a/zpak001.pk3dir/def/monsters/sentry_mini.def b/zpak001.pk3dir/def/monsters/sentry_mini.def index 11c86ad..6dcc97e 100644 --- a/zpak001.pk3dir/def/monsters/sentry_mini.def +++ b/zpak001.pk3dir/def/monsters/sentry_mini.def @@ -9,6 +9,7 @@ entityDef monster_sentry_mini "eye_height" "64" "team" "0" "propdata" "actor_robot" + "team" "$ALLIANCE_ROBOT" "speed_walk" "0" "speed_run" "0" diff --git a/zpak001.pk3dir/def/monsters/sitting_scientist.def b/zpak001.pk3dir/def/monsters/sitting_scientist.def index ceebe24..09f3ee9 100644 --- a/zpak001.pk3dir/def/monsters/sitting_scientist.def +++ b/zpak001.pk3dir/def/monsters/sitting_scientist.def @@ -5,5 +5,6 @@ entityDef monster_sitting_scientist "netname" "Human Scientist Seated" "model" "models/scientist.mdl" "health" "skill:scientist_health" + "team" "$ALLIANCE_FRIENDLY" } \ No newline at end of file diff --git a/zpak001.pk3dir/def/monsters/tank.def b/zpak001.pk3dir/def/monsters/tank.def index 1712cf0..9c2c849 100644 --- a/zpak001.pk3dir/def/monsters/tank.def +++ b/zpak001.pk3dir/def/monsters/tank.def @@ -9,6 +9,7 @@ entityDef monster_tank "eye_height" "64" "team" "0" "propdata" "actor_robot" + "team" "$ALLIANCE_ROBOT" "speed_walk" "0" "speed_run" "0" diff --git a/zpak001.pk3dir/def/monsters/targetrocket.def b/zpak001.pk3dir/def/monsters/targetrocket.def index 6177df0..ce5aabc 100644 --- a/zpak001.pk3dir/def/monsters/targetrocket.def +++ b/zpak001.pk3dir/def/monsters/targetrocket.def @@ -9,6 +9,7 @@ entityDef monster_targetrocket "eye_height" "64" "team" "0" "propdata" "actor_robot" + "team" "$ALLIANCE_ROBOT" "speed_walk" "0" "speed_run" "0" diff --git a/zpak001.pk3dir/def/monsters/trainingbot.def b/zpak001.pk3dir/def/monsters/trainingbot.def index d629948..151fb8f 100644 --- a/zpak001.pk3dir/def/monsters/trainingbot.def +++ b/zpak001.pk3dir/def/monsters/trainingbot.def @@ -9,6 +9,7 @@ entityDef monster_trainingbot "eye_height" "64" "team" "2" "propdata" "actor_robot" + "team" "$ALLIANCE_ROBOT" "speed_walk" "0" "speed_run" "0" diff --git a/zpak001.pk3dir/def/monsters/tube.def b/zpak001.pk3dir/def/monsters/tube.def index 39af981..20c47e7 100644 --- a/zpak001.pk3dir/def/monsters/tube.def +++ b/zpak001.pk3dir/def/monsters/tube.def @@ -7,7 +7,7 @@ entityDef monster_tube "mins" "-16 -16 0" "maxs" "16 16 72" "eye_height" "64" - "team" "2" + "team" "$ALLIANCE_ALIEN" "propdata" "actor_alien" "speed_walk" "46" "speed_run" "292" diff --git a/zpak001.pk3dir/def/monsters/tube_embryo.def b/zpak001.pk3dir/def/monsters/tube_embryo.def index ad6a4c3..d558e44 100644 --- a/zpak001.pk3dir/def/monsters/tube_embryo.def +++ b/zpak001.pk3dir/def/monsters/tube_embryo.def @@ -7,7 +7,7 @@ entityDef monster_tube_embryo "mins" "-16 -16 0" "maxs" "16 16 72" "eye_height" "64" - "team" "2" + "team" "$ALLIANCE_ALIEN" "propdata" "actor_alien" "speed_walk" "0" diff --git a/zpak001.pk3dir/def/monsters/xenome.def b/zpak001.pk3dir/def/monsters/xenome.def index d7fdbe4..a166855 100644 --- a/zpak001.pk3dir/def/monsters/xenome.def +++ b/zpak001.pk3dir/def/monsters/xenome.def @@ -7,7 +7,7 @@ entityDef monster_xenome "mins" "-16 -16 0" "maxs" "16 16 72" "eye_height" "64" - "team" "2" + "team" "$ALLIANCE_ALIEN" "propdata" "actor_alien" "speed_walk" "77" diff --git a/zpak001.pk3dir/def/monsters/xenome_embryo.def b/zpak001.pk3dir/def/monsters/xenome_embryo.def index ccd1a21..625f945 100644 --- a/zpak001.pk3dir/def/monsters/xenome_embryo.def +++ b/zpak001.pk3dir/def/monsters/xenome_embryo.def @@ -7,7 +7,7 @@ entityDef monster_xenome_embryo "mins" "-16 -16 0" "maxs" "16 16 72" "eye_height" "64" - "team" "0" + "team" "$ALLIANCE_ALIEN" "propdata" "actor_alien" "speed_walk" "0" diff --git a/zpak001.pk3dir/def/weapon_aicore.def b/zpak001.pk3dir/def/weapon_aicore.def deleted file mode 100644 index e69de29..0000000 diff --git a/zpak001.pk3dir/def/weapon_beamgun.def b/zpak001.pk3dir/def/weapon_beamgun.def deleted file mode 100644 index e69de29..0000000 diff --git a/zpak001.pk3dir/def/weapon_chemicalgun.def b/zpak001.pk3dir/def/weapon_chemicalgun.def deleted file mode 100644 index e69de29..0000000 diff --git a/zpak001.pk3dir/def/weapon_dml.def b/zpak001.pk3dir/def/weapon_dml.def deleted file mode 100644 index e69de29..0000000 diff --git a/zpak001.pk3dir/def/weapon_fists.def b/zpak001.pk3dir/def/weapon_fists.def deleted file mode 100644 index e69de29..0000000 diff --git a/zpak001.pk3dir/def/weapon_gausspistol.def b/zpak001.pk3dir/def/weapon_gausspistol.def deleted file mode 100644 index e69de29..0000000 diff --git a/zpak001.pk3dir/def/weapon_grenade.def b/zpak001.pk3dir/def/weapon_grenade.def deleted file mode 100644 index e69de29..0000000 diff --git a/zpak001.pk3dir/def/weapon_minigun.def b/zpak001.pk3dir/def/weapon_minigun.def deleted file mode 100644 index e69de29..0000000 diff --git a/zpak001.pk3dir/def/weapon_shotgun.def b/zpak001.pk3dir/def/weapon_shotgun.def deleted file mode 100644 index e69de29..0000000 diff --git a/zpak001.pk3dir/def/weapons.def b/zpak001.pk3dir/def/weapons.def new file mode 100644 index 0000000..4e07282 --- /dev/null +++ b/zpak001.pk3dir/def/weapons.def @@ -0,0 +1,9 @@ +include "weapons/aicore.def" +include "weapons/beamgun.def" +include "weapons/chemicalgun.def" +include "weapons/dml.def" +include "weapons/fists.def" +include "weapons/gausspistol.def" +include "weapons/grenade.def" +include "weapons/minigun.def" +include "weapons/shotgun.def" diff --git a/zpak001.pk3dir/def/weapons/aicore.def b/zpak001.pk3dir/def/weapons/aicore.def new file mode 100644 index 0000000..982d09d --- /dev/null +++ b/zpak001.pk3dir/def/weapons/aicore.def @@ -0,0 +1,14 @@ +entityDef weapon_aicore +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "AI Core" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_aicore.mdl" + "inv_item" "$WEAPON_AICORE" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/beamgun.def b/zpak001.pk3dir/def/weapons/beamgun.def new file mode 100644 index 0000000..243003e --- /dev/null +++ b/zpak001.pk3dir/def/weapons/beamgun.def @@ -0,0 +1,14 @@ +entityDef weapon_beamgun +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Beamgun" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_beam.mdl" + "inv_item" "$WEAPON_BEAMGUN" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/chemicalgun.def b/zpak001.pk3dir/def/weapons/chemicalgun.def new file mode 100644 index 0000000..acd0d5d --- /dev/null +++ b/zpak001.pk3dir/def/weapons/chemicalgun.def @@ -0,0 +1,19 @@ +entityDef weapon_chemicalgun +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Chemical Gun" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_chemgun.mdl" + "inv_item" "$WEAPON_CHEMICALGUN" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} + +entityDef weapon_SPchemicalgun +{ + spawnclass weapon_chemicalgun +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/dml.def b/zpak001.pk3dir/def/weapons/dml.def new file mode 100644 index 0000000..acb8c39 --- /dev/null +++ b/zpak001.pk3dir/def/weapons/dml.def @@ -0,0 +1,14 @@ +entityDef weapon_dml +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "DML" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_dml.mdl" + "inv_item" "$WEAPON_DML" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/fists.def b/zpak001.pk3dir/def/weapons/fists.def new file mode 100644 index 0000000..7c5f5ab --- /dev/null +++ b/zpak001.pk3dir/def/weapons/fists.def @@ -0,0 +1,10 @@ +entityDef weapon_fists +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Fists (null)" + "editor_rotatable" "1" + + "spawnclass" "info_notnull" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/gausspistol.def b/zpak001.pk3dir/def/weapons/gausspistol.def new file mode 100644 index 0000000..e1cdbd9 --- /dev/null +++ b/zpak001.pk3dir/def/weapons/gausspistol.def @@ -0,0 +1,14 @@ +entityDef weapon_gausspistol +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Gauss-Pistol" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_gauss.mdl" + "inv_item" "$WEAPON_GAUSSPISTOL" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/grenade.def b/zpak001.pk3dir/def/weapons/grenade.def new file mode 100644 index 0000000..d8e020f --- /dev/null +++ b/zpak001.pk3dir/def/weapons/grenade.def @@ -0,0 +1,14 @@ +entityDef weapon_grenade +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Grenade" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_grenade.mdl" + "inv_item" "$WEAPON_GRENADE" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/minigun.def b/zpak001.pk3dir/def/weapons/minigun.def new file mode 100644 index 0000000..2f51c2d --- /dev/null +++ b/zpak001.pk3dir/def/weapons/minigun.def @@ -0,0 +1,14 @@ +entityDef weapon_minigun +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Minigun" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_mechagun.mdl" + "inv_item" "$WEAPON_MINIGUN" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/def/weapons/shotgun.def b/zpak001.pk3dir/def/weapons/shotgun.def new file mode 100644 index 0000000..511e938 --- /dev/null +++ b/zpak001.pk3dir/def/weapons/shotgun.def @@ -0,0 +1,14 @@ +entityDef weapon_shotgun +{ + "editor_color" ".3 .3 1" + "editor_mins" "-16 -16 -16" + "editor_maxs" "16 16 16" + "editor_usage" "Shotgun" + "editor_rotatable" "1" + + "spawnclass" "NSItem" + "model" "models/w_shotgun.mdl" + "inv_item" "$WEAPON_SHOTGUN" + "snd_acquire" "weapon.pickup" + "snd_respawn" "item.respawn" +} \ No newline at end of file diff --git a/zpak001.pk3dir/default.cfg b/zpak001.pk3dir/default.cfg old mode 100755 new mode 100644 index e96ea36..48f112d --- a/zpak001.pk3dir/default.cfg +++ b/zpak001.pk3dir/default.cfg @@ -55,3 +55,5 @@ alias mp_fraglimit fraglimit seta gl_overbright 0 seta gl_ldr 1 seta r_lightmap_format rgb8 + +exec skill_rewolf.cfg \ No newline at end of file diff --git a/zpak001.pk3dir/scripts/constants.txt b/zpak001.pk3dir/scripts/constants.txt index b8bd2a0..2728cfe 100644 --- a/zpak001.pk3dir/scripts/constants.txt +++ b/zpak001.pk3dir/scripts/constants.txt @@ -8,4 +8,49 @@ WEAPON_MINIGUN 5 WEAPON_BEAMGUN 6 WEAPON_DML 7 WEAPON_GRENADE 8 -WEAPON_CHEMICALGUN 9 \ No newline at end of file +WEAPON_CHEMICALGUN 9 + +// render modes +RM_NORMAL 0 +RM_COLOR 1 +RM_TEXTURE 2 +RM_GLOW 3 +RM_SOLID 4 +RM_ADDITIVE 5 +RM_FULLBRIGHT 6 +RM_ADDFRAC 7 +RM_WORLDGLOW 9 +RM_DONTRENDER 10 + +// render fx +RFX_NORMAL 0 +RFX_SLOWPULSE 1 +RFX_FASTPULSE 2 +RFX_SLOWWIDEPULSE 3 +RFX_FASTWIDEPULSE 4 +RFX_SLOWFADEAWAY 5 +RFX_FASTFADEAWAY 6 +RFX_SLOWBECOMESOLID 7 +RFX_FASTBECOMESOLID 8 +RFX_SLOWSTROBE 9 +RFX_FASTSTROBE 10 +RFX_FASTERSTROBE 11 +RFX_SLOWFLICKER 12 +RFX_FASTFLICKER 13 +RFX_CONSTANTGLOW 14 +RFX_DISTORT 15 +RFX_HOLOGRAM 16 +RFX_GLOWSHELL 19 +RFX_GLOWSHELL2 20 +RFX_Q2PULSE 21 + +// aliances +ALLIANCE_FRIEND 1 +ALLIANCE_ENEMY 2 +ALLIANCE_ALIEN 3 +ALLIANCE_ROGUE 4 +ALLIANCE_NEUTRAL 5 +ALLIANCE_ROBOT 6 +ALLIANCE_GUNMEN 7 +ALLIANCE_BANDITS 8 +ALLIANCE_REPTILES 9 \ No newline at end of file diff --git a/zpak001.pk3dir/skill_rewolf.cfg b/zpak001.pk3dir/skill_rewolf.cfg new file mode 100644 index 0000000..f624a8c --- /dev/null +++ b/zpak001.pk3dir/skill_rewolf.cfg @@ -0,0 +1,106 @@ +// TODO: Fix these values. They're made up +seta sk_beak_health1 50 +seta sk_beak_health2 50 +seta sk_beak_health3 50 +seta sk_cricket_health1 50 +seta sk_cricket_health2 50 +seta sk_cricket_health3 50 +seta sk_critter_health1 50 +seta sk_critter_health2 50 +seta sk_critter_health3 50 +seta sk_darttrap_health1 50 +seta sk_darttrap_health2 50 +seta sk_darttrap_health3 50 +seta sk_dragonfly_health1 50 +seta sk_dragonfly_health2 50 +seta sk_dragonfly_health3 50 +seta sk_endboss_health1 50 +seta sk_endboss_health2 50 +seta sk_endboss_health3 50 +seta sk_gator_health1 50 +seta sk_gator_health2 50 +seta sk_gator_health3 50 +seta sk_gunman_health1 50 +seta sk_gunman_health2 50 +seta sk_gunman_health3 50 +seta sk_gunner_health1 50 +seta sk_gunner_health2 50 +seta sk_gunner_health3 50 +seta sk_hatchetfish_health1 50 +seta sk_hatchetfish_health2 50 +seta sk_hatchetfish_health3 50 +seta sk_hiveback_health1 50 +seta sk_hiveback_health2 50 +seta sk_hiveback_health3 50 +seta sk_hornet_dmg 50 +seta sk_hornet_dmg 50 +seta sk_hornet_dmg 50 +seta sk_human_bandit_health1 50 +seta sk_human_bandit_health2 50 +seta sk_human_bandit_health3 50 +seta sk_human_chopper_health1 50 +seta sk_human_chopper_health2 50 +seta sk_human_chopper_health3 50 +seta sk_human_demoman_health1 50 +seta sk_human_demoman_health2 50 +seta sk_human_demoman_health3 50 +seta sk_human_unarmed_health1 50 +seta sk_human_unarmed_health2 50 +seta sk_human_unarmed_health3 50 +seta sk_manta_health1 50 +seta sk_manta_health2 50 +seta sk_manta_health3 50 +seta sk_microraptor_health1 50 +seta sk_microraptor_health2 50 +seta sk_microraptor_health3 50 +seta sk_penta_health1 50 +seta sk_penta_health2 50 +seta sk_penta_health3 50 +seta sk_raptor_health1 50 +seta sk_raptor_health2 50 +seta sk_raptor_health3 50 +seta sk_rustbattery_health1 50 +seta sk_rustbattery_health2 50 +seta sk_rustbattery_health3 50 +seta sk_rustbit_health1 50 +seta sk_rustbit_health2 50 +seta sk_rustbit_health3 50 +seta sk_rustbot_health1 50 +seta sk_rustbot_health2 50 +seta sk_rustbot_health3 50 +seta sk_rustflier_health1 50 +seta sk_rustflier_health2 50 +seta sk_rustflier_health3 50 +seta sk_rustgunr_health1 50 +seta sk_rustgunr_health2 50 +seta sk_rustgunr_health3 50 +seta sk_scientist_health1 50 +seta sk_scientist_health1 50 +seta sk_scientist_health2 50 +seta sk_scientist_health2 50 +seta sk_scientist_health3 50 +seta sk_scientist_health3 50 +seta sk_scorpion_large_health1 50 +seta sk_scorpion_large_health2 50 +seta sk_scorpion_large_health3 50 +seta sk_sentry_mini_health1 50 +seta sk_sentry_mini_health2 50 +seta sk_sentry_mini_health3 50 +seta sk_tank_health1 50 +seta sk_tank_health2 50 +seta sk_tank_health3 50 +seta sk_targetrocket_health1 50 +seta sk_targetrocket_health2 50 +seta sk_targetrocket_health3 50 +seta sk_trainingbot_health1 50 +seta sk_trainingbot_health2 50 +seta sk_trainingbot_health3 50 +seta sk_tube_health1 50 +seta sk_tube_health2 50 +seta sk_tube_health3 50 +seta sk_tubryo_health1 50 +seta sk_tubryo_health2 50 +seta sk_tubryo_health3 50 +seta sk_xenome_health1 50 +seta sk_xenome_health2 50 +seta sk_xenome_health3 50