Commit graph

1475 commits

Author SHA1 Message Date
smallmodel
b719455b78
Add the missing newline for iprintln functions 2024-11-25 19:18:15 +01:00
smallmodel
db16c8bea4
Localize player IPrint string 2024-11-25 19:09:02 +01:00
smallmodel
8b6b1597d7
Check for bHitPerson in MV0, MV1 and MV2
This checks if the sentient being hit is dead, and skip it when moving the vehicle so the vehicle doesn't get stuck for when a sentient is dying
2024-11-23 22:58:51 +01:00
smallmodel
89140f775e
Archive entities at the order they were created
This fixes an issue where turrets would Think() before the base they are mounted on (like tanks), which means the turret would set its origin before the base (tank) does. This issue also occurs on the original game
2024-11-23 15:19:05 +01:00
smallmodel
e2f4d8cd6b
Use explicit constants when checking g_gametype 2024-11-22 19:44:53 +01:00
smallmodel
04da76167c
Set the correct face mode for when the AI is facing a entity that allows AI to face
This fixes a mistake where AI would turn away from the player if the player approaches too much
2024-11-22 18:52:36 +01:00
smallmodel
90639cee36
Fix incorrect effect being spawned for MakeEffect CGM 2024-11-22 18:18:27 +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
44d8adcfb0
Set the eyePos when loading from save
Server uses the playerState's vEyePos as the position, to add entities to snapshots, so make sure it's initialized before the next snapshot is sent
2024-11-21 20:26:12 +01:00
smallmodel
64f877ae80
Use the correct convention for installing the project
On Win32:
- Binaries and libraries will be installed by default in <PREFIX>/bin
- The prefix is set to `Program Files/openmohaa` by default

