smallmodel
572e6652cc
Fix followpath
not working under special circumstances
...
This fixes an issue where some planes (like the final bomber plane in t3l2) would not fly and look stuck
2024-07-27 19:05:05 +02:00
smallmodel
fecb601fc4
Clear velocity only if it's not ignored
2024-07-27 18:17:10 +02:00
smallmodel
7b238e9d34
Set new orders appropriately
2024-07-27 18:13:31 +02:00
smallmodel
73c8ff11b3
Call CurrentScriptThread() to get the current script, so it can throw an exception if the current thread is NULL
2024-07-27 18:03:41 +02:00
smallmodel
682dc89067
Add ignorevelocity argument for followpath
2024-07-27 17:54:48 +02:00
smallmodel
d64ef13b79
Fixed script_skyorigin never being sent to clients
2024-06-03 21:34:48 +02:00
smallmodel
dc7caf04a8
Fixed MoveTo not working on waypoints.
...
This fixes an issue where objects using waypoint (like elevators) would move at `(0 0 0)`. Closes #298
2024-05-12 23:40:11 +02:00
smallmodel
170b4b0972
Fixed ScriptAimedStrafingGunfire aimTarget never set nor used
...
This fixes the gunfire incorrectly damaging things it shouldn't damage.
For example, the sniper3 balcony AI on e3l1:
The bomber caused this AI to fall before initialization (by damaging them when it shouldn't), the AI became nonsolid. After initialization, the AI had enemy enabled, however it remained nonsolid because of the balcony fall. It was constantly shooting at the player and it was unkillable because it was nonsolid.
The mission wasn't able to be completed because of this issue.
2024-05-01 20:18:52 +02:00
smallmodel
16f775c78c
Fixed ScriptSlave path with 2 equal points
...
This fixes the script slave moving infinitely and not sending movedone notifications as it would never advance to the next path. e3l4's outro is now fixed because of that (was stuck).
2024-04-29 23:42:05 +02:00
smallmodel
af919dadca
Simplified code for g_showflypath
2024-04-29 20:04:21 +02:00
smallmodel
41c322ec81
Refactored ScriptSlave::FollowingPath and ScriptSlave::SetupPath with bugfixes
2024-04-29 19:59:16 +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
ea14ab5664
Implemented special func
2024-02-26 23:25:39 +01:00
smallmodel
a86a707e4a
Added more variables to initialize
2024-02-22 18:29:16 +01:00
smallmodel
65b47a2b3a
Fixed AnimDone never being called
...
This fixes maps like e1l2 never starting because it waits for an anim to finish
2024-02-18 21:54:18 +01:00
smallmodel
7c33f98ae9
Use m_fFollowRelativeYaw
2024-02-13 00:57:37 +01:00
smallmodel
d217b1d561
Fixed some events having wrong parameters for documentation
2023-12-28 20:50:47 +01:00
smallmodel
a7902a8837
Added FollowPathRelativeYaw and NormalAngles
2023-11-27 20:30:36 +01:00
smallmodel
615726cc75
Added FollowPathRelativeYaw
2023-11-27 20:22:37 +01:00
smallmodel
42ebfd5394
Added ScriptSimpleStrafingGunfire and ScriptAimedStrafingGunfire from moh 2.0 and above
2023-11-13 17:46:33 +01:00
smallmodel
cdf2f84b14
Added ScriptModelRealDamage class
2023-11-13 16:33:11 +01:00
smallmodel
3a6be342ce
Added new ScriptModel functions from mohaas 2.0 and above
2023-11-01 22:35:07 +01:00
smallmodel
6616bfe53e
Formatted document
2023-11-01 22:21:09 +01:00
smallmodel
475fc92629
Fixed str() being passed as an instance for variadic arguments
2023-10-07 23:50:16 +02:00
smallmodel
a4a7002867
ScriptSlave::SetModelEvent: Corrected the case where the model is invalid
2023-10-06 20:18:18 +02:00
smallmodel
96c9a014e6
When getting string from event, store it in an str
to avoid potential undefined behavior due to str destruction
2023-10-06 20:13:31 +02:00
smallmodel
f0e87cd85a
Prefixed TIKI import functions
2023-09-27 23:21:34 +02:00
smallmodel
aa15d996e0
Removed AnimOnce
2023-09-09 20:41:36 +02:00
smallmodel
0ec846945d
Use edict->tiki instead of calling gi.modeltiki (which can crash because of an empty model string)
2023-09-09 20:41:03 +02:00
smallmodel
ded7d941ea
Call SetAngles(ev) when setting the angles
2023-08-19 00:34:27 +02:00
smallmodel
a1fb3b283c
Remove clipmask flags for physics_on if it has second parameter specified
2023-08-17 20:13:58 +02:00
smallmodel
c4738966fe
Using g_utils.cpp from fakk
2023-08-15 01:27:35 +02:00
smallmodel
8c6098f730
Removed SimpleEntity::SetTargetViewAngles()
2023-08-09 20:57:45 +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