Commit Graph

70 Commits

Author SHA1 Message Date
s1lentq
19714af6e6 get rid of unsafe string functions
minor refactor
2024-09-13 06:43:27 +07:00
Francisco Muñoz
b6c2c62e8b
Added mp_vote_flags and mp_votemap_min_time cvars (#990)
* Added mp_vote_flags cvar
* Added mp_votemap_min_time cvar
* Cvars on README
* game.cfg cvars
* Ensure timers check before new restrictions
2024-08-12 13:45:54 +07:00
s1lentq
9f66264562 KillOfRarity: Add feature in-air kill 2024-05-09 02:38:12 +07:00
Federico Matías
8ec5b6cd0f
Fix SendDeathMessage kill rarity flags and transform to VFUNC (#943)
* implement VFUNC to `SendDeathMessage`
* fix use KILLRARITY_HEADSHOT flag instead of member
* fix rare crash when pAssister is nullptr
* fix KILLRARITY_DOMINATION_BEGAN flag
This flag was never valid in "SendDeathMessage" hook
* set iDeathMessageFlags before call function
2024-05-08 22:59:40 +07:00
Sergey Shorokhov
051dc0751a
New ConVar: mp_defuser_allocation (#908) 2024-01-12 11:55:00 +03: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
Javekson
a9ec63df1b
Updated the GiveC4 to return a player pointer (#876) 2023-10-08 20:59:45 +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
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
8a18969be1
New CVar: mp_dying_time (#483)
* Add new CVar: mp_dying_time < 0 .. 999>

* Add description

* magic numbers to named const

* magic numbers to named const (№2)

* cvar value handling

* update description

* a better description

* resolve conflicts

* lil order fixes & indent

* remove death animation skip

* DYING_TIME -> DEATH_ANIMATION_TIME

* Fix death animation when mp_dying_time < 3.0 depending on animation

* change desc

* change cvar desc

---------

Co-authored-by: dystopm <fjmunozpena@gmail.com>
2023-07-12 20:43:37 +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
fl0werD
eb91f9280d
Add FreeGameRules hook, util api functions, player api functions (#808) 2023-03-13 02:33:15 +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
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
s1lent
c2f62eb98a
Fix newlines 2019-09-22 21:29:29 +07:00
s1lent
96938aec55
ReGameDLL API: Implement BGetICSEntity/BGetIGameRules for check safe version interface. 2019-08-29 23:08:24 +07:00
Shorohov Sergey
b7c710626e Radio enchance cvars (#394)
* Added a new CVar's for Radio messages control.
 "mp_radio_timeout" - Delay between player Radio messages;
 "mp_radio_maxinround" - Maximum Radio messages count for player per round.
2019-07-30 19:30:34 +07:00
s1lent
555b08faa6
Added new cvar bot_join_delay 2019-06-22 03:10:59 +07:00
s1lent
3442cb3bf3
Enhanced bot_quota_mode 2019-06-22 02:57:09 +07:00
s1lent
94f0fdb8a6
Closes #357
Reducing allowable money limit cuz a HUD can't draw more than 999k
2019-04-23 19:56:40 +07:00
s1lent
0022272244
Cosmetic changes 2018-05-22 16:29:08 +07:00
s1lent
4e89da4628
ReGameDLL API: Implemented hookchain's CSGameRules::CanPlayerHearPlayer, CBasePlayer::SwitchTeam, CBasePlayer::CanSwitchTeam, CBasePlayer::ThrowGrenade, CWeaponBox::SetModel, CGrenade::DefuseBombStart, CGrenade::DefuseBombEnd, CGrenade::ExplodeHeGrenade, CGrenade::ExplodeFlashbang, CGrenade::ExplodeSmokeGrenade, CGrenade::ExplodeBomb, ThrowHeGrenade, ThrowFlashbang, ThrowSmokeGrenade, PlantBomb 2018-01-27 23:31:30 +07:00
s1lent
7f9cf53c49
Refactoring 2017-11-23 00:43:30 +07:00
Shorohov Sergey
411761c8d8 Added a new CVar: "mp_item_staytime" - Time to remove item that have been dropped from the players. (#212) 2017-11-13 05:20:07 +07:00
In-line
022115cc35 Disable buyicon/buymenu according to info_map_parameters (#205) 2017-11-11 19:30:31 +07:00
s1lent
2174205530
Move m_rgRewardAccountRules_default to CHalfLifeMultiplay 2017-11-04 06:16:30 +07:00
s1lent
9374fced90 Fixes dreamstalker/rehlds#402 2017-11-01 18:30:47 +03:00
s1lent
32df585edc Remove hookers stuff
Refactoring & cleanup code
2017-11-01 18:30:47 +03:00
s1lent
b25e3505d3 Major refactoring & cleanup 2017-11-01 18:30:47 +03:00
Vaqtincha Oshiq
462dc9986d Small fixes (#178)
Reset m_rgRewardAccountRules on CHalfLifeMultiplay()
added missing reward rule RR_TOOK_HOSTAGE
2017-08-19 20:13:45 +03:00
s1lent
adaddda871
Code cleanup
Hookers Refactoring
Removed __MAKE_VHOOK
Fix compilation under linux with ICC 17 (GCC 6.2)
2017-07-02 18:54:33 +07:00
Saint146
f46cb5a635 Added cvar mp_restart_round_delay (#109)
* Added cvar bot_quota_mode
* Added cvar mp_restart_round_delay
2017-05-04 01:45:36 +03:00
s1lentq
a5dac3c267 Backport #76
Refactoring
Some small fixes and improves
Reworked mp_forcerespawn and hookchain InternalCommand
Fixed fail compilation in VisualStudio
Bump minor version in gradle.properties
Update README.md
2017-01-21 22:49:56 +07:00
s1lentq
7238f215e2 Fix: count of time from the start of the round. (Related #77)
Fix: Kicked idle the client's by timeout when mp_roundtime is 0.
Fix: Don't update team score when the round ending by time and game has not started.
Update README.md
2016-12-12 21:33:51 +07:00
s1lentq
c77486dadd Get rid of spec-crosshair from gameplay. (Useless)
Reworked hookchain's: SetClientUserInfoName, GiveNamedItem
Added hookchain's: DropShield, MakeVIP, MakeBomber, GetIntoGame, Disappear, Radio, StartObserver, OnSpawnEquip
Refactoring
2016-12-07 02:28:33 +07:00
s1lentq
42edf0ebec Fix crash when self-build navigation areas
Added cvar's mp_fragsleft, mp_fraglimit, showtriggers (also handling mp_timeleft)
Removed client cmd's (like cd, kill) - they are in the black list of cl_filterstuffcmd.
Refactoring
2016-10-05 22:27:50 +07:00
s1lentq
f27b125d15 Refactoring.
Removed useless entities: (item_security, item_suit)
Bugfix: was resetting m_iCount from armoury_entity
Bugfix: incorrect check with pev->takedamage in CBaseEntity::TraceAttack, CBaseMonster::TraceAttack
Bugfix: zBot not continues to play after defused bomb and when mp_round_infinite is not 0
2016-07-14 21:12:17 +07:00
s1lentq
f071682392 Fix #43
Added hook api CanBuyItemThis
Use BOOL for TakeDamage/TakeHealth because should return TRUE/FALSE
2016-06-19 18:00:44 +07:00
s1lentq
21b0689030 Moved SelectDefaultTeam the function to CHalfLifeMultiplay. 2016-06-15 20:10:40 +07:00
s1lentq
aaf1d9648e Added cvar mp_auto_join_team 2016-06-15 19:46:25 +07:00
s1lentq
7caa82b054 Removed the dependency of the mode FFA from the cvar mp_friendlyfire 2
Added cvar mp_freeforall for FFA
Reworked cvar bot_deathmatch
2016-06-14 22:10:39 +07:00
s1lentq
d6b59dc0c3 Added cvar bot_deathmatch #39
Added checks for null pointers into GetPlayerGaitsequence
Fixed mp_nadedrops: If pressed a the button attack before player death, then not drop nades to ground.
Compiler: remove rrti, added -ipo
Refactoring
2016-06-14 20:14:31 +07:00
s1lentq
e6df6ef577 Added cvar mp_refill_bpammo_weapons
Added new things for API
Update README.md
2016-06-08 16:20:18 +07:00
s1lentq
1fc388a2cc Bugfix: game_playerspawn called when fullupdate (ResetHUD)
Mini-refactoring
2016-06-03 15:15:59 +06:00
s1lentq
9203344b98 Added argument about type awards to CBasePlayer::AddAccount
Some adjustments in RadiusDamage
2016-05-26 01:21:40 +06:00
s1lentq
b6e0420365 Added api hook ShowMenu, ShowVGUIMenu
Unlocked some cvars limit of the value #34
2016-05-23 04:51:21 +06:00
s1lentq
32d0c580dc Added api hooks gamerules functions 2016-05-18 20:09:14 +06:00
s1lentq
bba210b6a1 API: Added hook InstallGameRules 2016-05-02 19:21:43 +06:00
s1lentq
982d12176e Reworked mp_nadedrops 2
Added #31: cvar mp_roundrespawn_time
Added hook CanBuyThis
Added api functions: UTIL_FindEntityByString, GetWeaponInfo
2016-05-01 20:37:25 +06:00