mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-12 13:31:33 +00:00
Merge branch 'master' into mobile_hacks
This commit is contained in:
commit
817737fc2e
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -22,20 +22,20 @@ jobs:
|
|||||||
CXX: ${{ matrix.cxx }}
|
CXX: ${{ matrix.cxx }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Checkout steam-runtime
|
- name: Checkout steam-runtime
|
||||||
if: startsWith(matrix.os, 'ubuntu')
|
if: startsWith(matrix.os, 'ubuntu')
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: ValveSoftware/steam-runtime
|
repository: ValveSoftware/steam-runtime
|
||||||
path: steam-runtime
|
path: steam-runtime
|
||||||
- name: Cache steam-runtime
|
- name: Cache steam-runtime
|
||||||
if: startsWith(matrix.os, 'ubuntu')
|
if: startsWith(matrix.os, 'ubuntu')
|
||||||
id: cache-steam-runtime
|
id: cache-steam-runtime
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot.tar.gz
|
path: com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot.tar.gz
|
||||||
key: ${{ runner.os }}-steam-runtime
|
key: ${{ runner.os }}-steam-runtime
|
||||||
@ -65,7 +65,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Add msbuild to PATH
|
- name: Add msbuild to PATH
|
||||||
if: startsWith(matrix.os, 'windows')
|
if: startsWith(matrix.os, 'windows')
|
||||||
uses: microsoft/setup-msbuild@v1.0.2
|
uses: microsoft/setup-msbuild@v1.1
|
||||||
- name: Build on Windows
|
- name: Build on Windows
|
||||||
if: startsWith(matrix.os, 'windows')
|
if: startsWith(matrix.os, 'windows')
|
||||||
run: |
|
run: |
|
||||||
@ -79,33 +79,33 @@ jobs:
|
|||||||
|
|
||||||
- name: Extract branch name
|
- name: Extract branch name
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/} | tr '/' '_')"
|
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/} | tr '/' '_')" >> $GITHUB_OUTPUT
|
||||||
id: extract_branch
|
id: extract_branch
|
||||||
- name: Extract gamedir
|
- name: Extract gamedir
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "##[set-output name=gamedir;]$(grep build/CMakeCache.txt -Ee 'GAMEDIR:STRING=[a-z]+' | cut -d '=' -f 2)"
|
run: echo "gamedir=$(grep build/CMakeCache.txt -Ee 'GAMEDIR:STRING=[a-z]+' | cut -d '=' -f 2)" >> $GITHUB_OUTPUT
|
||||||
id: extract_gamedir
|
id: extract_gamedir
|
||||||
- name: Upload linux artifact
|
- name: Upload linux artifact
|
||||||
if: startsWith(matrix.os, 'ubuntu') && matrix.cc == 'gcc'
|
if: startsWith(matrix.os, 'ubuntu') && matrix.cc == 'gcc'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-linux
|
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-linux
|
||||||
path: dist/${{ steps.extract_gamedir.outputs.gamedir }}
|
path: dist/${{ steps.extract_gamedir.outputs.gamedir }}
|
||||||
- name: Upload linux artifact with vgui
|
- name: Upload linux artifact with vgui
|
||||||
if: startsWith(matrix.os, 'ubuntu') && matrix.cc == 'gcc'
|
if: startsWith(matrix.os, 'ubuntu') && matrix.cc == 'gcc'
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-linux-vgui
|
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-linux-vgui
|
||||||
path: dist-vgui/${{ steps.extract_gamedir.outputs.gamedir }}
|
path: dist-vgui/${{ steps.extract_gamedir.outputs.gamedir }}
|
||||||
- name: Upload windows artifact
|
- name: Upload windows artifact
|
||||||
if: startsWith(matrix.os, 'windows')
|
if: startsWith(matrix.os, 'windows')
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-windows
|
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-windows
|
||||||
path: dist/${{ steps.extract_gamedir.outputs.gamedir }}
|
path: dist/${{ steps.extract_gamedir.outputs.gamedir }}
|
||||||
- name: Upload windows artifact with vgui
|
- name: Upload windows artifact with vgui
|
||||||
if: startsWith(matrix.os, 'windows')
|
if: startsWith(matrix.os, 'windows')
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-windows-vgui
|
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-windows-vgui
|
||||||
path: dist-vgui/${{ steps.extract_gamedir.outputs.gamedir }}
|
path: dist-vgui/${{ steps.extract_gamedir.outputs.gamedir }}
|
||||||
|
16
.github/workflows/manual.yml
vendored
16
.github/workflows/manual.yml
vendored
@ -32,20 +32,20 @@ jobs:
|
|||||||
CXX: ${{ matrix.cxx }}
|
CXX: ${{ matrix.cxx }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Checkout steam-runtime
|
- name: Checkout steam-runtime
|
||||||
if: startsWith(matrix.os, 'ubuntu')
|
if: startsWith(matrix.os, 'ubuntu')
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
repository: ValveSoftware/steam-runtime
|
repository: ValveSoftware/steam-runtime
|
||||||
path: steam-runtime
|
path: steam-runtime
|
||||||
- name: Cache steam-runtime
|
- name: Cache steam-runtime
|
||||||
if: startsWith(matrix.os, 'ubuntu')
|
if: startsWith(matrix.os, 'ubuntu')
|
||||||
id: cache-steam-runtime
|
id: cache-steam-runtime
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot.tar.gz
|
path: com.valvesoftware.SteamRuntime.Sdk-i386-scout-sysroot.tar.gz
|
||||||
key: ${{ runner.os }}-steam-runtime
|
key: ${{ runner.os }}-steam-runtime
|
||||||
@ -73,7 +73,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Add msbuild to PATH
|
- name: Add msbuild to PATH
|
||||||
if: startsWith(matrix.os, 'windows')
|
if: startsWith(matrix.os, 'windows')
|
||||||
uses: microsoft/setup-msbuild@v1.0.2
|
uses: microsoft/setup-msbuild@v1.1
|
||||||
- name: Build on Windows
|
- name: Build on Windows
|
||||||
if: startsWith(matrix.os, 'windows')
|
if: startsWith(matrix.os, 'windows')
|
||||||
run: |
|
run: |
|
||||||
@ -82,11 +82,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Extract branch name
|
- name: Extract branch name
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/} | tr '/' '_')"
|
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/} | tr '/' '_')" >> $GITHUB_OUTPUT
|
||||||
id: extract_branch
|
id: extract_branch
|
||||||
- name: Extract gamedir
|
- name: Extract gamedir
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "##[set-output name=gamedir;]$(grep build/CMakeCache.txt -Ee 'GAMEDIR:STRING=[a-z]+' | cut -d '=' -f 2)"
|
run: echo "gamedir=$(grep build/CMakeCache.txt -Ee 'GAMEDIR:STRING=[a-z]+' | cut -d '=' -f 2)" >> $GITHUB_OUTPUT
|
||||||
id: extract_gamedir
|
id: extract_gamedir
|
||||||
- name: Copy pdbs to dist dir
|
- name: Copy pdbs to dist dir
|
||||||
if: ${{ startsWith(matrix.os, 'windows') && github.event.inputs.buildtype == 'Debug' }}
|
if: ${{ startsWith(matrix.os, 'windows') && github.event.inputs.buildtype == 'Debug' }}
|
||||||
@ -100,13 +100,13 @@ jobs:
|
|||||||
Remove-Item -Force -Path dist/${{ steps.extract_gamedir.outputs.gamedir }}/dlls/hl.lib
|
Remove-Item -Force -Path dist/${{ steps.extract_gamedir.outputs.gamedir }}/dlls/hl.lib
|
||||||
- name: Upload linux artifact
|
- name: Upload linux artifact
|
||||||
if: startsWith(matrix.os, 'ubuntu')
|
if: startsWith(matrix.os, 'ubuntu')
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-linux
|
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-linux
|
||||||
path: dist/${{ steps.extract_gamedir.outputs.gamedir }}
|
path: dist/${{ steps.extract_gamedir.outputs.gamedir }}
|
||||||
- name: Upload windows artifact
|
- name: Upload windows artifact
|
||||||
if: startsWith(matrix.os, 'windows')
|
if: startsWith(matrix.os, 'windows')
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-windows
|
name: hlsdk-${{ steps.extract_branch.outputs.branch }}-windows
|
||||||
path: dist/${{ steps.extract_gamedir.outputs.gamedir }}
|
path: dist/${{ steps.extract_gamedir.outputs.gamedir }}
|
||||||
|
@ -282,9 +282,23 @@ void CTripmineGrenade::BeamBreakThink( void )
|
|||||||
// respawn detect.
|
// respawn detect.
|
||||||
if( !m_pBeam )
|
if( !m_pBeam )
|
||||||
{
|
{
|
||||||
|
#if TRIPMINE_BEAM_DUPLICATION_FIX
|
||||||
|
// Use the same trace parameters as the original trace above so the right entity is hit.
|
||||||
|
TraceResult tr2;
|
||||||
|
UTIL_TraceLine( pev->origin + m_vecDir * 8.0f, pev->origin - m_vecDir * 32.0f, dont_ignore_monsters, ENT( pev ), &tr2 );
|
||||||
|
#endif
|
||||||
MakeBeam();
|
MakeBeam();
|
||||||
|
#if TRIPMINE_BEAM_DUPLICATION_FIX
|
||||||
|
if( tr2.pHit )
|
||||||
|
{
|
||||||
|
// reset owner too
|
||||||
|
pev->owner = tr2.pHit;
|
||||||
|
m_hOwner = CBaseEntity::Instance( tr2.pHit );
|
||||||
|
}
|
||||||
|
#else
|
||||||
if( tr.pHit )
|
if( tr.pHit )
|
||||||
m_hOwner = CBaseEntity::Instance( tr.pHit ); // reset owner too
|
m_hOwner = CBaseEntity::Instance( tr.pHit ); // reset owner too
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if( fabs( m_flBeamLength - tr.flFraction ) > 0.001f )
|
if( fabs( m_flBeamLength - tr.flFraction ) > 0.001f )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user