Commit graph

20 commits

Author SHA1 Message Date
Yamagi
b80a0ce1df
Merge pull request #7 from Dremor8484/Dremor8484-slightmechanicaldestruction-doublebarrelshotgun-aimfix
Update p_weapon.c
2022-12-03 17:15:52 +01:00
Dremor8484
238dcd748a
Update p_weapon.c
the aimfix was working only on half of the attack, since the supershotgun shoots 2 times (half bullets left, half bullets right)

to carefully test it i tried to comment out 1 of the 2 shots while also keep yaw change to 0
in 1 case the bullets hit around the crossair, in the other case the bullets were not centered around the crossair.

i added the same fix to the shot that did not have it, and it worked.

i tested it out with yaw-5 and yaw+5 with both shots shooting at the same time and the bullets appeared to gather into 2 distinct clusters one left side of crossair, one right side of crossair like 2 eyes on the wall
2022-12-03 15:56:28 +01:00
Yamagi
f84a72b106
Merge pull request #6 from Dremor8484/Dremor8484-slightmechanicaldestruction-doublebarrelshotgun-aimfix
Update p_weapon.c
2022-06-11 16:56:50 +02:00
Dremor8484
62e959b42c
Update p_weapon.c
slightmechanicaldestruction-doublebarrelshotgun-aimfix
2022-06-10 19:37:41 +02:00
Yamagi
bf5251a3ac
Merge pull request #5 from 0lvin/master
Button to open the door on second level(#4)
2022-04-11 08:43:09 +02:00
Denis Pauk
f0e2043445 Button to open the door on second level(#4) 2022-04-04 22:46:17 +03:00
Yamagi
c192e1c1f1
Merge pull request #3 from 0lvin/master
Fix compiler warnings
2021-04-07 09:01:38 +02:00
Denis Pauk
2514b693ad Fix warning texthnd_t->buffer 2021-01-30 20:54:42 +02:00
Denis Pauk
29df38f239 Fix logical errors
src/p_client.c:2888:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
src/p_client.c:2891:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
2021-01-30 20:16:40 +02:00
Denis Pauk
7b0918b2e8 Sync declarations 2021-01-30 20:02:48 +02:00
Denis Pauk
c30b70ea00 Remove unused varibales
src/g_cmds.c:2095:10: warning: unused variable ‘vel’ [-Wunused-variable]
src/g_cmds.c:2094:10: warning: unused variable ‘pos’ [-Wunused-variable]
src/g_trigger.c:1422:10: warning: unused variable ‘endpos’ [-Wunused-variable]
src/p_client.c:1277:15: warning: unused variable ‘nostatus’ [-Wunused-variable]
src/p_client.c:2247:10: warning: unused variable ‘weapon’ [-Wunused-variable]
2021-01-30 18:52:45 +02:00
Denis Pauk
701b470ded Remove unused variables
src/g_chase.c:10:9: warning: variable ‘oldgoal’ set but not used [-Wunused-but-set-variable]
src/g_crane.c:118:9: warning: variable ‘origin’ set but not used [-Wunused-but-set-variable]
src/g_crane.c:380:11: warning: variable ‘save’ set but not used [-Wunused-but-set-variable]
src/g_func.c:101:15: warning: variable ‘sr’ set but not used [-Wunused-but-set-variable]
src/g_func.c:101:11: warning: variable ‘cr’ set but not used [-Wunused-but-set-variable]
src/g_func.c:836:11: warning: variable ‘save’ set but not used [-Wunused-but-set-variable]
src/g_func.c:1942:11: warning: variable ‘save’ set but not used [-Wunused-but-set-variable]
src/g_func.c:2488:11: warning: variable ‘save’ set but not used [-Wunused-but-set-variable]
src/g_func.c:3487:11: warning: variable ‘save’ set but not used [-Wunused-but-set-variable]
src/g_func.c:3642:10: warning: variable ‘oldorg’ set but not used [-Wunused-but-set-variable]
src/g_func.c:3790:9: warning: variable ‘origin’ set but not used [-Wunused-but-set-variable]
src/g_misc.c:1251:9: warning: variable ‘save’ set but not used [-Wunused-but-set-variable]
src/g_newai.c:36:11: warning: variable ‘playerVisible’ set but not used [-Wunused-but-set-variable]
src/g_newai.c:482:28: warning: variable ‘count3’ set but not used [-Wunused-but-set-variable]
src/g_newai.c:481:8: warning: variable ‘field’ set but not used [-Wunused-but-set-variable]
src/g_newai.c:928:11: warning: variable ‘errors’ set but not used [-Wunused-but-set-variable]
src/g_phys.c:35:10: warning: variable ‘fall_time’ set but not used [-Wunused-but-set-variable]
src/g_phys.c:891:16: warning: variable ‘maxs’ set but not used [-Wunused-but-set-variable]
src/g_phys.c:891:10: warning: variable ‘mins’ set but not used [-Wunused-but-set-variable]
src/g_trigger.c:1423:12: warning: variable ‘what’ set but not used [-Wunused-but-set-variable]
src/g_trigger.c:1402:10: warning: variable ‘tr’ set but not used [-Wunused-but-set-variable]
src/g_tracktrain.c:1014:11: warning: variable ‘save’ set but not used [-Wunused-but-set-variable]
src/m_boss2.c:566:11: warning: variable ‘enemy_infront’ set but not used [-Wunused-but-set-variable]
src/m_boss32.c:596:8: warning: variable ‘range’ set but not used [-Wunused-but-set-variable]
src/m_boss32.c:738:11: warning: variable ‘enemy_infront’ set but not used [-Wunused-but-set-variable]
src/m_boss31.c:548:8: warning: variable ‘range’ set but not used [-Wunused-but-set-variable]
src/m_boss31.c:613:11: warning: variable ‘enemy_infront’ set but not used [-Wunused-but-set-variable]
src/p_hud.c:157:7: warning: variable ‘picnum’ set but not used [-Wunused-but-set-variable]
2021-01-30 18:44:41 +02:00
Denis Pauk
52e8de3cb5 Fix brackets 2021-01-30 17:02:49 +02:00
Yamagi
09c37f30c0
Merge pull request #1 from mjr4077au/Client_AimFixWithCVAR
Implement accurate-aiming CVAR in slightmechanicaldestruction game code.
2020-04-21 12:45:13 +02:00
Mitchell Richters
7080348691 Implement accurate-aiming CVAR in slightmechanicaldestruction game code. 2020-04-22 02:53:04 +10:00
Yamagi Burmeister
11e1ee6b9b Add a standard .gitignore. 2017-10-31 18:18:49 +01:00
Yamagi Burmeister
5dabb4237a Add Alan "Alkaline" Cofers port of SMD to YQ2.
This is a best efford port of SMD to YQ2 done by Alan "Alkaline" Cofers.
While this is not a perfect port it's good enough to compile with modern
gcc and clang versions. It's possible to play through the whole mod
without (too many) bugs. All credits and honor for this go to Alkaline!
2017-10-31 18:15:39 +01:00
Yamagi Burmeister
832a9ef8e1 Add the changes between Lazarus 2.105 and Slight Mechanical Destruction.
Again the license is unclear, I suspect that the SDL license applies.
2017-10-31 18:13:01 +01:00
Yamagi Burmeister
b6ac03efe4 Add the official Lazarus 2.105 sources.
The license of this code is somewhat unclear. The original code is based
upon the Quake II SDK, thus released under the SDK license. At a later
time the author	apparently agreed to redistribute it under the terms of
the GPL2, but I'm unable to find anything about that.
2017-10-31 18:08:44 +01:00
Yamagi Burmeister
a8e70eef2b Base commit for 'Slight Mechanical Destruction'. 2017-10-31 17:50:12 +01:00