On Unix:
- Binaries and libraries will be installed by default in <PREFIX>/lib/openmohaa
- Shared data will be installed in <PREFIX>/share/applications, <PREFIX>/share/metainfo and <PREFIX>/share/icons
- The prefix is set to `/usr/local` by default
2024-11-21 19:49:43 +01:00
smallmodel
48c2d026e6
Fix ActorPath not archiving path properly
It was mistakenly archiving the first path multiple times instead of the whole path array. This lead to AI strangely moving after loading from save
2024-11-20 23:32:37 +01:00
smallmodel
120a486aea
Use CMake installation directory
This removes the use of the DESTINATION parameter from install() command and instead rely on default values.
The shared build action file was modified to package installed files in a single folder
2024-11-20 22:50:49 +01:00
smallmodel
50eda4156a
Don't remove the weapon if it has no start ammo
Instead, prevent sentients from picking up weapons if they get no ammo from it and they already have that weapon. Instead, just let the weapon be picked up as a new weapon
2024-11-19 22:44:04 +01:00
smallmodel
1e609a4b2f
Ignore bullet tracers in 1.11 and below
Before 2.0, the tracer frequency is set on almost all weapons. This has some artifacts on multiplayer, the tracer doesn't look adjusted in first-person view
2024-11-19 22:24:50 +01:00
smallmodel
652df1a5af
Prevent players with SVF_NOCLIENT to use objects 2024-11-17 22:10:03 +01:00
smallmodel
aeb8aa8e55
Don't send a voice chat message if the entity is not sent to clients 2024-11-17 20:28:03 +01:00
smallmodel
e74e113199
Fix voice message always being sent to enemies in team message 2024-11-17 20:26:40 +01:00
smallmodel
154464cda1
Set the server huddraw elements on single-player mode
This fixes huddraw elements not being archived properly when the map starts
2024-11-17 18:26:00 +01:00
smallmodel
2342f08a79
Print the new damage when g_showbullettrace is turned on 2024-11-17 18:02:57 +01:00
smallmodel
16711a33ef
Fix bulletthroughwood and bulletthroughmetal not being archived correctly
This caused issues on some single-player maps where bullet would go through walls
2024-11-17 18:02:35 +01:00
smallmodel
b0b82f0252
Fix incorrect start trace for Actor::DontFaceWall()
This fixes AI not turning from wall
2024-11-17 16:36:45 +01:00
smallmodel
80ddba1013
Fix constant string for "officer" disguise type
This fixes the officer think not working at all
2024-11-17 16:36:19 +01:00
smallmodel
598110477e
Archive the m_bAlwaysAway variable 2024-11-16 22:35:55 +01:00
smallmodel
ffdfbc3c7d
Fix the bullet stopping after the first entity 2024-11-16 21:57:12 +01:00
smallmodel
b68bb4cee7
Fix integer overflow in wait command that would cause infinite loop in stock scripts
It was causing a rare infinite loop in anim/stand.scr where it waits for 9999999 if the actor is unarmed and medic
2024-11-16 19:10:26 +01:00
smallmodel
824cfd789c
Properly save and restore entity's children solidity 2024-11-16 18:19:45 +01:00
smallmodel
735832829d
Don't drop the weapon if it has no ammo 2024-11-16 00:29:44 +01:00
smallmodel
5703161166
Fix grenade dropping no ammo
This makes the weapon drop at least 1 ammo clip
2024-11-16 00:29:13 +01:00
smallmodel
0c206beb45
Expect a SimpleEntity rather than an Entity
The specified path in FollowPath can be a Waypoint which is a subclass of SimpleEntity
2024-11-14 19:46:16 +01:00
smallmodel
763a79cb74
Fix angle when in turret 2024-11-11 23:48:39 +01:00
smallmodel
c9ccb0efaf
Check for Sentient instead of Player 2024-11-11 23:48:19 +01:00
smallmodel
dd37ba2741
Properly archive clients 2024-11-11 19:06:05 +01:00
smallmodel
894e1d7d66
Properly cleanup the existing owner from targets 2024-11-11 18:37:29 +01:00
smallmodel
9d83d58756
Create path only if the target is a SplinePath 2024-11-11 18:28:56 +01:00
smallmodel
d400d8927d
Fix archive data between 64-bit and 32-bit architectures 2024-11-11 17:52:24 +01:00
smallmodel
fef30ff3d5
Clear the splinepath entity flag when destroying 2024-11-11 17:35:41 +01:00
smallmodel
4023c9d863
Fix isOpen event, must return true if it's not closed 2024-11-11 16:40:43 +01:00
smallmodel
51c7e27bc1
Fix the switch label not being archived 2024-11-11 14:05:14 +01:00
smallmodel
f400190531
Fix the switch label called incorrectly for VehicleTurretGunTandem 2024-11-11 14:04:51 +01:00
smallmodel
8732e368b6
Clear the last command angles when loading 2024-11-11 13:49:33 +01:00
smallmodel
9a55939b42
Fix weapon selection 2024-11-10 22:10:34 +01:00
smallmodel
661b08a7fa
Don't set g_shownpc to 1 when developer is set 2024-11-10 21:47:58 +01:00
smallmodel
079555e43a
Fix VehicleTurretGun sound 2024-11-10 19:29:33 +01:00
smallmodel
fcc4e94655
Continue traveling if the bullet trace goes backwards 2024-11-10 19:02:59 +01:00
smallmodel
e5acee55ea
Restore old behavior of "angle" event of the ScriptOrigin class on previous versions (below 2.30) 2024-11-10 17:42:37 +01:00
smallmodel
d3f3b9b51c
Don't allow lean in single-player in the base game 2024-11-10 17:01:56 +01:00
smallmodel
48e9db8966
Don't reload the state table when archiving
This fixes multiple issues where the player could end on an incorrect move type after loading from save, like getting out of the ladder
2024-11-10 16:50:23 +01:00
smallmodel
67486f1e49
Clear the player velocity on intermission 2024-11-10 16:17:03 +01:00
smallmodel
de0e4954f8
Call G_MoveClientToIntermission() instead of setting the immobile flag 2024-11-10 15:53:06 +01:00
smallmodel
7afc2427ac
Finish DrawBoundingBox() entity implementation 2024-11-09 15:51:27 +01:00