Commit Graph

675 Commits

Author SHA1 Message Date
s1lentq
279bd6421b Fix crash 2024-04-08 12:41:22 +07:00
s1lentq
8c14d05168 Add fallback place names if BotChatter.db is missing 2024-04-07 18:49:08 +07:00
s1lentq
1ae0091947 Added CVar mp_location_area_info for display location area info in HUDs radio chat and below radar 2024-04-07 16:41:56 +07:00
s1lentq
f711276d8a ignore kill assist when victim killed himself while changing team 2024-04-04 19:31:27 +07:00
s1lentq
a546997723 CWeaponBox::Touch: Fixed a hang when touching a weaponbox if multiple items are packed in a slot 2024-03-31 22:46:06 +07:00
s1lentq
92775824e6 IsWalkableTraceLineClear: Fixed deadlock (mutual collisions in traces leading to hang) 2024-02-29 06:52:48 +07:00
s1lentq
5d2174fbbf CWeaponBox::Touch: Reworked dropped grenade pickup 2024-02-05 02:21:49 +07:00
s1lentq
4d90a5f4fa CWeaponBox::Touch: Fix grenade pickup (Resolves #923, Closes #931) 2024-02-01 18:20:11 +07:00
s1lentq
f4c4e891ac CBasePlayerWeapon::ExtractAmmo: Fixed reverse-engineering mistake 2024-02-01 16:38:16 +07:00
s1lentq
2489213127 Resetable g_weaponSlotInfo 2024-02-01 12:21:23 +07:00
Francisco Muñoz
fb9eb0db55
Fix excessive punchangle when getting shield shot (#919) 2024-01-31 19:38:35 +07:00
Rafflesian
0bc4ff1d40
Support for secondary ammo and extra EF_ flags (#934)
Support for secondary ammo and extra EF_ flags
2024-01-31 19:35:26 +07:00
s1lentq
5287f2a415 Do not reduce points for bot suicide due bot_kill command 2024-01-31 19:16:37 +07:00
s1lentq
0bbc4bd55d Do not reduce points for suicide due to a fatal fall 2024-01-31 19:14:04 +07:00
s1lentq
aec3ba2579 Fixed m_looseBombArea assertion 2024-01-31 18:33:34 +07:00
s1lentq
b34d564e3c PM_CheckWater: Fix for uninitialized waterlevel value for dead players (incorrect waterlevel values from another player movements persisting) 2024-01-31 17:52:38 +07:00
s1lentq
a1af7ca426 CBasePlayer::WaterMove: No water sound playback occurs when clients emerge from network lag or was using noclip 2024-01-31 17:40:47 +07:00
s1lentq
bde6aa07bc Disable door asserts (Resolves #926) 2024-01-31 15:51:44 +07:00
s1lentq
2d957a7915 utlvector.h fix assert 2024-01-31 15:10:08 +07:00
s1lentq
4b49f630da Fix mismatched damage glock18 in burst mode 18 against 25 (GLOCK18_DAMAGE) 2024-01-19 20:33:01 +07:00
Sergey Shorokhov
051dc0751a
New ConVar: mp_defuser_allocation (#908) 2024-01-12 11:55:00 +03:00
s1lentq
89dda43b21 fix test demo 2024-01-12 13:30:01 +07:00
s1lentq
02a0516c2f Reset damage stats on Putin Server 2024-01-12 13:19:01 +07:00
s1lentq
c0f47949ec PM_CategorizePosition: Do not stick to the ground of an OBSERVER or NOCLIP mode 2024-01-12 09:50:41 +07:00
s1lentq
e636cbc8f5 PlayerRelationship: GR_TEAMMATE on checking itself 2024-01-12 09:16:20 +07:00
s1lentq
d3c0ec8aeb Fixed crash bot when can see a loose bomb but didn't get closest area for bomb 2023-12-31 17:30:29 +07:00
s1lentq
991573f165 Fixed bot navigation route when connected area somehow is null 2023-12-31 07:56:45 +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
28e2bc45f6 Fix crash bot_nav_use_place when place name is not exists 2023-12-22 20:25:38 +07:00
s1lentq
b413577428 cleanup 2023-12-14 13:24:49 +07:00
Francisco Muñoz
f63b154637
Add member m_iGibDamageThreshold to control GIB damage threshold (#904)
* Add member m_iGibDamageThreshold to control GIB damage threshold
2023-12-14 06:01:34 +07:00
s1lentq
8c0b684046 Enable assert mode 2023-12-14 03:18:04 +07:00
s1lentq
abe648b9d6 Use custom assert instead normal 2023-12-14 03:16:27 +07:00
s1lentq
db5cbee2b8 Fix windows build 2023-12-14 03:05:40 +07:00
s1lentq
4928c56f21 Change some Asserts to DbgAssert 2023-12-14 02:54:32 +07:00
s1lentq
f97c9d9f46 Improve dbg code to work Assertion properly 2023-12-14 02:50:32 +07:00
s1lentq
806f5651de Fixed assertion check 2023-12-13 20:01:12 +07:00
s1lentq
85e882f4db utlvector.h add sort methods 2023-12-13 19:19:31 +07:00
s1lentq
8ed193d254 fix linux build 2023-12-13 19:14:01 +07:00
s1lentq
e6d25ba159 utlarray.h add sort methods 2023-12-13 19:01:25 +07:00
s1lentq
34e56f61f2 Minor refactoring API functions 2023-12-12 18:59:13 +07:00
s1lentq
d98e8f8b60 cleanup 2023-12-12 06:43:32 +07:00
s1lentq
0c29cf36fc UpdateClientData: No send health negative value to draw HUD 2023-12-07 03:52:45 +07:00
Francisco Muñoz
6863777b81
Initialize m_pevLastInflictor to nullptr to avoid garbage memory (#901) 2023-12-02 05:51:26 +07:00
Francisco Muñoz
f882e81efe
Update studio.h constants (#898)
* Update studio.h file, magic number change
- Updated studio.h header, limits increased according to engine ones, added missing structures (in case of)
2023-11-28 19:47:52 +07:00
Francisco Muñoz
d135a67bb7
Allow null player pointer in CreateWeaponBox (#899) 2023-11-27 15:22:33 +07:00
Francisco Muñoz
556406009f
Tiny API code clean (#897) 2023-11-26 12:59:01 +07:00
Ecnologia
15bca2eab9
Implements Observer_Think Hook (#894)
* Observer Think Hook
* Update CAPI_Impl.cpp
* Update CAPI_Impl.h
* Update regamedll_api.h
2023-11-26 11:27:09 +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
Francisco Muñoz
193c1ed52a
Fixed grenades disappearing when speed exceeds 2000 fixed units ignoring sv_maxvelocity (#888)
* Fixed grenades disappearing when speed exceeds 2000 fixed units ignoring sv_maxvelocity
* Clamp nades velocity to sv_maxvelocity value when reached
* Make IsInWorld behave like SV_CheckVelocity: less/greater without equal
* Enclose IsInWorld changes with FIXES macro
2023-11-26 11:24:48 +07:00
Javekson
b10489f2e0
Changed the order of setting pev->body for the correct value in SetBombIcon() (#893) 2023-11-26 11:24:29 +07:00
Francisco Muñoz
9ab1589d32
Use CSEntity member to hold last inflictor from TakeDamage (#896) 2023-11-26 11:21:04 +07:00
Federico Matías
e3d70d2b14
New CVars: mp_freezetime_duck and mp_freezetime_jump (#886)
* new cvars: prevent duck/jump during freezetime
* use CSGameRules() instead of g_pGameRules
* changed name of cvars and default value
* improved cvars description
2023-11-26 11:13:29 +07:00
fl0werD
2d0ac93f63
Implement PlayerDeathThink hook (#885) 2023-11-08 21:18:01 +07:00
Dmitry Novikov
c87761e182
Added updating more game info to the player who started recording the demo (#881) 2023-11-08 21:15:29 +07:00
s1lentq
2857986cc7 Reworked cvar mp_deathmsg_flags (use flags instead of bitsums) 2023-11-08 21:11:27 +07:00
s1lentq
96e2121c45 Improve CBaseTrigger::InitTrigger to allow use custom triggers without bsp model just origin,mins,maxs 2023-10-28 16:40:23 +07:00
Vaqtincha
426c975a88
Ammo type hardcode fix (#882)
* Useful for custom ammo types.
2023-10-25 11:37:32 +07:00
Francisco Muñoz
7e02dea4a0 Drop defuser on disconnect 2023-10-24 10:48:53 +07:00
Francisco Muñoz
a2678a18ed
Ensure HasPrimary flag assignation on successful weapon removal (#866) 2023-10-11 05:03:48 +07:00
Francisco Muñoz
e422a37d8b
Reduce code redundancy in observer.cpp (#872) 2023-10-11 05:03:11 +07:00
Francisco Muñoz
2f50f5ab9d
Group defuser give code in one function (#871) 2023-10-11 05:02:27 +07:00
Javekson
a9ec63df1b
Updated the GiveC4 to return a player pointer (#876) 2023-10-08 20:59:45 +07:00
Sergey Shorokhov
96ba309e4a
SG_Detonate: make event realible (#875) 2023-10-06 19:18:57 +03: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
b962e0eb8e Fixed #869 2023-09-30 14:54:32 +07:00
s1lentq
1e49d94792 Fixed no fall damage when ff_damage_reduction_other set 0 (also damage with ITBD_POISON) 2023-09-30 00:18:37 +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
67e7d87423
FIX: Reloading animation bug while holding weapon with altered Maxclip (#861)
* Add functions for default weaponinfo array
* Whitespace cleaning and pointer safety check
* Added reload condition to enhance conditions
2023-09-28 16:08:35 +07:00
Francisco Muñoz
8a52b7e38d
API: CSPlayer methods enhancement (#862)
* Adding return type to DropShield and DropPlayerItem
* JoinTeam: force C4 drop when changing to SPEC
2023-09-28 16:06:35 +07:00
Javekson
d7b44099e7
Refactored RemovePlayerItemEx and Extended DestroyItem in CBasePlayerItem (#864) 2023-09-28 16:06:04 +07:00
Alejo
ee34b06605
New CVar: mp_team_flash (#693)
* Added new CVar `mp_team_flash`
2023-09-05 11:10:38 +07:00
s1lentq
7b7a1b9d94 Bump minor version up to 23 2023-09-05 11:01:46 +07:00
Francisco Muñoz
1aae57fd17
Fix: Grenade weaponbox not deploying on unarmed player (#847) 2023-09-05 10:54:20 +07:00
Javekson
728f1fcc67
Fixed of m_lastDamageAmount recording during armor calculation (#857) 2023-09-05 10:53:22 +07:00
Dmitry Novikov
e8bff71475
Fixed crash sometimes occurring while zbot map analyzing (#844) 2023-09-05 10:53:05 +07:00
Francisco Muñoz
facc2be534
Various defuser fixes and code refactory (#848)
* Defuser code refactory and fix
2023-09-05 10:52:44 +07:00
Francisco Muñoz
2e6e77906f
Ensure m_pDriver assignation on func_vehicle only (#853) 2023-09-05 10:52:30 +07:00
Francisco Muñoz
f441279294
API: CSPlayer new members (physics related) (#851)
* CSPlayer new members
* API refactory in pm_shared.cpp
* Cached CSPlayer pointer in a global variable
* Changed PM_JumpHeight from lambda function to an inline function
* Changed m_flDuckSpeedMultiplier data type to double
2023-09-05 10:52:14 +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
s1lentq
f3723d7a04 Add reserve members for CCS Entity
Bump interface version up to CSENTITY_API_INTERFACE_VERSION003
2023-08-24 17:09:50 +07:00
s1lentq
02bb06a6ef Fixed bug when restarting a button using multisource (Do not use multisource when restarting a button) 2023-08-23 23:14:31 +07:00
Francisco Muñoz
53d26a7ea5
API: CSPlayerWeapon integration + new members and functions (#850)
- Member name changed to m_iStateSecondaryAttack
- Member type changed to uint8_t which has same size of bool but allows more values than true or false (this wont break API compatibility)
- Moved logic inside HasSecondaryAttack to correctly alter function return based on m_iStateSecondaryAttack, which can be (0) no value / null (1) set (2) block
-Removed logic in CBasePlayerWeapon::Spawn that caches the return value of HasSecondaryAttack, as this can only be overridden when set, rather than always
* Improve API compatibility
2023-08-23 21:27:35 +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
s1lentq
c526fa5885 Enable location feature if bots allowed or listen server is running 2023-07-16 04:17:14 +07:00
s1lentq
ad13545dac TutorMessageEvent::GetNextParameter: Fixed corrupted stack 2023-07-16 04:13:08 +07:00
Adrian Cirstea
718f0330f1
API: Implement PM_LadderMove hook (#740)
Related to https://github.com/s1lentq/reapi/issues/82
2023-07-16 03:48:44 +07:00
Francisco Muñoz
8a8f348755
Adjust gib's velocity limit according to sv_maxvelocity (#846)
* Adjust gib's velocity limit according to sv_maxvelocity
* Gib max velocity adjusted to sv_maxvelocity
2023-07-15 04:34:54 +07:00
Francisco Muñoz
11d6b086b4
Shield constants code cleaning (#843)
* Change constant name (SHIELDREN -> SHIELDGREN)

* Correct and separate constant names
2023-07-13 01:29:56 +03: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
Hamdi
e1d1c11992
add FTRACE_KNIFE flag (#817)
* trace flags

* remove unused flags

* add FTRACE_KNIFE flag
2023-07-11 05:57:50 +03:00
Sergey Shorokhov
6da11fa4dd
fix: bot_profile_db CVar use (#827) 2023-07-11 03:09:11 +03:00
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
a5f288fbd6
Fix Glock and Famas undesired ammo decreasing on burst mode (#832) 2023-07-10 16:36: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
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
Francisco Muñoz
12560c2b87
Make Knife back stab multiplier customizable (#834)
- Add Backstab multiplier CKnife member with default value
- Adding REGAMEDLL_API macros correctly to extended members of CKnife
- Added inline functions for specific values, considering original and new behaviour
2023-07-01 09:52:11 +07:00