Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two handed weapon #381

Open
wants to merge 78 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
68a620d
Add bonus characters
CarlKenner Aug 27, 2018
fb3e3c1
Bonus characters are partially working
CarlKenner Aug 29, 2018
77b844e
RoE and LE characters now work in Doom 3, including cutscenes.
CarlKenner Aug 31, 2018
b19fc92
Make all items and props moveable when using bonus characters with gr…
CarlKenner Sep 2, 2018
cb205dc
Doomguy skin, Sarge, Betruger, Swann, unlocking, starting weapons
CarlKenner Sep 3, 2018
ed69f5d
Fix binder and pistol collision models, fix moveable glitches, make l…
CarlKenner Sep 4, 2018
36cb0f0
Fix character replacement. Add Sarge, Betruger, Swann, Roland. Binder…
CarlKenner Sep 6, 2018
0734168
Start implementing bonus characters in non-Mars-City-1 cutscenes. Bin…
CarlKenner Sep 6, 2018
778dded
Campbell, Sarge, Betruger, Swann, and Roland bonus characters work an…
CarlKenner Sep 7, 2018
ac0d279
Use more appropriate skins for bonus characters.
CarlKenner Sep 8, 2018
de866e3
Betruger, Sarge, and Roland start in their correct locations.
CarlKenner Sep 13, 2018
8108aa0
Add Phobos from Quake 3 as a bonus character.
CarlKenner Sep 19, 2018
81d800f
Add armoured player model rigged as NPC.
CarlKenner Sep 19, 2018
79579e2
Start adding Doom Slayer models.
CarlKenner Sep 23, 2018
b17c5c2
Fix build error in VS 2017, credit to @valkarion
CarlKenner May 25, 2019
6d23845
Fix ATL attribute deprecation warning spam on VS2017
CarlKenner May 25, 2019
7c94cea
Add .clang-format specification for automatic formatting in Visual St…
CarlKenner May 26, 2019
dcfed76
Fix CMake files for Visual Studio 2013
CarlKenner May 20, 2019
92e7ed7
Fix loading games from vanilla Doom 3 BFG.
CarlKenner May 20, 2019
182f41b
Because we can load games from 3 places now, MAX_SAVEGAMES = 3 x 16 = 48
CarlKenner May 20, 2019
215e836
Fixed error message so it doesn't crash in Visual C++ 2013.
CarlKenner May 20, 2019
42a07e8
Start loading files from 32bit on 64bit and vice versa.
CarlKenner May 20, 2019
2e7abd6
Fix loading events with Trace arguments.
CarlKenner May 21, 2019
d1e721d
Fix loading games from other mods with extra _light entities.
CarlKenner May 21, 2019
54e10de
Fix serious view-height bug when not in VR (which made it unplayable).
CarlKenner May 22, 2019
32a0e85
Fix mouse pitch when not in VR.
CarlKenner May 22, 2019
7cbdd5e
Fix crash in 3D options menu (also crashes in steam version).
CarlKenner May 23, 2019
6803c24
Fix showing weapon hand and body when not in VR.
CarlKenner May 23, 2019
343c4ad
Fix weapon when not in VR, and add independent aiming.
CarlKenner May 23, 2019
f0ad498
Merge pull request #1 from CarlKenner/Bonus2
NPi2Loup Feb 11, 2020
56fd6ed
Merge pull request #2 from CarlKenner/Load64Bit
NPi2Loup Feb 11, 2020
28b1e8f
Merge pull request #3 from CarlKenner/FixNoVR
NPi2Loup Feb 11, 2020
608a42e
Fix a couple of VS2015 warnings
CarlKenner Sep 3, 2018
52bda91
Linux fix by rek
johnr14 Sep 28, 2018
7159950
Fix build error in VS 2017, credit to @valkarion
CarlKenner May 25, 2019
80d2199
Fix ATL attribute deprecation warning spam on VS2017
CarlKenner May 25, 2019
7336f93
Add .clang-format specification for automatic formatting in Visual St…
CarlKenner May 26, 2019
ce4705b
Fix CMake files for Visual Studio 2013
CarlKenner May 20, 2019
3210744
Fix loading games from vanilla Doom 3 BFG.
CarlKenner May 20, 2019
ee879fe
Because we can load games from 3 places now, MAX_SAVEGAMES = 3 x 16 = 48
CarlKenner May 20, 2019
92675a5
Fixed error message so it doesn't crash in Visual C++ 2013.
CarlKenner May 20, 2019
de20c6e
Start loading files from 32bit on 64bit and vice versa.
CarlKenner May 20, 2019
7ea4300
Fix loading events with Trace arguments.
CarlKenner May 21, 2019
f5f6a38
Fix bad cpu animations
NPi2Loup Feb 12, 2020
45c72a8
Update openvr submodule
NPi2Loup Feb 12, 2020
8df620f
add text about 0.21b
NPi2Loup Feb 12, 2020
e83aed9
Better behaviour of guis as touch screen with motion controller
NPi2Loup Feb 14, 2020
56abb94
NPI Add dedicated focus scan for NPC : always use eyes position and axis
NPi2Loup Feb 14, 2020
fd704f2
Merge
NPi2Loup Feb 16, 2020
4855a2a
Fix log
NPi2Loup Feb 16, 2020
04ade5d
Update openvr
Feb 17, 2020
60de1d8
Add a debounce on set or remove key event binding
NPi2Loup Feb 18, 2020
fe60cee
force unbind of multiple key binding event
NPi2Loup Feb 18, 2020
d242226
Fix corrupted erebus6 map file
NPi2Loup Feb 19, 2020
6d3e043
Fix some shots block by world, when it shouldn't
NPi2Loup Feb 19, 2020
c84330e
Create cmake-vs2017-64bit - debug.bat
Feb 20, 2020
f94e815
Merge branch 'master' into without-dualwelding
NPi2Loup Feb 20, 2020
2f46b0d
Revert "Merge branch 'master' into without-dualwelding"
NPi2Loup Feb 20, 2020
11309e9
Fix jetStrafe for other HMD (not only Oculus)
NPi2Loup Feb 21, 2020
ea5518e
Add snap angle parameter for jetstrafe
NPi2Loup Feb 21, 2020
844f0ee
dead code
NPi2Loup Feb 21, 2020
d51ef62
blink black and jetstrafe threshold
NPi2Loup Feb 21, 2020
f7e06f2
Fix load of Lost Mission levels
NPi2Loup Feb 28, 2020
026f975
Fix #231 : skip sound without shader because it crash (may be sound: …
NPi2Loup Feb 28, 2020
46e2c57
May fix #303
NPi2Loup Mar 11, 2020
450ae27
Fix pda break after using artifact (by @Koz)
NPi2Loup Mar 21, 2020
73f4ed8
Update Vr.h
Jimmy-Baby May 30, 2021
df7d34f
Merge pull request #6 from Jimmy-Baby/master
NPi2Loup Sep 3, 2021
f41d72b
Fix LibOVR path
NPi2Loup Sep 3, 2021
0fb7bd3
may limit effect of #351
NPi2Loup Sep 3, 2021
3d57019
cmake Fix openal path
NPi2Loup Sep 4, 2021
f9541de
Fix #351 and #341
NPi2Loup Sep 5, 2021
6ce52fc
Delete oalinst.zip
NPi2Loup Sep 7, 2021
829e270
Update OpenVR 1.9.16 to 1.16.8
NPi2Loup Sep 7, 2021
8f1f51d
Add debounce on dialog event (needed for valve index)
NPi2Loup Sep 7, 2021
374875c
Fix #373 from Ionwerks/Doom3Quest@56e6d43. Many thanks to Inowerks
NPi2Loup Nov 25, 2021
fd6b25f
May fix #303 #371 (thks dfmlege)
NPi2Loup Nov 5, 2023
2e7209a
Update Projectile.cpp
NPi2Loup Nov 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "neo/libs/openvr"]
path = neo/libs/openvr
[submodule "neo/libs/OpenVR"]
path = neo/libs/OpenVR
url = https://github.com/ValveSoftware/openvr.git
10 changes: 9 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,20 @@ ___________________________________________________
4) NEW FEATURES
__________________________________________

