From 64887cdabf3bf931e5d536ccca7e290ffaa1ed5c Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Thu, 12 Oct 2023 14:41:00 -0700 Subject: [PATCH] Remove view.qc and modelevent.qc --- src/client/modelevent.qc | 24 ---------------- src/client/progs.src | 2 -- src/client/view.qc | 59 ---------------------------------------- 3 files changed, 85 deletions(-) delete mode 100644 src/client/modelevent.qc delete mode 100644 src/client/view.qc diff --git a/src/client/modelevent.qc b/src/client/modelevent.qc deleted file mode 100644 index cd659ea..0000000 --- a/src/client/modelevent.qc +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) 2016-2022 Vera Visions LLC. - * - * 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. -*/ - -void -ClientGame_ModelEvent(float flTimeStamp, int iCode, string strData) -{ - switch (iCode) { - default: - Event_ProcessModel(flTimeStamp, iCode, strData); - } -} diff --git a/src/client/progs.src b/src/client/progs.src index 5e91603..7fb792b 100644 --- a/src/client/progs.src +++ b/src/client/progs.src @@ -29,7 +29,6 @@ cmds.qc game_event.qc ../../../valve/src/client/camera.qc ../../../valve/src/client/viewmodel.qc -view.qc obituary.qc hud_sprite.qc hud_itemnotify.qc @@ -38,7 +37,6 @@ hud_ammonotify.qc hud.qc hud_weaponselect.qc scoreboard.qc -modelevent.qc ../../../src/client/include.src vgui_motd.qc diff --git a/src/client/view.qc b/src/client/view.qc deleted file mode 100644 index 038759b..0000000 --- a/src/client/view.qc +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) 2016-2020 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. - */ - -void -View_UpdateWeapon(player pl, entity vm, entity mflash) -{ - /* only bother upon change */ - if (pSeat->m_iLastWeapon == pl.activeweapon) { - return; - } - pSeat->m_iOldWeapon = pSeat->m_iLastWeapon; - pSeat->m_iLastWeapon = pl.activeweapon; - - if (!pl.activeweapon) { - return; - } - - /* we forced a weapon call outside the prediction, - * thus we need to update all the net variables to - * make sure these updates are recognized. this is - * vile but it'll have to do for now */ - SAVE_STATE(pl.w_attack_next) - SAVE_STATE(pl.w_idle_next) - SAVE_STATE(pl.viewzoom) - SAVE_STATE(pl.weapontime) - SAVE_STATE(pl.weaponframe) - - /* hack, we changed the wep, move this into Game_Input/PMove */ - Weapons_Draw(pl); - - /* we forced a weapon call outside the prediction, - * thus we need to update all the net variables to - * make sure these updates are recognized. this is - * vile but it'll have to do for now */ - ROLL_BACK(pl.w_attack_next) - ROLL_BACK(pl.w_idle_next) - ROLL_BACK(pl.viewzoom) - ROLL_BACK(pl.weapontime) - ROLL_BACK(pl.weaponframe) - - /* figure out when the attachments start. in FTE attachments for - * HLMDL are treated as bones. they start at numbones + 1 */ - skel_delete(mflash.skeletonindex); - mflash.skeletonindex = skel_create(vm.modelindex); - pSeat->m_iVMBones = skel_get_numbones(mflash.skeletonindex) + 1; -}