Skip to content

Update ReGameDLL_CS #4

Open
wants to merge 581 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
581 commits
Select commit Hold shift + click to select a range
d079f26
Implement CGib::SpawnHeadGib and CGib::SpawnRandomGibs (#650)
FEDERICOMB96 Aug 31, 2021
983500c
Implement `CCSEntity::FireBuckshots` (#651)
FEDERICOMB96 Aug 31, 2021
7e2279f
Implement `CBasePlayer::Observer_FindNextPlayer()` hook (#667)
wopox1337 Aug 31, 2021
5aec8aa
Bot fixes (#659)
Vaqtincha Aug 31, 2021
9233f85
CSEntity.h: Move reserve funcs to private
wopox1337 Sep 2, 2021
bb97ade
Disable thread-safe initialization for static local variables in VS20…
jeefo Sep 7, 2021
667242f
Fix `m_flAccuracy` calculation (#677)
wopox1337 Sep 13, 2021
da24c74
player.h: fix `ForEachItem()` items iteration
wopox1337 Sep 13, 2021
dd243ea
Update player counts (#684)
etojuice Oct 14, 2021
c6187f3
mp_free_armor small fix (#685)
aleeperezz16 Oct 14, 2021
b9cccc6
New CVars: `sv_autobunnyhopping` and `sv_enablebunnyhopping` (#686)
aleeperezz16 Oct 20, 2021
53181d3
CItemAirBox: Fix flight to the moon! (#697)
StevenKal Oct 28, 2021
112326a
New CVar: `mp_plant_c4_anywhere` (#692)
aleeperezz16 Oct 28, 2021
2ac5bde
update score status constants (#674)
Nord1cWarr1or Oct 28, 2021
c872b58
Add `GitHub Action` for Remove old artifacts (#701)
wopox1337 Nov 1, 2021
b979b5e
Revert "Add `GitHub Action` for Remove old artifacts (#701)" (#702)
wopox1337 Nov 3, 2021
09a6c61
Reset `m_flNextFollowTime` before trying to find next target after pr…
etojuice Dec 28, 2021
c002edd
player.cpp: `UpdateClientData()`: fix observer crosshair bug (#672)
Nord1cWarr1or Dec 28, 2021
a54abba
README.md: Note about `impulse 255` command (#714)
UnkwUsr Jan 8, 2022
bbf4541
Fixed missing localized string for several weapons WeaponBuyAliasInfo…
Vaqtincha Feb 12, 2022
0bbad64
g3sg1 animation duration fix (#670)
Vaqtincha Feb 19, 2022
972e14a
Update workflows/build.yml Set windows job container as windows-2019 …
s1lentq Feb 20, 2022
f050be7
fix respawn protection icon hiding (#695)
aleeperezz16 Mar 13, 2022
db76e60
Clamp moving entities' sounds volume (#751)
etojuice Apr 11, 2022
6c47f96
Fix player_weaponstrip (#735)
Vaqtincha Apr 16, 2022
21dab90
Added spawnflags for keep player angles & velocity in trigger_telepor…
SmileyAG Apr 28, 2022
1081301
UTIL_ResetEntities: Crash fixed, sometimes returns NULL for 1 index
s1lentq Jun 14, 2022
e83eeae
fix: update scoreboard attributes on defuser pickup (#770)
wopox1337 Sep 15, 2022
98b387b
Add an argument to `swapteams` command (#739)
ShadowsAdi Sep 15, 2022
83151aa
New CVar: `mp_give_c4_frags` (#776)
JulioBarker Oct 8, 2022
d8702df
fix for previous commit
Oct 8, 2022
946b5a9
Correcting code style and config (#783)
Vaqtincha Nov 24, 2022
84f1f5e
New CVar: `mp_hostages_rescued_ratio` (#786)
fl0werD Nov 24, 2022
2d44ada
Call OnCreate after full creation
s1lentq Nov 28, 2022
dae415d
Disable CHalfLifeMultiplay::Think in training to avoid changing level…
s1lentq Dec 5, 2022
86e7215
Update CI dependencies (#787)
wopox1337 Dec 5, 2022
cf8deb9
Update func_vehicle for multiplayer (#792)
Dec 6, 2022
9801627
fix: Reset immunity effects always (#788)
Vaqtincha Dec 15, 2022
ab2bfd4
little code fixes (#798)
wopox1337 Dec 15, 2022
f3fb30f
CI: `ubuntu-latest` -> `ubuntu-20.04` (#799)
wopox1337 Dec 15, 2022
9a001ca
Fix `TimeBasedDamage` Paralyze decl typo (#748)
RauliTop Dec 16, 2022
15e7d4a
Implement `game_round_start` & `game_entity_restart` triggers (#754)
ShadowsAdi Dec 16, 2022
1c68cb0
FIX: Unexpected behavior with `mp_forcerespawn` (#653)
FEDERICOMB96 Dec 17, 2022
7caf748
Fix: 'fast fire glitch' at AUG/SG552 (#734)
RauliTop Dec 17, 2022
5dec3ba
New entity `trigger_bomb_reset` (#796)
wopox1337 Dec 17, 2022
889edc8
CI: Keep the `ICC` build for releases only (#800)
wopox1337 Dec 17, 2022
8ff30b4
Revert "New entity `trigger_bomb_reset` (#796)"
wopox1337 Mar 11, 2023
eb91f92
Add FreeGameRules hook, util api functions, player api functions (#808)
fl0werD Mar 12, 2023
d2ea0d3
fix incorrect player 3rd cam animations on death while frozen. (#815)
deprale Mar 31, 2023
dce06e9
Add new trace flags (#813)
Mar 31, 2023
4a7a635
Missing friendlyfire after previous commit (#805)
Mar 31, 2023
c756bf8
* fix bug when picking weaponbox grenades with ammo > 1 (#669)
Vaqtincha Mar 31, 2023
2f88574
Weaponbox ammopack hardcode (#533)
Vaqtincha Mar 31, 2023
e090a52
Add Visual Studio 2022 (17.0) Platform Toolset (#820)
wopox1337 Apr 3, 2023
4b4cd88
RemovePlayerItemEx: Reduce ammo supply for grenades and c4
s1lentq Apr 26, 2023
94bf705
RemovePlayerItemEx: Do not remove the grenade weapons until it runs o…
s1lentq Apr 27, 2023
e08cf1e
Disable BotPrecache whether game is CS 1.6 (#839)
dystopm Jul 1, 2023
12560c2
Make Knife back stab multiplier customizable (#834)
dystopm Jul 1, 2023
d4deabf
`CZero`: Fix broken Career Tasks (#836)
dystopm Jul 10, 2023
8ddda26
New CVars: `mp_weapondrop` and `mp_ammodrop` and fixes (#840)
dystopm Jul 10, 2023
a5f288f
Fix Glock and Famas undesired ammo decreasing on burst mode (#832)
dystopm Jul 10, 2023
6375ea5
Little code cleaning: g_vecAttackDir (#831)
dystopm Jul 11, 2023
6da11fa
fix: `bot_profile_db` CVar use (#827)
wopox1337 Jul 11, 2023
e1d1c11
add FTRACE_KNIFE flag (#817)
Jul 11, 2023
8a18969
New CVar: `mp_dying_time` (#483)
wopox1337 Jul 12, 2023
11d6b08
Shield constants code cleaning (#843)
dystopm Jul 12, 2023
8a8f348
Adjust gib's velocity limit according to sv_maxvelocity (#846)
dystopm Jul 14, 2023
718f033
`API`: Implement `PM_LadderMove` hook (#740)
ShadowsAdi Jul 15, 2023
ad13545
TutorMessageEvent::GetNextParameter: Fixed corrupted stack
s1lentq Jul 15, 2023
c526fa5
Enable location feature if bots allowed or listen server is running
s1lentq Jul 15, 2023
9427767
`mp_fadetoblack 2` fade timings now depends from `mp_dying_time` CVar…
wopox1337 Jul 16, 2023
53d26a7
`API`: CSPlayerWeapon integration + new members and functions (#850)
dystopm Aug 23, 2023
02bb06a
Fixed bug when restarting a button using multisource (Do not use mult…
s1lentq Aug 23, 2023
f3723d7
Add reserve members for CCS Entity
s1lentq Aug 24, 2023
696f465
`API`: Added new API funcs (6) and new Hookchains (21) (#849)
dystopm Sep 5, 2023
f441279
`API`: CSPlayer new members (physics related) (#851)
dystopm Sep 5, 2023
2e6e779
Ensure m_pDriver assignation on func_vehicle only (#853)
dystopm Sep 5, 2023
facc2be
Various defuser fixes and code refactory (#848)
dystopm Sep 5, 2023
e8bff71
Fixed crash sometimes occurring while zbot map analyzing (#844)
s1lentq Sep 5, 2023
728f1fc
Fixed of m_lastDamageAmount recording during armor calculation (#857)
Javekson Sep 5, 2023
1aae57f
Fix: Grenade weaponbox not deploying on unarmed player (#847)
dystopm Sep 5, 2023
7b7a1b9
Bump minor version up to 23
s1lentq Sep 5, 2023
ee34b06
New CVar: `mp_team_flash` (#693)
aleeperezz16 Sep 5, 2023
d7b4409
Refactored RemovePlayerItemEx and Extended DestroyItem in CBasePlayer…
Javekson Sep 28, 2023
8a52b7e
`API`: CSPlayer methods enhancement (#862)
dystopm Sep 28, 2023
67e7d87
`FIX`: Reloading animation bug while holding weapon with altered Maxc…
dystopm Sep 28, 2023
108db28
Add an extended player's DeathMsg message (#858)
s1lentq Sep 28, 2023
71c4e21
Fixed a crash when killer is worldspawn
s1lentq Sep 28, 2023
1e49d94
Fixed no fall damage when ff_damage_reduction_other set 0 (also damag…
s1lentq Sep 29, 2023
b962e0e
Fixed #869
s1lentq Sep 30, 2023
ac07e89
Back to using MSG_ALL for the DeathMsg event in favor of backward com…
s1lentq Sep 30, 2023
3a0970a
Fixed typo when checking a teammate
s1lentq Oct 5, 2023
96ba309
SG_Detonate: make event realible (#875)
wopox1337 Oct 6, 2023
a9ec63d
Updated the GiveC4 to return a player pointer (#876)
Javekson Oct 8, 2023
2f50f5a
Group defuser give code in one function (#871)
dystopm Oct 10, 2023
e422a37
Reduce code redundancy in observer.cpp (#872)
dystopm Oct 10, 2023
a2678a1
Ensure HasPrimary flag assignation on successful weapon removal (#866)
dystopm Oct 10, 2023
7e02dea
Drop defuser on disconnect
dystopm Oct 10, 2023
426c975
Ammo type hardcode fix (#882)
Vaqtincha Oct 25, 2023
96e2121
Improve CBaseTrigger::InitTrigger to allow use custom triggers withou…
s1lentq Oct 28, 2023
2857986
Reworked cvar mp_deathmsg_flags (use flags instead of bitsums)
s1lentq Nov 8, 2023
c87761e
Added updating more game info to the player who started recording the…
s1lentq Nov 8, 2023
2d0ac93
Implement PlayerDeathThink hook (#885)
fl0werD Nov 8, 2023
e3d70d2
New CVars: `mp_freezetime_duck` and `mp_freezetime_jump` (#886)
FEDERICOMB96 Nov 26, 2023
9ab1589
Use CSEntity member to hold last inflictor from TakeDamage (#896)
dystopm Nov 26, 2023
b10489f
Changed the order of setting pev->body for the correct value in SetBo…
Javekson Nov 26, 2023
193c1ed
Fixed grenades disappearing when speed exceeds 2000 fixed units ignor…
dystopm Nov 26, 2023
fba9a33
Avoid intro camera switching when only 1 trigger_camera available (#873)
dystopm Nov 26, 2023
15bca2e
Implements Observer_Think Hook (#894)
overl4y Nov 26, 2023
5564060
Tiny API code clean (#897)
dystopm Nov 26, 2023
d135a67
Allow null player pointer in CreateWeaponBox (#899)
dystopm Nov 27, 2023
f882e81
Update studio.h constants (#898)
dystopm Nov 28, 2023
6863777
Initialize m_pevLastInflictor to nullptr to avoid garbage memory (#901)
dystopm Dec 1, 2023
e5f546c
Added delta.lst file
s1lentq Dec 6, 2023
7ea9bef
delta.lst increased float-point accuracy for fields clientdata_t::ori…
s1lentq Dec 6, 2023
5e2aadc
delta.lst maximum health value raised to 131072 from 512 transmitted …
s1lentq Dec 6, 2023
0c29cf3
UpdateClientData: No send health negative value to draw HUD
s1lentq Dec 6, 2023
7c9582f
delta.lst increased float-point accuracy for fields entity_state_play…
s1lentq Dec 6, 2023
4f0818b
delta.lst maximum entity_state_t::body value raised
s1lentq Dec 6, 2023
59362ec
delta.lst maximum entity_state_player_t::effects value raised
s1lentq Dec 6, 2023
a63bcf0
delta.lst adjust premultiply for clientdata_t::origin
s1lentq Dec 6, 2023
d98e8f8
cleanup
s1lentq Dec 11, 2023
34e56f6
Minor refactoring API functions
s1lentq Dec 12, 2023
e6d25ba
utlarray.h add sort methods
s1lentq Dec 13, 2023
8ed193d
fix linux build
s1lentq Dec 13, 2023
85e882f
utlvector.h add sort methods
s1lentq Dec 13, 2023
806f565
Fixed assertion check
s1lentq Dec 13, 2023
f97c9d9
Improve dbg code to work Assertion properly
s1lentq Dec 13, 2023
4928c56
Change some Asserts to DbgAssert
s1lentq Dec 13, 2023
db5cbee
Fix windows build
s1lentq Dec 13, 2023
abe648b
Use custom assert instead normal
s1lentq Dec 13, 2023
8c0b684
Enable assert mode
s1lentq Dec 13, 2023
f63b154
Add member m_iGibDamageThreshold to control GIB damage threshold (#904)
dystopm Dec 13, 2023
b413577
cleanup
s1lentq Dec 14, 2023
28e2bc4
Fix crash bot_nav_use_place when place name is not exists
s1lentq Dec 22, 2023
0e68bed
Fixed rarity of kills suicide, thrusmoke and for some weapons
s1lentq Dec 22, 2023
6c9019b
Set KILLRARITY_KILLER_BLIND flag only when fully blind
s1lentq Dec 22, 2023
991573f
Fixed bot navigation route when connected area somehow is null
s1lentq Dec 31, 2023
d3c0ec8
Fixed crash bot when can see a loose bomb but didn't get closest area…
s1lentq Dec 31, 2023
71606f8
`game.cfg`: Add forgotten double quotation marks
wopox1337 Jan 1, 2024
15df1a9
readme: labels fix
wopox1337 Jan 1, 2024
e636cbc
PlayerRelationship: GR_TEAMMATE on checking itself
s1lentq Jan 12, 2024
c0f4794
PM_CategorizePosition: Do not stick to the ground of an OBSERVER or N…
s1lentq Jan 12, 2024
02a0516
Reset damage stats on Putin Server
s1lentq Jan 12, 2024
89dda43
fix test demo
s1lentq Jan 12, 2024
051dc07
New ConVar: `mp_defuser_allocation` (#908)
wopox1337 Jan 12, 2024
4b49f63
Fix mismatched damage glock18 in burst mode 18 against 25 (GLOCK18_DA…
s1lentq Jan 19, 2024
2d957a7
utlvector.h fix assert
s1lentq Jan 31, 2024
bde6aa0
Disable door asserts (Resolves #926)
s1lentq Jan 31, 2024
a1af7ca
CBasePlayer::WaterMove: No water sound playback occurs when clients e…
s1lentq Jan 31, 2024
b34d564
PM_CheckWater: Fix for uninitialized waterlevel value for dead player…
s1lentq Jan 31, 2024
aec3ba2
Fixed m_looseBombArea assertion
s1lentq Jan 31, 2024
0bbc4bd
Do not reduce points for suicide due to a fatal fall
s1lentq Jan 31, 2024
5287f2a
Do not reduce points for bot suicide due bot_kill command
s1lentq Jan 31, 2024
0bc4ff1
Support for secondary ammo and extra EF_ flags (#934)
Rafflesian Jan 31, 2024
fb9eb0d
Fix excessive punchangle when getting shield shot (#919)
dystopm Jan 31, 2024
2489213
Resetable g_weaponSlotInfo
s1lentq Feb 1, 2024
f4c4e89
CBasePlayerWeapon::ExtractAmmo: Fixed reverse-engineering mistake
s1lentq Feb 1, 2024
4d90a5f
CWeaponBox::Touch: Fix grenade pickup (Resolves #923, Closes #931)
s1lentq Feb 1, 2024
5d2174f
CWeaponBox::Touch: Reworked dropped grenade pickup
s1lentq Feb 4, 2024
9277582
IsWalkableTraceLineClear: Fixed deadlock (mutual collisions in traces…
s1lentq Feb 28, 2024
a546997
CWeaponBox::Touch: Fixed a hang when touching a weaponbox if multiple…
s1lentq Mar 31, 2024
f711276
ignore kill assist when victim killed himself while changing team
s1lentq Apr 4, 2024
1ae0091
Added CVar mp_location_area_info for display location area info in HU…
s1lentq Apr 7, 2024
8c14d05
Add fallback place names if BotChatter.db is missing
s1lentq Apr 7, 2024
279bd64
Fix crash
s1lentq Apr 8, 2024
5117374
Separate mp_location_area_info from chat and radar
s1lentq Apr 8, 2024
f24cccf
Fix linux build
s1lentq Apr 8, 2024
d5eb9c3
don't send radio message to teammate (if freeforall 1) (#958)
Vaqtincha Apr 15, 2024
0626800
Implement RemoveAllItems hook (#960)
Javekson May 8, 2024
2a0e54b
Bump minor version up to 27
s1lentq May 8, 2024
8cd9086
Implement `game_round_end` and `game_round_freeze_end` triggers (#949)
overl4y May 8, 2024
75f142e
Add trigger_teleport landmark (#952)
khanghugo May 8, 2024
d7f22ae
Restart trigger_multiple (#935)
overl4y May 8, 2024
4ecf427
Fix ApplyMultiDamage duplicated call on MultiDamage routine (#946)
dystopm May 8, 2024
8ec5b6c
Fix `SendDeathMessage` kill rarity flags and transform to VFUNC (#943)
FEDERICOMB96 May 8, 2024
8ff1bf1
Fix typo
s1lentq May 8, 2024
cabdc25
ActiveGrenade: Fixed a potential leak by checking entities smokegrens…
s1lentq May 8, 2024
8706cc5
KillRarity Domination: Don't consider suicides to be unanswered killing
s1lentq May 8, 2024
9f66264
KillOfRarity: Add feature in-air kill
s1lentq May 8, 2024
c08e6d0
`CNavArea::ComputeApproachAreas()`: fix hang on `*.nav` generating (…
wopox1337 May 12, 2024
7372573
Add UTIL_IsValidPlayer
s1lentq May 28, 2024
c7be8bf
MULTIDAMAGE: make check entity safe
s1lentq May 31, 2024
bdc96d2
Minor rework bot_quota_mode fill
s1lentq Jun 1, 2024
fef9bf3
mp_defuser_allocation: Send a message with a hint instead of the text…
s1lentq Jun 1, 2024
ad1c58c
Add bot_mimic
s1lentq Jun 2, 2024
a94c7bd
Fix crouch bot
s1lentq Jun 9, 2024
8005dd9
Fix bot_kill command (killed already dead bots) (#974)
Vaqtincha Jul 8, 2024
30572ef
Change compiler to Clang, instead of ICC 2019
s1lentq Jul 14, 2024
79cfd71
Linking against legacy libc <= 2.15
s1lentq Jul 14, 2024
1991434
[skip ci] Fixed typo version
s1lentq Jul 15, 2024
576e967
Workflows: Downgrade linux distro
s1lentq Jul 27, 2024
a202425
Fix: `ammo`/`weapons` respawn behavior (#982)
wopox1337 Aug 3, 2024
9d9c2de
Feature: ConVars for `weapon`/`item`/`ammo` respawn time (#983)
wopox1337 Aug 3, 2024
ff843fe
Update workflows/build.yml
s1lentq Aug 5, 2024
a47d558
Fix compiler warnings
s1lentq Aug 5, 2024
11638cb
Fixed a bug in spectator move with no apply friction when stopped
s1lentq Aug 5, 2024
17386ac
Update build.yml
s1lentq Aug 5, 2024
279799b
Add support IN_RUN key for +speed button in spectator/noclip and walk…
s1lentq Aug 5, 2024
77a3f2b
try fix a crash due to the deletion of an item in an unusual way
s1lentq Aug 6, 2024
c48be87
Extend KickBack functionalities (#980)
dystopm Aug 6, 2024
fee10d8
Fix Shotguns reload flag not getting reset on weapon changing (#993)
dystopm Aug 12, 2024
c7bd4af
Cache ObjectCaps call inside PlayerUse (#991)
dystopm Aug 12, 2024
b6c2c62
Added `mp_vote_flags` and `mp_votemap_min_time` cvars (#990)
dystopm Aug 12, 2024
4e1cb10
fix Deagle animation (#985)
Vaqtincha Aug 12, 2024
8b6d659
Implemented simple player movement version control to avoid desync
s1lentq Aug 16, 2024
a8fd512
Fix linux build
s1lentq Aug 16, 2024
12f4e9b
remove unnecessary version consistency for some player movement code
s1lentq Aug 16, 2024
dc16b12
[skip ci] VisualStudio: Add auto visualizer for some structures/classes
s1lentq Aug 24, 2024
3cf66de
fix mp_kill_filled_spawn (#1011)
Vaqtincha Sep 12, 2024
19714af
get rid of unsafe string functions
s1lentq Sep 12, 2024
3f628ea
DeathSound: Don't interrupt pain sounds with death sound, use any ava…
s1lentq Sep 16, 2024
9b7b169
escape feature for bots (#1012)
Vaqtincha Sep 17, 2024
9b626b1
add desc to readme (#1014)
Vaqtincha Sep 18, 2024
535ea84
client.cpp: Use macros for pfnPrecacheEvent (#1019)
Nord1cWarr1or Oct 23, 2024
7738142
CI Workflow Refactor and Fixes (#1016)
wopox1337 Oct 29, 2024
476b5f7
fix typo
s1lentq Dec 9, 2024
df7944a
Disable broken angle adjustment with throw direction in Killed to avo…
s1lentq Dec 10, 2024
942f2e6
Removed -bots and -host-improve command line params in favor of using…
s1lentq Dec 10, 2024
3efc5ad
AUG/SG552: Reset maxspeed when zooming
s1lentq Dec 10, 2024
8a77bba
always consider all human players on the server to use bot_auto_vacat…
s1lentq Dec 10, 2024
6f0d17b
fixed issues reported by static analyzer
s1lentq Dec 11, 2024
1a17ef4
Reset bot morale on new match(game) (#1025)
Vaqtincha Dec 11, 2024
17ae24e
fix build
s1lentq Dec 11, 2024
1579273
Add target_cdaudio in fgd (Closes #1030)
s1lentq Dec 11, 2024
f63ad67
Hostage minor fixes
s1lentq Dec 14, 2024
96b2ef2
Update build.yml
s1lentq Mar 27, 2025
b59bbb1
CMake improvements, add 64-bit support for use in Xash3D FWGS (#1053)
a1batross Mar 27, 2025
a7395b0
Bot Chatter: Bots will react to enemy snipers presence (#1055)
Huga22118 Mar 27, 2025
756deb1
fix: calculate UpdateLocation fun not so often (#1040)
golukon Mar 27, 2025
6adb795
Team Say refactory/enhancement (#1042)
dystopm Mar 27, 2025
b8e9726
fix: bots can't buy sec ammo if preferred pistol (ex. "WeaponPreferen…
Vaqtincha Mar 27, 2025
316405b
add new cvar "bot_excellent_morale" (#1035)
Vaqtincha Mar 27, 2025
dbec1b5
Randomspawn (#1013)
Vaqtincha Mar 27, 2025
518f142
Add new CVar mp_default_weapons_random (#1015)
Vaqtincha Mar 27, 2025
94a7eb4
added forgot pistols fiveseven and dualelite touching for vip (#1045)
Vaqtincha Mar 27, 2025
d8faea0
Add new CVar mp_jump_height (#1022)
Vaqtincha Mar 27, 2025
b44b09d
feat: add new cvar "mp_logkills" (#1039)
golukon Mar 27, 2025
b10f23e
Add new CVars mp_playerid_showhealth & mp_playerid_field (#1046)
Vaqtincha Mar 27, 2025
ce11175
Add cvar for stamina restoration speed based on fps reference. (#1005)
Garey27 Mar 27, 2025
d3fc7ac
New flymove more accurate method (#1006)
Garey27 Mar 27, 2025
f5cc6f3
AngleQuaternion: fix buffer overflow
s1lentq Apr 3, 2025
6f70d6d
ZBot: Implemented immediate reloading of nav data after bot analysis,…
s1lentq Apr 3, 2025
35082b5
fix build.sh for clang compiler
s1lentq Apr 3, 2025
a4d7439
Update player's HUD after round restart time expires, not before it
s1lentq Apr 3, 2025
f3d8d1b
fix typo
s1lentq Apr 4, 2025
0fc5213
Implements UpdateStatusBar Hook (#968)
GLoOoccK Apr 4, 2025
312dc3e
Fix defuse behavior when bomb explodes
s1lentq Apr 5, 2025
797c265
API: Implemented CBasePlayer::Observer_FindNextPlayer() (#1065)
jonathan-up Apr 6, 2025
5bf71bd
CCSBot::FindMostDangerousThreat: Fix crash when m_pActiveItem is null…
s1lentq Apr 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ root = true
[*]
indent_style = tab
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
42 changes: 42 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
###############################################################################
# Set default behavior to automatically normalize line endings.
###############################################################################
* text=auto

# Sources
*.c text eol=crlf diff=c
*.cc text eol=crlf diff=cpp
*.cxx text eol=crlf diff=cpp
*.cpp text eol=crlf diff=cpp
*.c++ text eol=crlf diff=cpp
*.hpp text eol=crlf diff=cpp
*.h text eol=crlf diff=c
*.h++ text eol=crlf diff=cpp
*.hh text eol=crlf diff=cpp

# Scripts
*.sh text eol=lf
*.bat text eol=crlf
*.def text eol=crlf
*.fgd text eol=crlf
*.cfg text eol=crlf
*.vm text eol=crlf

# Compiled Object files
*.o binary
*.a binary
*.obj binary
*.lib binary
*.jar binary

# Resources files
*.spr binary
*.zip binary
*.wad binary
*.bsp binary
*.rmf binary

# Project files
*.sln text eol=crlf
*.vcxproj text eol=crlf
*.vcxproj.filters text eol=crlf
240 changes: 240 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,240 @@
name: C/C++ CI

on:
push:
branches: [master]
paths-ignore:
- '**.md'

pull_request:
types: [opened, reopened, synchronize]
release:
types: [published]

jobs:
windows:
name: 'Windows'
runs-on: windows-2019

env:
solution: 'msvc/ReGameDLL.sln'
buildPlatform: 'Win32'
buildRelease: 'Release'
buildReleasePlay: 'Release Play'
buildTests: 'Tests'

steps:
- name: Configure
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
with:
vs-version: '16'

- name: Build and Run unittests
run: |
msbuild ${{ env.solution }} -p:Configuration="${{ env.buildTests }}" /t:Clean,Build /p:Platform=${{ env.buildPlatform }} /p:PlatformToolset=v140_xp /p:XPDeprecationWarning=false
.\"msvc\Tests\mp.exe"
If ($LASTEXITCODE -ne 0 -And
$LASTEXITCODE -ne 3)
{[Environment]::Exit(1)}
shell: "pwsh"

- name: Build
run: |
msbuild ${{ env.solution }} -p:Configuration="${{ env.buildRelease }}" /t:Clean,Build /p:Platform=${{ env.buildPlatform }} /p:PlatformToolset=v140_xp /p:XPDeprecationWarning=false
msbuild ${{ env.solution }} -p:Configuration="${{ env.buildReleasePlay }}" /t:Clean,Build /p:Platform=${{ env.buildPlatform }} /p:PlatformToolset=v140_xp /p:XPDeprecationWarning=false

- name: Move files
run: |
mkdir publish\debug
mkdir publish\tests
mkdir publish\bin\win32\cstrike\dlls
move "msvc\${{ env.buildReleasePlay }}\mp.dll" publish\tests\mp.dll
move msvc\${{ env.buildRelease }}\mp.dll publish\bin\win32\cstrike\dlls\mp.dll
move msvc\${{ env.buildRelease }}\mp.pdb publish\debug\mp.pdb

- name: Deploy artifacts
uses: actions/upload-artifact@v4
with:
name: win32
path: publish/*

testdemos:
name: 'Test demos'
runs-on: ubuntu-latest
container: rehldsorg/testdemos:latest
needs: [windows]

defaults:
run:
shell: bash
working-directory: /opt/HLDS

strategy:
fail-fast: false
matrix:
test: [
{ file: 'cstrike-basic-1', desc: 'CS: Testing jumping, scenarios, shooting etc' },
]

steps:
- name: Deploying windows artifacts
uses: actions/download-artifact@v4
with:
name: win32

- name: Setup dependencies
run: |
chown root ~
rsync -a deps/regamedll/* .
mv $GITHUB_WORKSPACE/tests/mp.dll cstrike/dlls/mp.dll

- name: Play test
env:
demo: ${{ matrix.test.file }}
desc: ${{ matrix.test.desc }}
run: ./runTest.sh

linux:
name: 'Linux'
runs-on: ubuntu-latest
container: debian:11-slim

steps:
- name: Install dependencies
run: |
dpkg --add-architecture i386
apt-get update
apt-get install -y \
gcc-multilib g++-multilib \
build-essential \
libc6-dev libc6-dev-i386 \
git cmake rsync \
g++ gcc

- name: Configure
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"

- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- name: Build and Run unittests
run: |
rm -rf build && CC=gcc CXX=g++ cmake -DCMAKE_BUILD_TYPE=Unittests -B build && cmake --build build -j8
retVal=0
./build/regamedll/cs 2> /dev/null > result.log || retVal=$?
while read line; do
if [[ ${line} == *"Warning in test"* ]] ; then
echo -e "\e[2;38m$line"
elif [[ ${line} == *"Failure in test"* ]] ; then
echo -e "\e[1;31m$line"
else
echo -e "\e[0;33m$line"
fi
done <<< $(cat result.log)

if [ $retVal -ne 0 ] && [ $retVal -ne 3 ]; then
echo -e "\e[30;41mExit code: $retVal\e[0m"
exit 1 # Unittest failed
else
echo -e "\e[30;43mExit code: $retVal\e[0m"
fi
shell: bash

- name: Build using GCC Compiler
run: |
rm -rf build && CC=gcc CXX=g++ cmake -B build && cmake --build build -j8

- name: Prepare CSSDK
run: |
mkdir -p publish/cssdk
rsync -a regamedll/extra/cssdk/ publish/cssdk/ --exclude=.git --exclude=LICENSE --exclude=README.md

- name: Move files
run: |
mkdir -p publish/bin/linux32/cstrike/dlls
mv build/regamedll/cs.so publish/bin/linux32/cstrike/dlls/cs.so 2>/dev/null || true
mv regamedll/version/appversion.h publish/appversion.h
mv dist/ publish/

- name: Run GLIBC/ABI version compat test
run: |
binaries=(
"publish/bin/linux32/cstrike/dlls/cs.so"
)
bash ./regamedll/version/glibc_test.sh ${binaries[@]}
if [[ $? -ne 0 ]]; then
exit 1 # Assertion failed
fi
shell: bash

- name: Deploy artifacts
uses: actions/upload-artifact@v4
id: upload-job
with:
name: linux32
path: publish/*

publish:
name: 'Publish'
runs-on: ubuntu-latest
needs: [windows, testdemos, linux]

steps:
- name: Deploying linux artifacts
uses: actions/download-artifact@v4
with:
name: linux32

- name: Deploying windows artifacts
uses: actions/download-artifact@v4
with:
name: win32

- name: Reading appversion.h
run: |
if [ -e appversion.h ]; then
APP_VERSION=$(cat appversion.h | grep -wi '#define APP_VERSION_STRD' | sed -e 's/#define APP_VERSION_STRD[ \t\r\n\v\f]\+\(.*\)/\1/i' -e 's/\r//g')
if [ $? -ne 0 ]; then
APP_VERSION=""
else
# Remove quotes
APP_VERSION=$(echo $APP_VERSION | xargs)
echo "APP_VERSION=${APP_VERSION}" >> $GITHUB_ENV
fi
fi
rm -f appversion.h

- name: Packaging binaries
id: packaging-job
if: |
github.event_name == 'release' &&
github.event.action == 'published' &&
startsWith(github.ref, 'refs/tags/')
run: |
rsync -a dist/ bin/win32/cstrike
rsync -a dist/ bin/linux32/cstrike
7z a -tzip regamedll-bin-${{ env.APP_VERSION }}.zip bin/ cssdk/

- name: Publish artifacts
uses: softprops/action-gh-release@v2
id: publish-job
if: |
startsWith(github.ref, 'refs/tags/') &&
steps.packaging-job.outcome == 'success'
with:
files: |
*.zip
env:
GITHUB_TOKEN: ${{ secrets.API_TOKEN }}

7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
**/build
**/.gradle
.idea
*.iml
*.bat
*.log
*.lnk
*.aps
**/msvc/Debug*
**/msvc/Release*
**/msvc/Tests
Expand All @@ -15,12 +13,11 @@
**/msvc/*.db
**/msvc/*.opendb
**/msvc/*.txt
**/msvc/*.aps
**/msvc/*.amplxeproj
**/msvc/.vs
**/msvc/ipch

regamedll/version/appversion.h
regamedll/msvc/PublishPath*.txt
regamedll/_regamedllTestImg
regamedll/_dev
publish
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "regamedll/extra/cssdk"]
path = regamedll/extra/cssdk
url = https://github.com/s1lentq/CSSDK.git
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cmake_minimum_required(VERSION 3.1)
project(regamedll CXX)

if (WIN32)
message(FATAL_ERROR "CMakeLists.txt Windows platform isn't supported yet. Use msvc/ReGameDLL.sln instead it!")
endif()

add_custom_target(appversion DEPENDS
COMMAND "${PROJECT_SOURCE_DIR}/regamedll/version/appversion.sh" "${PROJECT_SOURCE_DIR}"
)

add_subdirectory(regamedll)
Loading