Francisco Muñoz
6375ea5504
Little code cleaning: g_vecAttackDir ( #831 )
...
* Tiny code cleaning
* Skip REGAMEDLL_FIXES
* UTIL_BloodDrips: remove useless `direction` param
* Fix test demo (RANDOM_FLOAT inside UTIL_RandomBloodVector should be called for testdemo)
---------
Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
Co-authored-by: s1lentq <s1lentsk@yandex.ru>
2023-07-11 03:01:53 +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
Francisco Muñoz
d4deabfe59
CZero
: Fix broken Career Tasks (#836 )
...
* Fix HandleEnemyKill params and Hostage target detection
* Var name mistake
* Grouping more code on FIXES macro
2023-07-10 15:44:31 +03:00
Vaqtincha
2f88574a94
Weaponbox ammopack hardcode ( #533 )
2023-04-01 01:09:41 +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
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
RauliTop
9a001cabd1
Fix TimeBasedDamage
Paralyze decl typo ( #748 )
...
[skip ci]
2022-12-16 12:13:42 +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
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
Vaqtincha
6c47f96998
Fix player_weaponstrip ( #735 )
...
* fix player_weaponstrip
2022-04-16 19:11:13 +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
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
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
fl0werD
38dda25a84
Implement player Pain, DeathSound and JoiningThink hooks ( #607 )
2021-08-29 07:12:25 +03:00
AlexSwartz
191857d700
Add new CVar mp_free_armor
( #609 )
2021-06-22 14:48:55 +03:00
Sergey Shorokhov
1ac96b8180
Implement CBasePlayer::HasTimePassedSinceDeath()
for m_fDeadTime
( #648 )
...
* Implement CBasePlayer::HasTimePassedSinceDied() for m_fDeadTime
2021-06-21 11:59:34 +03:00
Vaqtincha
ab846f86f4
enhance "player_weaponstrip" entity ( #634 )
...
* enhance "player_weaponstrip" entity
* update fgd
2021-06-06 19:17:07 +07:00
Vaqtincha
548cca5e5f
Forcerespawn fix ( #623 )
...
* Dead players now respawn after enabling the mp_forcerespawn
* use timer instead of instant spawn
2021-06-06 19:16:09 +07:00
Vaqtincha
d80d87366a
game_player_equip fixes/enhancement ( #618 )
...
* game_player_equip: Check UseOnly flag
* New flag SF_PLAYEREQUIP_REMOVEWEAPONS
2021-05-22 18:15:28 +07:00
Vaqtincha
bbc54cd30e
Immunity enhance ( #621 )
...
* CVar 'mp_respawn_immunity_force_unset' new value (2)
* Send StatusIcon to player (for visual information) works with mp_respawn_immunity_effects 1
2021-05-22 18:04:43 +07:00
s1lentq
9736437cb8
Remove gradle build system & Cleanup
2021-04-12 21:51:51 +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
Juice
8d6bf017f5
Reset client m_signals on fullupdate ( #588 )
2020-12-02 17:46:12 +07:00
jeefo
519b7db38d
Fixed memory leak with hintmessage. ( #581 )
...
Fixed memory leak with hintmessage.
2020-11-22 02:19:50 +07:00
Shorohov Sergey
3878f46678
Add new CVar's for default weapons ( #470 )
2020-06-17 23:42:40 +07:00
Vaqtincha
27c15c38f6
Player reset zoom & speed. ( #541 )
...
* RemoveAllItems: reset (update) player speed.
* RemoveAllItems: reset player zoom.
* RemovePlayerItem: reset player zoom & speed
* CFuncTank->StartControl: fully reset zoom.
2020-05-27 08:33:10 +07:00
fl0werD
a20362389e
Remove respawn dependency on forcerespawn cvar ( #537 )
...
* Remove respawn dependency on forcerespawn cvar
Able to set custom respawn time for m_flRespawnPending without mp_forcerespawn enabled
* workaround when disabling forcerespawn must stop works immediately
* just block respawn then cvar disabled without reset for correct cvar logic
2020-05-27 08:20:59 +07:00
s1lent
5bbba22218
CreateWeaponBox: Remove constantly vector arguments
2020-04-02 18:28:46 +07:00
fant1kua
73f5d6d473
Create weaponbox hook ( #521 )
...
* Add SpawnWeaponBox hook
2020-03-27 09:17:41 +07:00
s1lent
23172c0855
Fix for CVars mp_scoreboard_showhealth/mp_scoreboard_showmoney
2020-03-05 19:21:40 +07:00
s1lent
593d1e1450
Enhanced CCSPlayerItem::GetItemInfo
2020-02-12 18:34:40 +07:00
s1lent
3f6d9db420
Fixed some compiler warnings
...
Fixed a appversion.sh when the path may contain spaces
2020-02-06 19:14:36 +07:00
s1lent
d8208f0884
Added support building using cmake
...
Added support clang compiler
Fixed some compiler warnings
Update README.md
2020-02-06 04:32:20 +07:00
Shorohov Sergey
2eba3b1186
CVar mp_fadetoblack enhancement ( close #463 ) ( #471 )
...
CVar mp_fadetoblack enhancement
2020-01-15 23:49:45 +07:00
s1lent
46f697fb46
Implemented CVar mp_respawn_immunity_force_unset Closed #462
2020-01-15 22:23:43 +07:00
s1lent
6ff75da41c
Implemented CVar mp_scoreboard_showdefkit Closed #472
2020-01-15 22:11:46 +07:00
Dmitry
7983a9d929
Fix bug with radio commands ( #480 )
...
* Fix bug with radio commands
2019-12-26 16:36:38 +07:00
Dmitry
7b0dab916d
Ignorerad command small optimization ( #481 )
2019-12-25 19:36:26 +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
Dmitry
fd06d655ec
Implement RG_CBasePlayer_DropIdlePlayer hook ( #444 )
2019-11-02 15:48:23 +07:00
fant1kua
dbf08416fd
Implement RG_CBasePlayerWeapon_CanDeploy & CBasePlayerWeapon_DefaultDeploy hooks ( #420 )
...
* Implement CBasePlayerWeapon_CanDeploy & CBasePlayerWeapon_DefaultDeploy hooks
* Implement CBasePlayerWeapon_DefaultReload hook
* Fix CBasePlayerWeapon_CanDeploy hook for grenades
* Fix CBasePlayer::CanDeploy
* ImplementRG_ CBasePlayerWeapon_DefaultShotgunReload hook
2019-10-27 21:17:12 +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
Vaqtincha
e80a766870
StatusText: Don't show hp on ffa mode ( #431 )
...
* StatusText: Don't show hp on ffa mode
* same fixes for new features (scoreboard show money/health)
2019-10-09 17:09:23 +07:00