New in 0.23:
New in 0.23 (unreleased):
Spanish voice commands (to use, replace dict/voice.dict with dict/voiceSpanish.dict)

New in 0.21-Alpha-WMR (WMR Joystick support) (unofficial):
Windows Mixed Reality Joystick support

New in 0.21b (unofficial): (2020 Feb 13)
Try to release in 2020 current (awesome but stalled) work combined by Koz and Carl,
Almost all is functionnal but dual weilding which doesn't work well with my set (ValveIndex)
Released as a Patch : install official v0.020, then unzip patch into the Doom Folder, you should accept all replacements
Contains almost all 0.21a updates (but dual weilding)
Merge save/loading fix by Carl
Merge compiling fix merged on Carl repo

New in 0.21a (unreleased):
Doom VFR style teleport and jet-strafe
Added headshot damage multiplier vr_headshotMultiplier (defaults to 2.5x)
Expand Down
111 changes: 111 additions & 0 deletions doomclassic/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
---
# Doom 1 coding style

Language: Cpp
Standard: Auto
DisableFormat: false

IndentWidth: 4
TabWidth: 4
UseTab: ForContinuationAndIndentation
IndentCaseLabels: false
AccessModifierOffset: -4
IndentWrappedFunctionNames: false
NamespaceIndentation: All
ContinuationIndentWidth: 4

