Commit graph

2763 commits

Author SHA1 Message Date
smallmodel
ac8c18250d
If the actor is an american, always call ThinkHoldGun_TurretGun() without checking for enemy 2024-04-28 20:39:54 +02:00
smallmodel
4b05c400b2
Round to integer for vectoyaw()
This fixes Actor never finishing TurnTo as the DesiredYaw was set to a very precise value
2024-04-28 19:29:54 +02:00
smallmodel
cc85d0c100
Bumped version number 2024-04-22 23:40:00 +02:00
smallmodel
56dce21538
Fixed an invalid access to lighting sphere leaves
It was causing crashes on some occasions
2024-04-22 23:39:07 +02:00
smallmodel
3cd5acf3aa
Fixed issue with case-sensitive variables.
normal/return commands are case-insensitive
getter/setter commands are case-sensitive
2024-04-22 20:10:01 +02:00
smallmodel
48fc5a72b8
Fixed some setters and getters being inverted 2024-04-22 19:59:20 +02:00
smallmodel
26c3375112
When there is no enter_boneindex for turret slot, use the boneindex instead
This fixes #208
2024-04-22 18:28:56 +02:00
smallmodel
e89543710c
Check for max use angle when using the vehicle 2024-04-22 18:04:14 +02:00
smallmodel
ee48193f15
Added notagaxis
Fixes #222
2024-04-22 17:21:26 +02:00
smallmodel
6d10ed27c5
Fixed preferred weapon not showing on stats screen
Fixes #271
2024-04-22 16:48:24 +02:00
smallmodel
19c68aa25d
Ignore player collision if the actor is already nonsolid
This fixes #277 where the vehicle could get stuck due to the actor being solid afterwards
2024-04-21 20:33:31 +02:00
smallmodel
5ee7cb16bb
for ANIM_MODE_SCRIPTED and ANIM_MODE_NOCLIP, set the yaw based on the angular delta 2024-04-21 20:28:54 +02:00
smallmodel
4630a1f386
Fixed wrong return values for Vehicle::EventCanUse
It fixes Modello being hardly usable on maps like e3l2
2024-04-21 19:40:33 +02:00
smallmodel
06dab5d8b0
Refactored ScriptThread::EventPointsWithinDist for more clarity 2024-04-21 19:39:39 +02:00
smallmodel
054201bea9
Fixed character assertion fail when the character was a value below 0 2024-04-21 19:07:08 +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
0e20d7e880
Fixed arm/arm64 binary loading on Windows
(fixes #295)
2024-04-14 23:03:46 +02:00
smallmodel
927f4bb4bd
Marked overridden virtual methods 2024-04-11 00:30:00 +02:00
smallmodel
f9901787b5
Removed "touch" unregistration 2024-04-11 00:26:45 +02:00
smallmodel
6731f56aea
Fixed m_PrevCodePos usage 2024-04-10 23:42:09 +02:00
smallmodel
d6870ecbee
Added trigger_sideduse from 2.30 2024-04-10 21:44:03 +02:00
smallmodel
eea8c42268
Added GetOwner event 2024-04-10 21:37:49 +02:00
smallmodel
99647e677a
Do projectile vulnerability for vehicles 2024-04-10 00:22:35 +02:00
smallmodel
a5d637dbb3
Added GetOwner() 2024-04-10 00:21:23 +02:00
smallmodel
048a973290
Added GetProjectileHitsRemaining 2024-04-10 00:20:32 +02:00
smallmodel
fa80e0bd75
Implemented FencePost 2024-04-10 00:05:00 +02:00
smallmodel
a23de7b361
Made Killed() a virtual method 2024-04-09 23:54:08 +02:00
smallmodel
dc60cb45b2
Fixed scripts using syntax like $self 2024-04-09 23:22:54 +02:00
smallmodel
2bf1144a14
Removed unused source files 2024-04-09 22:41:41 +02:00
smallmodel
ab5efa5a64
Fixed sentient being improperly attached/detached from/to the turret
This fixes #255
2024-04-09 00:12:02 +02:00
smallmodel
ccc98e4c62
Implemented missing ThrobbingBox_Stickybomb() 2024-04-08 23:38:51 +02:00
smallmodel
52424f63f0
Make ThrowObject::Throw throws an exception when the owner and targetent is NULL, also use centroid if the target entity is not a sentient 2024-04-08 21:52:48 +02:00
smallmodel
881df7193b
Fixed ThrowObject not usable when spawned from script.
This fixes #218
2024-04-08 21:47:24 +02:00
smallmodel
e859bba61d
Added a forgotten call to SetupNextCycle when turning on the projectile generator and fixed the uninitialized delay before beginning the cycle.
This fixes artillery system not working on t2l3, t2l4, e1l1... (fixes #224)
2024-04-08 21:33:59 +02:00
smallmodel
e3beec985e
When parsing and compiling a script, return the length in an output parameter instead so the method can return a boolean to indicate success.
This fixes #221 where a script with no code would fail.
2024-04-08 21:04:26 +02:00
smallmodel
9eec50d69f
Fixed script model animation issues, especially when they're looping
This fixes #220.
2024-04-08 20:52:58 +02:00
smallmodel
5a8cc83e6e
Fixed MM stepping
This fixes actors being slow and it also fixes actors going under the map
2024-03-31 22:52:30 +02:00
smallmodel
724aeb22ed
Fixed MM_SlideMove() velocity clip and interaction 2024-03-31 22:15:19 +02:00
smallmodel
6fdc756b59
Set terrain rendering settings to max detail by default 2024-03-17 22:38:44 +01:00
smallmodel
25418b7857
Ammo name must be case-insensitive
This fixes some maps like t1l3 where the player would have a pistol with 6 bullets and no ammo
2024-03-06 23:49:37 +01:00
smallmodel
b4de0b53e4
Special items must not be archived in persistent data 2024-03-06 19:43:37 +01:00
smallmodel
cacf1ca1b7
Set the unarmed flag when archiving persistent data 2024-03-06 19:35:15 +01:00
smallmodel
98c61529b9
Archive the weapon clip amount in persistent data 2024-03-06 19:33:48 +01:00
smallmodel
6675a491be
Fixed the model name when archiving persistant data
This fixes a crash when the next mission map is loaded and then saving/loading afterwards (fixes #237)
2024-03-06 19:29:07 +01:00
smallmodel
b6485ad7db
Configstring optimization so that there is only one occurence of a configstring index in pending server commands
This fixes configstring overflow in big maps like t1l2 (fixes #289)
2024-03-06 18:54:32 +01:00
smallmodel
9f5df368d1
Fixed infinite player team spectate 2024-03-05 23:30:25 +01:00
smallmodel
e970e29953
Use a constant expression for clarity 2024-03-05 22:59:12 +01:00
smallmodel
9fb559bdb1
Added an assertion check for lastRadarTime 2024-03-05 22:52:19 +01:00
smallmodel
61e9146385
Moved con_set entry to the header file
This fixes compilation issue with GCC (fixes #288)
2024-03-05 18:30:31 +01:00
smallmodel
897c2322b9
Archive the target list
This fixes crashes related to scripts using entities by target name
2024-03-04 23:35:22 +01:00