Commit graph

53 commits

Author SHA1 Message Date
smallmodel
bbdbe62930
Let SetOwner() assign the edict's ownerNum
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 15s
2025-01-07 21:41:49 +01:00
smallmodel
5f236d4d42
Fix projectiles having an unassigned weapon owner
Some checks failed
CodeQL / Analyze (push) Waiting to run
Build branch / build-all (push) Failing after 1m43s
This fixes weapons that shoot projectiles not being taken into account for being the preferred weapon
2025-01-05 23:57:08 +01:00
smallmodel
e2f4d8cd6b
Use explicit constants when checking g_gametype 2024-11-22 19:44:53 +01:00
smallmodel
3790f057e1
Fix an infinite loop in BulletAttack
This would be caused by an entity that is inside another entity, like 2 actors at the same location
2024-11-21 20:41:57 +01:00
smallmodel
2342f08a79
Print the new damage when g_showbullettrace is turned on 2024-11-17 18:02:57 +01:00
smallmodel
ffdfbc3c7d
Fix the bullet stopping after the first entity 2024-11-16 21:57:12 +01:00
smallmodel
fcc4e94655
Continue traveling if the bullet trace goes backwards 2024-11-10 19:02:59 +01:00
smallmodel
332d209f62
Check if the turret's vehicle entity is valid 2024-11-08 22:31:49 +01:00
smallmodel
1f69fce10e
Don't check for CONTENTS_BBOX on the base game for large bullets passing through entities
Some mods have tanks with mounted turrets and this would cause issues as the bullet would hit the tank instead
2024-11-08 22:06:51 +01:00
smallmodel
7d1d92980a
Disable the charge life when set to 0 2024-11-03 01:40:34 +01:00
smallmodel
3d42197f50
Initialize the minlife field 2024-11-03 01:26:30 +01:00
smallmodel
f40f206161
Don't add the owner velocity by default
This fixes an issue where AI would throw grenades incorrectly
2024-11-03 00:21:27 +01:00
smallmodel
f9ce111784
Set the targetname for projectiles 2024-11-02 22:38:45 +01:00
smallmodel
29911380d1
Use the weapon owner rather than the last successful hit entity 2024-10-20 01:00:55 +02:00
smallmodel
0840cdd83a
Restore the old behavior where the bullet would hit all entities in sight. Only works when targeting mohaa version 1.x
Fixes #348. Since 2.0, bullet trace stops after the first hit entity even if it's a trigger, which can be an issue on some SP maps.
2024-09-10 19:01:34 +02:00
smallmodel
76f0e17987
Fix bullet trace end being out of bounds, causing clients to have a strange bullet trace 2024-09-02 00:42:29 +02:00
smallmodel
81866d96e0
Make flesh impacts properly work 2024-08-31 18:02:07 +02:00
smallmodel
e4d20c3fa1
Initialize explosion flash 2024-06-22 16:39:08 +02:00
smallmodel
fd3a36f162
Fixed melee sometimes not making the hit sound 2024-06-13 23:30:19 +02:00
smallmodel
de02c868a2
Fixed bullet tracers being incorrect
This should fix almost immobile bullet tracers on t1l1
2024-06-11 23:46:50 +02:00
smallmodel
8b16e94829
Fixed grenade bounce sound overly playing 2024-06-09 19:56:41 +02:00
smallmodel
f39a4c0bc7
Fixed projectile explosion origin.
This fixes exploder triggers sometimes never being triggered (fixes #294)
2024-04-21 17:47:39 +02:00
smallmodel
99647e677a
Do projectile vulnerability for vehicles 2024-04-10 00:22:35 +02:00
smallmodel
a0728b4a8a
Using MASK_CLICKITEM mask for ClickItemAttack 2024-02-19 23:10:14 +01:00
smallmodel
3853d1ef39
Properly map the CGM message depending on the protocol version 2024-02-11 23:38:24 +01:00
smallmodel
0167f0a3a4
Using Added in OPM comments 2023-12-28 20:35:33 +01:00
smallmodel
66c4499b2e
Fixed ScriptThreadLabel::Execute with other/owner param 2023-12-28 18:30:15 +01:00
smallmodel
8f8e92c8c3
Don't cound the number of shots if the owner is the world 2023-12-28 17:47:18 +01:00
smallmodel
8683d317fe
Set origin2 and player's num shots fired when placing landmine 2023-12-28 17:45:53 +01:00
smallmodel
e50a041c12
SimpleEntity subclass flags name now starts with ECF_ prefix 2023-11-16 23:17:06 +01:00
smallmodel
1146c834fb
Fixed bad bullet coords being sent 2023-11-15 21:02:23 +01:00
smallmodel
b852980842
Fixed bullet tracer speed 2023-11-14 17:55:08 +01:00
smallmodel
2592aeab8b
Fixed improper bullet path on wood and metal 2023-11-13 01:21:08 +01:00
smallmodel
2b27f6c452
Formatted document 2023-10-03 18:35:06 +02:00
smallmodel
7193198af2
Set the owner for SmokeGrenades 2023-10-03 18:32:09 +02:00
smallmodel
8c3997f13b
Implemented Projectile::Think from mohaas/mohaab 2023-08-19 01:32:54 +02:00
smallmodel
a274325f43
Fixed wrong bounce sound 2023-08-18 15:30:18 +02:00
smallmodel
3d20b3a232
Using MASK_SHOT_TRIG for BulletAttack, so it touches triggers 2023-08-17 19:17:02 +02:00
smallmodel
c4738966fe
Using g_utils.cpp from fakk 2023-08-15 01:27:35 +02:00
smallmodel
71bd04e5b2
Fixed weapon bullet trace
Fixed projectile being always removed in single-player mode
2023-08-14 00:22:05 +02:00
smallmodel
a1c5ca288a
Renamed m_iOwnerTeam to m_iTeam
Implemented SetFuse, ArcToTarget, BecomeBomb, and DieInwater
Fixed projectile life being wrong when charging
2023-08-13 16:06:49 +02:00
smallmodel
64ba900511
Use GetRemoteOwner() properly 2023-08-11 03:09:33 +02:00
smallmodel
8d41b58635
Using hitloc enum instead of macros 2023-08-11 01:34:21 +02:00
smallmodel
1462d4f8d9
Removed StunAttack (useless) 2023-08-09 20:57:26 +02:00
smallmodel
8ffa5f15e6
Implemented BulletAttack from mohaas/mohaab
Added more explosion effects
2023-08-03 21:43:38 +02:00
smallmodel
a4d6442526
Call BulletAttack_Stat instead of putting everything in BulletAttack
Fixed some BulletAttack bugs
2023-08-02 23:09:18 +02:00
smallmodel
b7fac3a5b0
Added BulletAttack_Stat 2023-08-02 21:58:47 +02:00
smallmodel
64ebf3ed05
Implemented all landmine related functions 2023-08-02 21:50:11 +02:00
smallmodel
ae680ffd5d
Added Landmine functions from mohaab
Added more parameters for BulletAttack and FakeBulletAttack from mohaas/mohaab
2023-08-02 19:52:04 +02:00
smallmodel
5333c7ff4a
Removed empty line before opening braces 2023-07-05 20:52:55 +02:00