SpaceBeforeParens: ControlStatements
SpacesInParentheses: false
SpacesInCStyleCastParentheses: false
SpaceInEmptyParentheses: false
SpacesInContainerLiterals: false
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: false
#SpaceBeforeCpp11BracedList: false

SpaceBeforeAssignmentOperators: true
#SpaceAfterLogicalNot: false
SpacesBeforeTrailingComments: 1

BreakBeforeBraces: Custom
BraceWrapping:
IndentBraces: false # always
AfterClass: true # always
AfterEnum: true # 6 out of 61 are wrong
AfterUnion: false # 1 out of 6 is wrong
AfterStruct: true # most of the time
AfterFunction: true # most of the time
AfterNamespace: false # 2 out of 6 are wrong
BeforeElse: false # about 50/50 so use the style I prefer
AfterControlStatement: false # a mixture so use the style I prefer
BeforeCatch: true # never used
AfterObjCDeclaration: false # never used

ColumnLimit: 100

AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignTrailingComments: false

#SpaceBeforeInheritanceColon: true
#SpaceBeforeCtorInitializerColon: true
#AllowAllConstructorInitializersOnNextLine: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4

AllowAllParametersOfDeclarationOnNextLine: false
#AllowAllArgumentsOnNextLine: false
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true


AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
#AlwaysBreakTemplateDeclarations: MultiLine
AlwaysBreakTemplateDeclarations: false
BinPackArguments: true
BinPackParameters: true
BreakBeforeTernaryOperators: false

DerivePointerAlignment: true
PointerAlignment: Left

SortIncludes: false
SortUsingDeclarations: false
ReflowComments: false
MaxEmptyLinesToKeep: 3
KeepEmptyLinesAtTheStartOfBlocks: true

CommentPragmas: '^ IWYU pragma:'
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
IncludeCategories:
- Regex: '^\<[^Q][^/.>]*\>'
Priority: -2
- Regex: '^\<'
Priority: -1
- Regex: '^\"'
Priority: 0
MacroBlockBegin: ''
MacroBlockEnd: ''
ObjCBlockIndentWidth: 4
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 150

# inconsistent
#SpacesInSquareBrackets: false
#SpacesInAngles: false
#AlignConsecutiveDeclarations: false
#AlignEscapedNewlinesLeft: false
#AlignOperands: false
#BreakBeforeBinaryOperators: None
...
113 changes: 113 additions & 0 deletions neo/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
---
# Doom 3 coding style

Language: Cpp
Standard: Auto
DisableFormat: false

IndentWidth: 4
TabWidth: 4
UseTab: Always
IndentCaseLabels: true
AccessModifierOffset: -4
IndentWrappedFunctionNames: false
NamespaceIndentation: None
ContinuationIndentWidth: 4

SpaceBeforeParens: false
SpacesInParentheses: true
SpacesInCStyleCastParentheses: true
SpaceInEmptyParentheses: false
SpacesInContainerLiterals: true
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: false
#SpaceBeforeCpp11BracedList: false

SpaceBeforeAssignmentOperators: true
#SpaceAfterLogicalNot: false
#SpacesBeforeTrailingComments: 1

BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterObjCDeclaration: true
AfterStruct: true
AfterUnion: true
BeforeCatch: true
BeforeElse: true
IndentBraces: false

ColumnLimit: 160

AlignAfterOpenBracket: Align
AlignTrailingComments: true

#SpaceBeforeInheritanceColon: true
#SpaceBeforeCtorInitializerColon: true
#AllowAllConstructorInitializersOnNextLine: true
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4

AllowAllParametersOfDeclarationOnNextLine: false
#AllowAllArgumentsOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false


AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
#AlwaysBreakTemplateDeclarations: MultiLine
AlwaysBreakTemplateDeclarations: false
BinPackArguments: true
BinPackParameters: true
BreakBeforeTernaryOperators: false

DerivePointerAlignment: false
PointerAlignment: Left

SortIncludes: false
SortUsingDeclarations: false
ReflowComments: false
MaxEmptyLinesToKeep: 3
KeepEmptyLinesAtTheStartOfBlocks: true

BreakConstructorInitializersBeforeComma: false
CommentPragmas: '^ IWYU pragma:'
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
IncludeCategories:
- Regex: '^\<[^Q][^/.>]*\>'
Priority: -2
- Regex: '^\<'
Priority: -1
- Regex: '^\"'
Priority: 0
MacroBlockBegin: ''
MacroBlockEnd: ''
NamespaceIndentation: None
ObjCBlockIndentWidth: 4
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 150

# inconsistent
SpacesInSquareBrackets: true
#SpacesInAngles: false
#AlignConsecutiveAssignments: false
#AlignConsecutiveDeclarations: false
#AlignEscapedNewlinesLeft: false
#AlignOperands: false
#BreakBeforeBinaryOperators: None
...
25 changes: 15 additions & 10 deletions neo/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")

elseif(MSVC)

# the warnings are used for every profile anyway, so put them in a variable
# 4267 is for warning about converting size_t to smaller types (eg. int)
# 4467 is for VS2017 spamming: warning C4467: usage of ATL attributes is deprecated
set(my_warn_flags "/wd4267 /wd4467")

# Multiprocessor support for compiling
# /MP

Expand Down Expand Up @@ -152,15 +157,15 @@ elseif(MSVC)
# set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /MP ${WINRT_OPTIONS}")
# set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} /MP /Oi /Oy ${WINRT_OPTIONS}")
# else()
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /D _DEBUG /MP /MTd")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MP /Oi /Oy /MT /wd4267")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} /MP /Oi /MTd /wd4267")
set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} /MP /Oi /Oy /MT /wd4267")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /D _DEBUG /MP /MTd ${my_warn_flags}")
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /MP /Oi /Oy /MT ${my_warn_flags}")
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} /MP /Oi /MTd ${my_warn_flags}")
set(CMAKE_C_FLAGS_MINSIZEREL "${CMAKE_C_FLAGS_MINSIZEREL} /MP /Oi /Oy /MT ${my_warn_flags}")

set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MP /MTd")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MP /Oi /Oy /MT /wd4267")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /MP /MTd /wd4267")
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} /MP /Oi /Oy /MT /wd4267")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MP /MTd ${my_warn_flags}")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MP /Oi /Oy /MT ${my_warn_flags}")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /MP /MTd ${my_warn_flags}")
set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} /MP /Oi /Oy /MT ${my_warn_flags}")

# RB: without /SAFESEH:NO we can't link against ffmpeg libs and VS2013 or we have to build our own
# libs for newer compilers
Expand Down Expand Up @@ -1252,13 +1257,13 @@ include_directories(
.
idlib
#libs/curl/include
#libs/openal/include
#libs/openal-soft/include
#libs/freetype/include
)

#link_directories(
# ${CMAKE_CURRENT_SOURCE_DIR}/libs/curl/lib
# ${CMAKE_CURRENT_SOURCE_DIR}/libs/openal/lib)
# ${CMAKE_CURRENT_SOURCE_DIR}/libs/openal-soft/lib)

if(MSVC)

