Sergey Shorokhov
a202425dd7
Fix: ammo
/weapons
respawn behavior ( #982 )
...
* `CBasePlayerAmmo`: check spawnflags on `Spawn()`
* `CBasePlayerItem`: check spawnflags on `Materialize()`
* `CBasePlayerItem`: Add `Respawn()` item when hasn't specific spawnflags
* `CBasePlayerItem`: remove `SF_NORESPAWN` flag on `Respawn()`
* Use forgotten `AMMO_RESPAWN_TIME`
2024-08-03 20:11:08 +03:00
s1lentq
c7be8bfe7c
MULTIDAMAGE: make check entity safe
...
ApplyMultiDamage: Fixed potential crash when in TakeDamage hook causes another additional damage
2024-05-31 23:21:37 +07:00
s1lentq
7372573c89
Add UTIL_IsValidPlayer
...
Ignore dormant players
Minor refactoring
2024-05-29 00:23:28 +07:00
Francisco Muñoz
4ecf42799d
Fix ApplyMultiDamage duplicated call on MultiDamage routine ( #946 )
2024-05-08 22:18:36 +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
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
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
4b49f630da
Fix mismatched damage glock18 in burst mode 18 against 25 (GLOCK18_DAMAGE)
2024-01-19 20:33:01 +07:00
s1lentq
abe648b9d6
Use custom assert instead normal
2023-12-14 03:16:27 +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
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
Javekson
d7b44099e7
Refactored RemovePlayerItemEx and Extended DestroyItem in CBasePlayerItem ( #864 )
2023-09-28 16:06:04 +07:00
Francisco Muñoz
1aae57fd17
Fix: Grenade weaponbox not deploying on unarmed player ( #847 )
2023-09-05 10:54:20 +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
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
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
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
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
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
67cc153f5d
Fix "use accuracy from last bullet fired earlier" glitch. ( #662 )
...
* Fixes "use accuracy from last bullet fired earlier" glitch.
* fix newline at wapons.h
Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
2021-08-31 14:05:25 +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
9736437cb8
Remove gradle build system & Cleanup
2021-04-12 21:51:51 +07:00
s1lentq
b0d0ffedff
Revert mp_refill_bpammo_weapons 3
2020-10-27 01:01:28 +07:00
fl0werD
4f7252525e
Add m_bCanShootOverride member ( #527 )
...
Add m_bCanShootOverride member
Allow to override m_bCanShoot, for example able to fire at freeze time
2020-05-02 17:11:49 +07:00
fl0werD
e1b62d2495
DefaultDeploy fix allocation string issue for 3rd-party ( #494 )
2020-01-14 14:58:43 +07:00
s1lent
3b612dc857
Move some new features to REGAMEDLL_ADD
2019-12-17 21:19:52 +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
Shorohov Sergey
aeea713a19
New CVar mp_weapons_allow_map_placed ( #429 )
...
* Add new CVar: mp_weapons_allow_map_placed - When set, map weapons (located on the floor) will be shown.
2019-10-27 21:15:45 +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
6955ae9f65
Armor pickup fix ( #425 )
...
fix "item_kevlar/ item_assaultsuit" items touch
fix "ArmorType" message on pickup
2019-09-23 01:46:16 +07:00
s1lent
c2f62eb98a
Fix newlines
2019-09-22 21:29:29 +07:00
s1lent
a2a6997278
armoury_entity: Don't pick up dual elites if player carry shield.
...
Minor refactoring
2019-09-11 00:19:28 +07:00
s1lent
7ac1e0db2f
Enhanced behavior armoury_entity with czbot, don't pick up if forbidden by cvars
2019-09-11 00:04:18 +07:00
s1lent
29a94ddbb8
mp_infinite_ammo 1: Fixed grenade throw
2019-09-08 22:28:23 +07:00
s1lent
69e5c854e2
Implemented cvar mp_infinite_grenades.
...
Reworked cvar mp_infinite_ammo, not include grenades
2019-08-26 05:45:27 +07:00
s1lent
2568d9a2fa
Added new cvar mp_infinite_ammo also implemented API things for this.
...
Moved behavior cvar mp_refill_bpammo_weapons 3 into mp_infinite_ammo 2 as it was implemented in the official.
CM3/CXM1014 implemented override func PlayEmptySound.
2019-08-13 19:02:04 +07: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
s1lent
8c2dd77220
comeback item_security, item_suit for custom mods/maps
2018-05-22 16:44:53 +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
s1lent
10ee63d807
Fix nade drops
...
Move m_bHasSecondaryAttack to CCSPlayerWeapon
2017-11-03 23:33:17 +07:00
s1lent
026a55eba0
Closes #176
2017-11-01 23:46:37 +07:00
s1lent
9dcab4bd49
Refactoring minor
...
Refactoring unicode_strtools
2017-11-01 18:30:47 +03:00
s1lent
32df585edc
Remove hookers stuff
...
Refactoring & cleanup code
2017-11-01 18:30:47 +03:00
s1lentq
9a91e9ca38
Refactoring
...
Reworked ammo stuff
2017-11-01 18:30:47 +03:00