Commit Graph

145 Commits

Author SHA1 Message Date
s1lentq
0bbc4bd55d Do not reduce points for suicide due to a fatal fall 2024-01-31 19:14:04 +07:00
Sergey Shorokhov
051dc0751a
New ConVar: mp_defuser_allocation (#908) 2024-01-12 11:55:00 +03:00
s1lentq
e636cbc8f5 PlayerRelationship: GR_TEAMMATE on checking itself 2024-01-12 09:16:20 +07:00
s1lentq
6c9019bcc8 Set KILLRARITY_KILLER_BLIND flag only when fully blind 2023-12-23 02:51:04 +07:00
s1lentq
0e68bedf24 Fixed rarity of kills suicide, thrusmoke and for some weapons 2023-12-23 02:43:42 +07:00
s1lentq
abe648b9d6 Use custom assert instead normal 2023-12-14 03:16:27 +07:00
s1lentq
806f5651de Fixed assertion check 2023-12-13 20:01:12 +07:00
Francisco Muñoz
fba9a335da
Avoid intro camera switching when only 1 trigger_camera available (#873)
* Add UTIL_CountEntities, adjust m_fIntroCamTime assignation
* Moved camera count caching to CheckLevelInitialized
2023-11-26 11:25:08 +07:00
s1lentq
2857986cc7 Reworked cvar mp_deathmsg_flags (use flags instead of bitsums) 2023-11-08 21:11:27 +07:00
Francisco Muñoz
7e02dea4a0 Drop defuser on disconnect 2023-10-24 10:48:53 +07:00
Javekson
a9ec63df1b
Updated the GiveC4 to return a player pointer (#876) 2023-10-08 20:59:45 +07:00
s1lentq
3a0970a1cd Fixed typo when checking a teammate 2023-10-05 16:26:03 +07:00
s1lentq
ac07e89269 Back to using MSG_ALL for the DeathMsg event in favor of backward compatibility (issue #868)
Minor refactoring
2023-10-01 01:30:56 +07:00
s1lentq
71c4e21385 Fixed a crash when killer is worldspawn 2023-09-29 01:19:31 +07:00
Dmitry Novikov
108db28143
Add an extended player's DeathMsg message (#858)
* Implemented rarity of kill and assist for extended user message DeathMsg
* Add hookchain CGameRules::SendDeathMessage
* Add domination and revenge
2023-09-28 16:18:15 +07:00
Francisco Muñoz
696f465977
API: Added new API funcs (6) and new Hookchains (21) (#849)
* Added few newest API Hookchains
* Added hookchain for PM_CheckWaterJump
* Added hookchain for PM_Jump
* Added hookchain for PM_Duck
* Added hookchain for PM_UnDuck
* Added hookchain for ClearMultiDamage
* Added hookchain for AddMultiDamage
* Added hookchain for ApplyMultiDamage
* Added hookchain for CSGameRules::TeamFull
* Added hookchain for CSGameRules::TeamStacked
* Added hookchain for CSGameRules::PlayerGotWeapon
* Added hookchain for CBotManager::OnEvent
* Added hookchain for CBasePlayer::EntSelectSpawnPoint
* Added hookchain for CBasePlayerWeapon::KickBack
* Added hookchain for CBasePlayerWeapon::SendWeaponAnim
* Added new PM_* Hookchains
* Added PM_WaterJump
* Added PM_PlayStepSound
* Added PM_AirAccelerate
* Added CBasePlayer::CheckTimeBasedDamage
* Added CBasePlayerWeapon::ItemPostFrame
* Added BuyItem and CSGameRules::Think
* AddAmmoNameToAmmoRegistry refactory
* Bump minor version in an API bump up to 23
2023-09-05 10:43:40 +07:00
Sergey Shorokhov
942776783b
mp_fadetoblack 2 fade timings now depends from mp_dying_time CVar and code fixes (#845)
Fix forcing 1-person view for players when `mp_fadetoblack = 2`;
 Fix player blackout on server entry when `mp_fadetoblack = 2`;
 Fix observer not being blinded when `mp_fadetoblack = 2`;
 Fix fadetoblack message timings using new CVar `mp_dying_time`.

fix #501
fix #506

Co-authored-by: s1lentq <s1lentsk@yandex.ru>
2023-07-16 15:55:58 +03:00
Francisco Muñoz
8ddda261fe
New CVars: mp_weapondrop and mp_ammodrop and fixes (#840)
* First implementation

* Update player.cpp

* Apply suggestions from code review

Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>

* Improve readability

* Improve readability x2

Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>

* Tabulation tip

* Compile error resolved

* Add mp_weapondrop 3: drop all weapons

---------

Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2023-07-10 15:45:24 +03:00
deprale
d2ea0d342f
fix incorrect player 3rd cam animations on death while frozen. (#815) 2023-04-01 00:53:04 +07: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
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
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
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
5b7159e8de Implement sv_alltalk 5 2021-06-15 12:59:58 +03:00
Vaqtincha
8d1f4fb673
Add weapon flag ITEM_FLAG_NOFIREUNDERWATER (#628)
Implement weapon flag ITEM_FLAG_NOFIREUNDERWATER to allow user to changes behavior firing underwater
2021-05-22 18:12:24 +07:00
s1lentq
f2ef23db61 Fixed flag 'k' mp_round_infinite (Fixes #614) 2021-04-16 00:15:21 +07:00
Vaqtincha
fc52871739
Refactoring (#540)
* Rename CMD mp_swapteams
* Remove unused CVar mp_mirrordamage
* Refactoring checks
2021-04-12 19:55:03 +07:00
Vaqtincha
913bfc6609
enhance CVar "mp_roundover" (#595)
enhance CVar "mp_roundover"
2021-04-12 19:45:49 +07:00
s1lentq
aae507c9f5 CHalfLifeMultiplay::SwapAllPlayers: Ignore HLTV 2021-01-04 22:26:35 +07:00
Alejo
9b10456590
Add newest feature of _cl_autowepswitch (#568) 2020-12-05 20:14:53 +07:00
Juice
5e24376237
Reset observers' m_flNextFollowTime before trying to find next target if previous target disconnected (#584) 2020-11-28 07:32:52 +07:00
etojuice
bbfc3fe589 lil fix 2020-11-12 02:26:59 +03:00
etojuice
b1c055369d Fix crash caused by ReloadMapCycleFile function 2020-11-12 02:25:00 +03:00
s1lentq
efb06a7a20 Fixed bug when the client reconnects, his body doesn't disappear. 2020-07-16 18:07:34 +07:00
shel
532c1326b4
Add more flags for round time expired to CVar mp_round_infinite.
Co-authored-by: shel <2@shelru.ru>
2020-06-13 16:39:41 +07:00
Vaqtincha
6c80744146
Add new CVar mp_falldamage (#539)
* Add CVar mp_falldamage
2020-05-27 08:26:45 +07:00
fant1kua
1784f87e24 Fix voice API bug (#469) 2019-12-19 15:31:00 +07:00
s1lent
dd6141eae7
Move beta features to release stage. 2019-12-17 21:25:24 +07:00
Shorohov Sergey
ded6b32e85 New CVar mp_give_player_c4 (#428)
* Add new CVar: mp_give_player_c4. - Whether this map should spawn a C4 bomb for a player or not.
2019-12-17 05:13:33 +07:00
fant1kua
27b2a8c8c9 Add API to set if player can hear another player (#467)
* Add API to set if player can hear another player
2019-12-14 17:24:40 +07:00
Vaqtincha
49965644c3 Refactoring (#418)
* unused cheat impulses.
* nadedrop fixes
* close equipmenu (VGUIMenus) when the player left the purchase area
* disable flashlight on kill
* don't handle cmd "become_vip" if map not have scenario assassination VIP.
* unreachable code item_thighpack
* remove "gEvilImpulse101"
* remove "giPrecacheGrunt"
* remove unused entitys (from hl)
* weapon HUD fixes
* don't remove level(map) item_thighpack
* hostage "far use" fix
* reset player basevelocity on spawn
* code style fix
2019-10-09 17:18:42 +07:00
s1lent
e199b16463
Introduce end-of-line normalization 2019-09-23 04:09:58 +07:00
s1lent
a7f20dc2e8 Implemented command param -beta to enables latest things from official. 2019-08-26 04:26:55 +07:00
s1lent
fcb597613b
Make restartable for func_healthcharger and func_recharge entities
Fix bug related to field "dmdelay" doesn't work properly
2019-08-11 21:12:36 +07:00
voed
3202d6d99c Fix VIP mechanic (#396)
Fix #355 
¯\\_(ツ)_/¯
2019-08-06 04:30:55 +07:00
s1lent
9ed19456f0 Print reason kick also added reason message for kick 2019-06-21 02:37:44 +07:00
s1lentq
62cb200a3b Removed cache of cvar sv_cheats ValveSoftware/halflife#2511 2019-06-08 02:29:53 +08:00
s1lent
e1c8211d6b
Updated latest changes:
ValveSoftware/halflife#555
ValveSoftware/halflife#702
ValveSoftware/halflife#2228
ValveSoftware/halflife#1276 (was fixed earlier REGAMEDLL_FIXES)
2019-06-05 18:31:32 +07:00
jeefo
e924a266b0 Do not ignore thirdparty bots in humans_join_team cvar checks. (#306)
Game dll considers third party bots as humans when dealing with humans_join_team cvar, thus making those bots to join team specified in this cvar.
2018-09-09 15:39:22 +07:00
s1lent
0022272244
Cosmetic changes 2018-05-22 16:29:08 +07:00