Expand Down
2 changes: 1 addition & 1 deletion neo/cmake-vs2013-32bit-openal.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ cd ..
del /s /q build
mkdir build
cd build
cmake -G "Visual Studio 12" -DCMAKE_INSTALL_PREFIX=../bin/win8-32 -DOPENAL=ON ../neo
cmake -G "Visual Studio 12 2013" -DCMAKE_INSTALL_PREFIX=../bin/win8-32 -DOPENAL=ON ../neo
pause
2 changes: 1 addition & 1 deletion neo/cmake-vs2013-32bit.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ cd ..
del /s /q build
mkdir build
cd build
cmake -G "Visual Studio 12" -DCMAKE_INSTALL_PREFIX=../bin/win8-32 ../neo
cmake -G "Visual Studio 12 2013" -DCMAKE_INSTALL_PREFIX=../bin/win8-32 ../neo
pause
2 changes: 1 addition & 1 deletion neo/cmake-vs2013-64bit.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ cd ..
del /s /q build
mkdir build
cd build
cmake -G "Visual Studio 12 Win64" -DCMAKE_INSTALL_PREFIX=../bin/win8-64 ../neo
cmake -G "Visual Studio 12 2013 Win64" -DCMAKE_INSTALL_PREFIX=../bin/win8-64 ../neo
pause
6 changes: 6 additions & 0 deletions neo/cmake-vs2017-64bit - debug.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
cd ..
del /s /q build
mkdir build
cd build
cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_SYSTEM_VERSION="10.0.10240.0" -DCMAKE_INSTALL_PREFIX=../bin/win8-64 -DCMAKE_BUILD_TYPE=Debug ../neo
pause
15 changes: 6 additions & 9 deletions neo/d3xp/AFEntity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3770,7 +3770,7 @@ void idHarvestable::Think()
{
idPlayer* thePlayer = player.GetEntity();

thePlayer->Give( spawnArgs.GetString( "give_item" ), spawnArgs.GetString( "give_value" ), ITEM_GIVE_FEEDBACK | ITEM_GIVE_UPDATE_STATE, thePlayer->GetHarvestWeapon("")->GetHand() );
thePlayer->Give( spawnArgs.GetString( "give_item" ), spawnArgs.GetString( "give_value" ), ITEM_GIVE_FEEDBACK | ITEM_GIVE_UPDATE_STATE );
thePlayer->harvest_lock = false;
given = true;
}
Expand Down Expand Up @@ -3946,13 +3946,11 @@ bool idHarvestable::GetFxOrientationAxis( idMat3& mat )
jointHandle_t joint;
idVec3 joint_origin;
idMat3 joint_axis;

// Carl: use correct weapon when dual wielding
idWeapon *weapon = thePlayer->GetHarvestWeapon( spawnArgs.GetString( "required_weapons" ) );
joint = weapon->GetAnimator()->GetJointHandle( spawnArgs.GetString( "fx_weapon_joint" ) );

joint = thePlayer->weapon.GetEntity()->GetAnimator()->GetJointHandle( spawnArgs.GetString( "fx_weapon_joint" ) );
if( joint != INVALID_JOINT )
{
weapon->GetJointWorldTransform( joint, gameLocal.slow.time, joint_origin, joint_axis );
thePlayer->weapon.GetEntity()->GetJointWorldTransform( joint, gameLocal.slow.time, joint_origin, joint_axis );
}
else
{
Expand Down Expand Up @@ -4060,7 +4058,7 @@ void idHarvestable::Event_Touch( idEntity* other, trace_t* trace )

if( requiredWeapons.Length() > 0 )
{
idStr playerWeap = thePlayer->GetCurrentHarvestWeapon( requiredWeapons );
idStr playerWeap = thePlayer->GetCurrentWeapon();
if( playerWeap.Length() == 0 || requiredWeapons.Find( playerWeap, false ) == -1 )
{
okToGive = false;
Expand All @@ -4077,8 +4075,7 @@ void idHarvestable::Event_Touch( idEntity* other, trace_t* trace )
//Lock the player from harvesting to prevent multiple harvests when only one is needed
thePlayer->harvest_lock = true;

// Carl: Dual wielding
idWeapon* weap = thePlayer->GetHarvestWeapon( requiredWeapons );
idWeapon* weap = ( idWeapon* )thePlayer->weapon.GetEntity();
if( weap )
{
//weap->PostEventMS(&EV_Weapon_State, 0, "Charge", 8);
Expand Down
Loading