Commit graph

2128 commits

Author SHA1 Message Date
smallmodel
94d4cbeb82
Enhanced Player's dmmessage implementation (say + voice) 2023-11-03 21:56:31 +01:00
smallmodel
b31f4bc00c
Added and implemented CG_xxxVote functions 2023-11-03 21:28:46 +01:00
smallmodel
cf0808e119
Added client vote options code (partially implemented) 2023-11-03 21:09:18 +01:00
smallmodel
92333909fd
Fixed commands being executed twice 2023-11-03 20:40:45 +01:00
smallmodel
9c68af92be
Added more console commands to initialize 2023-11-02 20:23:45 +01:00
smallmodel
bc5d7f5e93
Added "reloadmap" console command from moh 2.0 and above 2023-11-02 20:20:58 +01:00
smallmodel
f2ba9a88be
Reimplemented G_ScriptCmd() 2023-11-02 20:15: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
554e0c7fac
Formatted gamecmds source files 2023-11-02 20:07:29 +01:00
smallmodel
bd2c1c387b
Added Event::Exists() to check if a given command name exists 2023-11-02 20:05:59 +01:00
smallmodel
f19edac9ca
Fixed audio spatialization
The yaw was inverted specifically for the Miles Sound System. But as the engine was never using Miles, the yaw mustn't be inverted
2023-11-02 19:57:46 +01:00
smallmodel
1698f6d1bf
The return value of an event must be the first value 2023-11-02 19:53:26 +01:00
smallmodel
2c3180813a
Fixed improper path lookahead 2023-11-02 19:33:10 +01:00
smallmodel
a262fe5d9d
Removed pAnimThread assert as it can be NULL 2023-11-02 19:11:44 +01:00
smallmodel
a69249ee22
Fixed an issue where PathAvoidsSquadMates() would set bad coordinates for path 2023-11-02 19:11:29 +01:00
smallmodel
393c2a81d1
Check for indice bounds 2023-11-01 23:06:14 +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
bafe60f48f
Move must fail if the Actor wants to become a runner but the idle think state is neither Runner nor Patrol 2023-11-01 20:16:44 +01:00
smallmodel
e306c415f0
Only move the client if there is no turret or if the turret doesn't allow user's aim 2023-11-01 20:15:44 +01:00
smallmodel
56a8c8d48d
Set parm.owner, prevent to trigger non-use trigger with EV_USE, set projectile owner 2023-11-01 20:10:57 +01:00
smallmodel
421f1d39a4
SV_HitEntity must return true if something was hit 2023-11-01 20:09:46 +01:00
smallmodel
7c655944a5
Convert fields name to lower 2023-11-01 19:16:01 +01:00
smallmodel
0a27f37dc0
Set the last entity network time
This fixes Actor sometimes stuck on idle state
2023-11-01 18:03:29 +01:00
smallmodel
4695932ea1
Added StoppedNotify()
This fixes scripts waiting for another executing script which fixes Actor being stuck on some animations
2023-11-01 17:31:46 +01:00
smallmodel
7fe7a12167
In CreateThreadInternal and CreateScriptInternal, use GetScriptClass() directly from ScriptThread 2023-11-01 16:53:31 +01:00
smallmodel
f9487b0ba3
Ignore CR in source line 2023-11-01 16:53:09 +01:00
smallmodel
7c5c34741c
Added more script trace and initialize state to STATE_EXECUTION in ScriptVM constructor 2023-11-01 16:52:30 +01:00
smallmodel
d09459f4bf
Made Unpause() more explicit 2023-10-31 23:24:11 +01:00
smallmodel
c0c6598151
Actor::WeaponSound() was not properly working 2023-10-31 23:23:29 +01:00
smallmodel
f52fcc6f0e
Process the parent of each entity correctly 2023-10-31 23:22:43 +01:00
smallmodel
2e9ef64bd2
g_timescripts misspell 2023-10-31 23:21:55 +01:00
smallmodel
ff3ee39830
Fixed field name not showing in the exception message 2023-10-31 20:39:28 +01:00
smallmodel
abd757f3bc
Actor health must be above to 0 for NPC to count 2023-10-30 23:01:43 +01:00
smallmodel
c741591a36
Syntax clarity 2023-10-30 23:00:21 +01:00
smallmodel
78c481d725
Added g_shownpc support 2023-10-30 23:00:07 +01:00
smallmodel
b2ece37819
Added G_ClientDrawTags() 2023-10-30 22:59:39 +01:00
smallmodel
a557b29ecf
Removed useless SetDirty() call in ScriptMaster::SetTime() 2023-10-30 22:59:25 +01:00
smallmodel
1184843318
Set dirty timer in SetTime() 2023-10-30 22:59:04 +01:00
smallmodel
dd1f8bd92a
Compare with STATE_RUNNING instead 2023-10-30 22:46:59 +01:00
smallmodel
220c82954c
Don't execute script thread now if paused 2023-10-30 22:46:50 +01:00
smallmodel
8879bacb1d
Fixed Think_Curious() and LookAtCuriosity() small mistakes 2023-10-30 22:04:09 +01:00
smallmodel
5824022745
Added ScriptRemove 2023-10-30 22:03:37 +01:00
smallmodel
3ecb5bd06a
Fixed WaitExecuteThreadInternal() waiting on the group instead of the thread 2023-10-30 21:59:47 +01:00
smallmodel
7de31a776b
Added a check to avoid freeing a model that is used more than once 2023-10-29 20:40:37 +01:00
smallmodel
503320d13f
Added modelOnly parameter to CG_ProcessConfigString + added votes 2023-10-29 20:40:07 +01:00
smallmodel
bd263c5d22
Added condition to check for null model/animation and for out of bound animnum in TIKI_Frame_Commands() 2023-10-29 20:21:58 +01:00
smallmodel
b0201aef5d
Set number of arguments when constructing a new Event 2023-10-29 20:20:56 +01:00
smallmodel
31014808c8
Added and using AI_COVER_MASK 2023-10-29 20:20:19 +01:00
smallmodel
0906124867
Use CurrentThink() to get the current think 2023-10-28 00:01:57 +02:00