Francisco Muñoz
e08cf1e72a
Disable BotPrecache whether game is CS 1.6 ( #839 )
2023-07-01 09:48:33 +07:00
s1lentq
94bf705196
RemovePlayerItemEx: Do not remove the grenade weapons until it runs out of ammo
2023-04-27 17:24:29 +07:00
s1lentq
4b4cd88feb
RemovePlayerItemEx: Reduce ammo supply for grenades and c4
2023-04-27 01:01:46 +07:00
Sergey Shorokhov
e090a52846
Add Visual Studio 2022 (17.0) Platform Toolset ( #820 )
...
* Add Visual Studio 2022 (17.0) Platform Toolset
2023-04-03 22:16:36 +03:00
Vaqtincha
2f88574a94
Weaponbox ammopack hardcode ( #533 )
2023-04-01 01:09:41 +07:00
Vaqtincha
c756bf89d1
* fix bug when picking weaponbox grenades with ammo > 1 ( #669 )
...
* fix bug pickup sound (if the player has ammo > 0)
2023-04-01 01:03:03 +07:00
Unreal Karaulov
4a7a63533c
Missing friendlyfire after previous commit ( #805 )
...
* Missing friendlyfire after previous commit
Fixes https://github.com/s1lentq/ReGameDLL_CS/pull/798 issue.
2023-04-01 00:57:16 +07:00
Hamdi
dce06e91c2
Add new trace flags ( #813 )
2023-04-01 00:53:43 +07:00
deprale
d2ea0d342f
fix incorrect player 3rd cam animations on death while frozen. ( #815 )
2023-04-01 00:53:04 +07:00
fl0werD
eb91f9280d
Add FreeGameRules hook, util api functions, player api functions ( #808 )
2023-03-13 02:33:15 +07:00
Sergey Shorokhov
8ff30b4c3e
Revert "New entity trigger_bomb_reset
( #796 )"
...
This reverts commit 5dec3bad32
.
2023-03-11 11:23:30 +03:00
Sergey Shorokhov
5dec3bad32
New entity trigger_bomb_reset
( #796 )
...
* Init
* Implementation
* Add `trigger_bomb_reset` to `.fgd`
* Set CC4 position on CC4::AttachToPlayer()
* move to `addons/trigger_bomb_reset`
* rename method & member
* CTriggerBombReset: Add `SetUse()`
2022-12-18 00:17:02 +03:00
RauliTop
7caf748a61
Fix: 'fast fire glitch' at AUG/SG552 ( #734 )
...
* Fix 'fast fire glitch' at AUG/SG552
Bug is caused because of not checking his FOV in some conditions.
* refactoring
Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2022-12-17 23:49:05 +03:00
Federico Matías
1c68cb0c98
FIX: Unexpected behavior with mp_forcerespawn
( #653 )
...
* Unexpected behavior with mp_forcerespawn leading to a possible exploit
Basically there is an exploit (or bug?) where depending on mp_forcerespawn if his value is higher to 0 and lower than 1, when you respawn you have a brief window to change your team, if you succesfully manage to change your team between the mp_forcerespawn value and WITHOUT closing the change appearance menu, you won't die due to "m_fNextSuicideTime", that will trigger the change team but without actually changing your skin model, you will keep the enemy one but the team change will success.
Thanks https://github.com/metita for helping me with this
Co-Authored-By: metita <33007491+metita@users.noreply.github.com>
* Revert "Unexpected behavior with mp_forcerespawn leading to a possible exploit"
This reverts commit 73d1c16706
.
* fix: nullify `m_fNextSuicideTime` before call `ClientKill()`
* ClientKill: refactoring
* add forgotten if-statement
* remove macros
Co-authored-by: metita <33007491+metita@users.noreply.github.com>
Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2022-12-17 19:45:04 +03:00
Adrian Cirstea
15e7d4a11e
Implement game_round_start
& game_entity_restart
triggers ( #754 )
...
* Added `game_entity_restart` for entities and `game_round_start` for round start
Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2022-12-16 13:10:01 +03:00
RauliTop
9a001cabd1
Fix TimeBasedDamage
Paralyze decl typo ( #748 )
...
[skip ci]
2022-12-16 12:13:42 +03:00
Sergey Shorokhov
ab2bfd4b9d
little code fixes ( #798 )
...
* weapons.cpp fix compile warning
`warning C4715: 'GetBaseAccuracy': not all control paths return a value`
* vihicle.cpp: use PlayerRelationship()
thanks to cf8deb9cac (r92242848)
Co-authored-by: Vaqtincha <51029683+Vaqtincha@users.noreply.github.com>
2022-12-15 16:06:08 +03:00
Vaqtincha
980162774a
fix: Reset immunity effects always ( #788 )
...
* Reset immunity effects always
* add new member m_bSpawnProtectionEffects
2022-12-15 16:04:34 +03:00
Unreal Karaulov
cf8deb9cac
Update func_vehicle for multiplayer ( #792 )
...
* Update func_vehicle for multiplayer. Added mp_legacy_vehicle_block cvar.
* Update dist/game.cfg
Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
* Update regamedll/dlls/game.cpp
Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
* Fix default behavior
* Optimization
Thanks to https://github.com/s1lentq/ReGameDLL_CS/pull/737#issuecomment-1068038171 help!
* Update README.md
Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2022-12-07 02:11:25 +07:00
s1lentq
dae415df66
Disable CHalfLifeMultiplay::Think in training to avoid changing level when time limit has been met and other multiplayer features
2022-12-05 19:52:13 +07:00
s1lentq
2d44adae43
Call OnCreate after full creation
2022-11-28 18:23:02 +07:00
fl0werD
84f1f5e4c6
New CVar: mp_hostages_rescued_ratio
( #786 )
...
* Add mp_hostages_rescued_ratio cvar
* Add restriction of the CVar value
Co-authored-by: Sergey Shorokhov <sergeyshorokhov@csgo.com>
2022-11-24 20:16:37 +03:00
Vaqtincha
946b5a9db0
Correcting code style and config ( #783 )
...
* cosmetic changes (for perfectionists)
* cosmetic changes (in sdk)
* add quotes for all cvar values
2022-11-24 19:04:42 +03:00
Sergey Shorokhov
d8702df548
fix for previous commit
2022-10-08 20:35:12 +03:00
666JuL
83151aaf0b
New CVar: mp_give_c4_frags
( #776 )
...
Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2022-10-08 20:32:30 +03:00
Adrian Cirstea
98b387bb68
Add an argument to swapteams
command ( #739 )
...
* Added an argument to `swapteams` command
* Updated `README.md` `swapteams` description
* Fixed check arguments count
* better arg usage
* better notations for readme
* better desc
Co-authored-by: Sergey Shorokhov <sergeyshorokhov@csgo.com>
2022-09-15 19:52:54 +03:00
Sergey Shorokhov
e83eeaed39
fix: update scoreboard attributes on defuser pickup ( #770 )
2022-09-15 16:45:32 +03:00
s1lentq
10813019c8
UTIL_ResetEntities: Crash fixed, sometimes returns NULL for 1 index
2022-06-14 19:31:34 +07:00
SmileyAG
21dab90571
Added spawnflags for keep player angles & velocity in trigger_teleport ( #747 )
...
* Added spawnflags for keep player angles & velocity in trigger_teleport
Co-authored-by: etojuice <etojuice@yandex.ru>
2022-04-28 18:33:39 +07:00
Vaqtincha
6c47f96998
Fix player_weaponstrip ( #735 )
...
* fix player_weaponstrip
2022-04-16 19:11:13 +07:00
Juice
db76e604df
Clamp moving entities' sounds volume ( #751 )
2022-04-11 15:32:00 +07:00
Alejo
f050be77db
fix respawn protection icon hiding ( #695 )
...
Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2022-03-13 17:35:42 +03:00
Vaqtincha
0bbad64944
g3sg1 animation duration fix ( #670 )
2022-02-19 17:50:59 +07:00
Vaqtincha
bbf4541361
Fixed missing localized string for several weapons WeaponBuyAliasInfo ( #729 )
2022-02-13 01:48:20 +07:00
Nord1cWarr1or
c002edd5b1
player.cpp: UpdateClientData()
: fix observer crosshair bug ( #672 )
...
hide observer crosshair if we cancel HIDEHUD_CROSSHAIR.
2021-12-28 19:23:17 +03:00
Juice
09a6c61898
Reset m_flNextFollowTime
before trying to find next target after previous target death ( #712 )
...
* Freelook bug fix
* Update regamedll/dlls/player.cpp
Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2021-12-28 03:07:43 +03:00
Nord1cWarr1or
2ac5bdee15
update score status constants ( #674 )
...
* cdll_dll.h: add `SCORE_STATUS_NONE` constant
* player.cpp: SetScoreAttrib: add `SCORE_STATUS_NONE` constant
related to https://github.com/s1lentq/reapi/pull/214
2021-10-28 14:30:21 +03:00
Alejo
112326aa63
New CVar: mp_plant_c4_anywhere
( #692 )
...
* Added new CVar `mp_plant_anywhere`
* API member for CVar `m_bCanPlantAnywhere`
Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2021-10-28 14:10:02 +03:00
StevenKal
53181d3e9b
CItemAirBox: Fix flight to the moon! ( #697 )
...
* Update item_airbox.cpp
Also reset the velocity on Touch, just to avoid the "invisible" entity to keep moving.
Let the reset on "Restart" too in case of, despite facultative.
Final version: Reset all the axes of the velocity to make the sure the item spawns with a complete null velocity (I did not do that before more in order to take in consideration the possible custom X/Y speed we could give to them, like via plugin, but I finally decided to clean up all, the plugins could still affect it later if needed).
2021-10-28 03:19:09 +03:00
Alejo
b9cccc691b
New CVars: sv_autobunnyhopping
and sv_enablebunnyhopping
( #686 )
...
* Add bunnyhopping
* Add missing cvar register. Added cvars to readme and cfg
* API added
* Changed define
2021-10-20 19:18:30 +03:00
Alejo
c6187f3dc7
mp_free_armor small fix ( #685 )
2021-10-14 16:10:16 +03:00
Juice
dd243eaa0b
Update player counts ( #684 )
...
* Update player counts in CheckWinConditions and SwitchTeam
* Add UTIL_SpectatorsInGame and update MaintainBotQuota
2021-10-14 13:54:09 +03:00
Sergey Shorokhov
da24c74c20
player.h: fix ForEachItem()
items iteration
2021-09-13 23:51:01 +03:00
Sergey Shorokhov
667242fadd
Fix m_flAccuracy
calculation ( #677 )
...
* weapons.h: Add `*_ACCURACY_DIVISOR` constants
* fix `m_flAccuracy` spray calculation
2021-09-13 15:28:43 +03:00
jeefo
bb97adefed
Disable thread-safe initialization for static local variables in VS2015+ when XP toolset is used. ( #673 )
2021-09-07 14:41:12 +03:00
Sergey Shorokhov
9233f852ca
CSEntity.h: Move reserve funcs to private
2021-09-02 20:47:36 +03:00
Vaqtincha
5aec8aac7e
Bot fixes ( #659 )
...
* Bots only attack breakable objects
* Fix reversing-engineering mistake
2021-08-31 23:17:28 +03:00
Sergey Shorokhov
7e2279f8c5
Implement CBasePlayer::Observer_FindNextPlayer()
hook ( #667 )
...
* Implement Observer_FindNextPlayer hook
Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2021-08-31 22:04:32 +03:00
FEDERICOMB
983500c9bd
Implement CCSEntity::FireBuckshots
( #651 )
2021-08-31 21:59:28 +03:00
FEDERICOMB
d079f26fc1
Implement CGib::SpawnHeadGib and CGib::SpawnRandomGibs ( #650 )
2021-08-31 21:57:54 +03:00