smallmodel
3e84dbe6ac
Initialize skipFade
2024-11-06 18:53:43 +01:00
smallmodel
f347102ecb
Add the skipFade parameter in bsptransition so the fade can be skipped
...
Useful for scripts that are using fadeout during cinematics and then transitioning to the nextmap, like in e2l2 where vehicles explode at the end of the mission
2024-11-05 22:37:33 +01:00
smallmodel
8a774c02dc
Call G_BeginIntermission() instead of G_MissionFailed() when calling missionfailed
2024-11-03 00:41:26 +01:00
smallmodel
f9d264058b
Use safe version of sprintf and strcpy
2024-09-20 23:08:53 +02:00
Sébastien Noel
a010e648ee
Fix a few typos
2024-09-19 10:52:47 +02:00
smallmodel
74ccb03e54
Reduced compilation warnings
2024-06-07 20:34:13 +02:00
smallmodel
884a76db4c
Drop error instead of throwing an exception to meet non-throwing exception specification
2024-06-07 19:55:33 +02:00
smallmodel
a85694b548
Fixed incorrect method for EV_ScriptThread_Showmenu
.
...
This fixes #302 where screen text with the mission date would never be shown.
2024-05-28 20:49:09 +02:00
smallmodel
daa7aceecf
Fixed sighttrace not properly passing entities
...
This fixes the issue where some scripts (like e2l3's BattleHouse) expect sighttrace to ignore entities (fixes #202 )
2024-05-01 17:43:04 +02:00
smallmodel
06dab5d8b0
Refactored ScriptThread::EventPointsWithinDist for more clarity
2024-04-21 19:39:39 +02:00
smallmodel
bd999a6d9c
Fixed Trace's pass_entities parameter (didn't properly ignore entities)
2024-02-15 23:48:23 +01:00
smallmodel
56044dd8f8
HideMouse doesn't take parameters
2024-02-03 23:19:55 +01:00
smallmodel
808916029e
Formatted scriptthread source file
2024-01-29 00:03:51 +01:00
smallmodel
24dbc1ce4e
Use C vectors
2024-01-28 23:29:56 +01:00
smallmodel
ad917d96c8
Use roundf() for more clarity
2024-01-17 19:33:07 +01:00
smallmodel
d217b1d561
Fixed some events having wrong parameters for documentation
2023-12-28 20:50:47 +01:00
smallmodel
0167f0a3a4
Using Added in OPM
comments
2023-12-28 20:35:33 +01:00
smallmodel
433305617c
IsAlive: check if the given listener is an actual entity
2023-11-26 20:38:14 +01:00
smallmodel
e453d1fa17
Added "none" for teamwin argument
2023-11-13 18:22:35 +01:00
smallmodel
a7301ed7b6
Fixed teamwin not working on TOW and Liberation
2023-11-13 18:21:08 +01:00
smallmodel
81b711364e
Use Event::Exists() instead of getting it, to see if an event exists
2023-11-02 20:14:34 +01:00
smallmodel
7fe7a12167
In CreateThreadInternal and CreateScriptInternal, use GetScriptClass() directly from ScriptThread
2023-11-01 16:53:31 +01:00
smallmodel
220c82954c
Don't execute script thread now if paused
2023-10-30 22:46:50 +01:00
smallmodel
f96b606a1a
Fixed ScriptThread timing
2023-10-27 21:02:18 +02:00
smallmodel
57e450a745
Thread state fix
2023-10-27 20:41:47 +02:00
smallmodel
f01a0a17c1
Added script traces
2023-10-26 20:13:07 +02:00
smallmodel
a249f6b29b
Fixed parm.previousthread not being actually set to the previous executing thread
2023-10-23 19:31:01 +02:00
smallmodel
475fc92629
Fixed str() being passed as an instance for variadic arguments
2023-10-07 23:50:16 +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
182a677337
Script: use AngleVector rather than AngleVectorsLeft for angles methods
2023-08-20 14:02:04 +02:00
smallmodel
5cb1e5de84
Fixed Vector_DotProduct returning wrong values
2023-08-19 01:02:18 +02:00
smallmodel
7e6854f96b
Fixed EventPointsWithinDist taking the wrong argument number for the distance
2023-08-19 00:35:48 +02:00
smallmodel
f8d5a5ecd2
Fixed TeamWin with the axis team
2023-08-18 15:13:47 +02:00
smallmodel
0080d4b9a8
Using ScriptError
2023-08-18 01:18:07 +02:00
smallmodel
d80e9d80e7
Fixed getcvar returning wrong values sometimes
2023-08-17 18:24:30 +02:00
smallmodel
bdcd0dbd56
Fixed EventEnd copying and adding pointer value
2023-08-17 03:03:26 +02:00
smallmodel
c4738966fe
Using g_utils.cpp from fakk
2023-08-15 01:27:35 +02:00
smallmodel
e86e5c0d80
Renamed MOD_MINE to MOD_LANDMINE
...
Added MOD_AAGUN
2023-08-14 23:37:05 +02:00
smallmodel
0b2a0634f5
Moved eController to Entities.h
2023-08-14 19:21:17 +02:00
smallmodel
49850940d6
Using objective flags enumeration
2023-08-14 02:39:32 +02:00
smallmodel
161f7e3313
Fixed wrong current objective
...
Added support for objective location per team
2023-08-14 02:11:26 +02:00
smallmodel
0898bffb43
Fixed getboundkey1/getboundkey2 crashing when the key is null
2023-08-14 01:56:43 +02:00
smallmodel
1fd0cd097f
Fixed the objective index
2023-08-13 22:08:10 +02:00
smallmodel
c49d0c7afa
Fixed iprintln(bold) not working properly with multiple arguments
2023-08-13 20:22:39 +02:00
smallmodel
8aa6f29c4c
Added all script functions from mohaas/mohaab
2023-08-12 14:02:43 +02:00
smallmodel
cea2c178b5
Fixed header
2023-08-12 03:05:06 +02:00
smallmodel
bf960f6f32
Cleaned up ScriptThread
2023-08-12 02:40:30 +02:00
smallmodel
5333c7ff4a
Removed empty line before opening braces
2023-07-05 20:52:55 +02:00
OM
c287638f99
Reworked file inclusion (using relative path)
2023-06-17 01:24:20 +02:00
OM
e4fa0fff3a
Renamed **game** to **fgame**
2023-06-15 23:44:02 +02:00