-
Notifications
You must be signed in to change notification settings - Fork 4
Physgun #13
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
base: main
Are you sure you want to change the base?
Physgun #13
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -440,6 +440,9 @@ class C_BasePlayer : public C_BaseCombatCharacter, public CGameEventListener | |
|
|
||
| CUserCmd *m_pCurrentCommand; | ||
|
|
||
| #if defined OPENMOD | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and you did it again
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. again, if defined is ifdef.
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. again, did you even try to compile it? |
||
| QAngle m_vecUseAngles; | ||
| #endif | ||
| // Movement constraints | ||
| EHANDLE m_hConstraintEntity; | ||
| Vector m_vecConstraintCenter; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ $Configuration | |
| $Compiler | ||
| { | ||
| $AdditionalIncludeDirectories "$BASE;hl2mp\ui,.\hl2mp,$SRCDIR\game\shared\hl2mp,.\hl2,.\hl2\elements,$SRCDIR\game\shared\hl2,.\openmod,$SRCDIR\game\shared\openmod" | ||
| $PreprocessorDefinitions "$BASE;HL2MP;HL2_CLIENT_DLL;NEXT_BOT;OPENMOD" | ||
| $PreprocessorDefinitions "$BASE;HL2MP;HL2_CLIENT_DLL;NEXT_BOT;OPENMOD;OMOD" | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what. |
||
| } | ||
| } | ||
|
|
||
|
|
@@ -42,6 +42,7 @@ $Project "Client (OpenMod)" | |
|
|
||
| $Folder "OpenMod" | ||
| { | ||
| $File "..\shared\openmod\weapon_physgun.cpp" | ||
| $Folder "Lua" | ||
| { | ||
| $File "$SRCDIR\game\shared\openmod\lua\luamanager.cpp" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ | |
| #include "iviewrender_beams.h" // flashlight beam | ||
| #include "r_efx.h" | ||
| #include "dlight.h" | ||
| #include "iclientmode.h" | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. useless |
||
|
|
||
| // Don't alias here | ||
| #if defined( CHL2MP_Player ) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -740,8 +740,17 @@ void CInput::MouseMove( CUserCmd *cmd ) | |
| ResetMouse(); | ||
| } | ||
|
|
||
| // Store out the new viewangles. | ||
| engine->SetViewAngles( viewangles ); | ||
| #if defined(OPENMOD) | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #else....... |
||
| // adnan | ||
| // only set the new viewangles if we're not supposed to override them | ||
| if (!(g_pClientMode->OverrideViewAngles())) | ||
| { | ||
|
|
||
| // Store out the new viewangles. | ||
| engine->SetViewAngles(viewangles); | ||
| } | ||
| // end adnan | ||
| #endif | ||
| } | ||
|
|
||
| //----------------------------------------------------------------------------- | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -129,6 +129,8 @@ $Project "Server (OpenMod)" | |
|
|
||
| $Folder "OpenMod" | ||
| { | ||
|
|
||
| $File "..\shared\openmod\weapon_physgun.cpp" | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. $SRCDIR\game\shared\openmod\weapon_physgun.cpp..... |
||
| $Folder "Lua" | ||
| { | ||
| $File "$SRCDIR\game\shared\openmod\lua\luamanager.cpp" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what the fuck is that syntax
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if defined is ifdef.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you even try to compile it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it compiles