Commit graph

37 commits

Author SHA1 Message Date
smallmodel
fe35e02ed4
Fixed weapon pickup logic, like player picking up the weapon indefinitely when reaching max ammo 2024-03-03 18:09:19 +01:00
smallmodel
76c9e4e048
Fixed pickup message appearing twice 2024-02-28 23:33:10 +01:00
smallmodel
07c840a4a9
Don't assert for NULL owner 2024-02-28 22:10:18 +01:00
smallmodel
35a8c4edfa
g_droppeditemlife: make sure the value is non-null 2024-02-28 22:10:07 +01:00
smallmodel
2d6ac6f0be
Fixed weapon melee AI broadcast 2024-02-25 19:15:41 +01:00
smallmodel
434a48af7d
Initialize m_iNumShotsFired 2024-02-06 22:57:37 +01:00
smallmodel
d5908bd75c
Fixed frag grenade spelling in SP 2024-02-04 16:30:31 +01:00
smallmodel
2e10a96d11
Crosshair must always be shown in 1.11 and below regardless of the property 2024-01-08 23:05:21 +01:00
smallmodel
3be17376e4
Fixed wrong landmine defuse direction 2023-12-28 18:55:43 +01:00
smallmodel
e50a041c12
SimpleEntity subclass flags name now starts with ECF_ prefix 2023-11-16 23:17:06 +01:00
smallmodel
c399f45841
Weapon::SetItemSlot() fixed missing bitwise negate 2023-11-15 19:36:09 +01:00
smallmodel
77eb7a5259
Added position and forward parameters to Sentient::GunTarget() 2023-10-17 19:45:22 +02:00
smallmodel
4368035da4
Remove the weapon from owner when being destroyed 2023-10-09 19:32:08 +02:00
smallmodel
334314a137
Fixed crash when the owner is NULL 2023-10-02 01:45:19 +02:00
smallmodel
98b7e01069
Implemented Weapon::SetItemSlot 2023-09-19 20:18:13 +02:00
smallmodel
6c7542ec0c
Fixed weapon muzzle position 2023-09-18 23:45:17 +02:00
smallmodel
e1093d0c0c
Using vec3_t instead of Vector for Weapon::GetMuzzlePosition() 2023-09-18 21:19:08 +02:00
smallmodel
acc9c241a3
Added const specifier for Weapon::IsCarryableTurret() 2023-09-17 16:27:58 +02:00
smallmodel
f4ec3939a5
Weapon::Shoot(): process default value in switch/case for firemode 2023-09-12 21:47:51 +02:00
smallmodel
c5a46be23e
Optimized calls to Event() (avoid allocating a new Event when it can be reused) 2023-09-07 18:22:07 +02:00
smallmodel
c2e24da9bd
Initialize tracerspeed to 1 (this fixes turret bullets on mohaas/mohaab) 2023-08-24 23:19:49 +02:00
smallmodel
03c5864034
Fixed secondarycharge animation 2023-08-17 22:37:09 +02:00
smallmodel
07b7f10912
Fixed UnlimitedAmmo() behavior (use the behavior from mohaas/mohaab) 2023-08-17 21:31:22 +02:00
smallmodel
c4738966fe
Using g_utils.cpp from fakk 2023-08-15 01:27:35 +02:00
smallmodel
f0571385d5
Export events for AISpawnPoint 2023-08-14 19:00:16 +02:00
smallmodel
973d7c5f34
Implemented Weapon::Charge
Cancel overcooked events in Weapon::ReleaseFire
2023-08-13 16:07:11 +02:00
smallmodel
a175ea27d7
Cleanup weapon class
Added ShowInfo, SetItemSlot and SetIdleState
2023-08-12 00:10:47 +02:00
smallmodel
64ba900511
Use GetRemoteOwner() properly 2023-08-11 03:09:33 +02:00
smallmodel
b0f26acc18
Fixed max movement time 2023-08-03 21:43:50 +02:00
smallmodel
ffa5a91cd2
Added Landmine and Defuse fire types for Shoot
Added GetUseCrosshair()
2023-08-02 19:53:14 +02:00
smallmodel
4c17d12fc6
Added new fire types
Added GetFireAnim()
Using m_sTagBarrel rather than an hardcoded tag name
2023-08-01 21:18:35 +02:00
smallmodel
0259f1a251
Reworked Weapon::ReadyToFire and Weapon::PickupWeapon with mohaas/mohaab features 2023-08-01 20:36:52 +02:00
smallmodel
b2be03cce3
Initialize all weapon vars, including mohaas/mohaab variables 2023-08-01 19:31:25 +02:00
smallmodel
7e054c8beb
Implemented all mohaas/mohaab events 2023-07-31 23:41:53 +02:00
smallmodel
6562bcb164
Added mohaas/mohaab weapon events (unimplemented) 2023-07-30 19:41:11 +02:00
smallmodel
5333c7ff4a
Removed empty line before opening braces 2023-07-05 20:52:55 +02:00
OM
e4fa0fff3a Renamed **game** to **fgame** 2023-06-15 23:44:02 +02:00
Renamed from code/game/weapon.cpp (Browse further)