Commit graph

1070 commits

Author SHA1 Message Date
smallmodel
ad75363028
Added more variables to archive for Level 2023-09-12 21:48:08 +02:00
smallmodel
f4ec3939a5
Weapon::Shoot(): process default value in switch/case for firemode 2023-09-12 21:47:51 +02:00
smallmodel
aead97d29d
Implemented landmarks from mohaab 2023-09-12 21:39:19 +02:00
smallmodel
f468305a2c
Level::Init(): Remove archived entities, reset health queue, initialize vote and free landmarks 2023-09-12 20:37:01 +02:00
smallmodel
a962f469eb
Added health queue 2023-09-12 20:33:49 +02:00
smallmodel
e160cf240c
Fixed vote not working properly 2023-09-12 20:12:09 +02:00
smallmodel
19a4f70c44
Made ExecuteConsoleCommand accept a const char* instead 2023-09-12 00:19:08 +02:00
smallmodel
dcca3901d5
Initialize more Level variables 2023-09-12 00:18:09 +02:00
smallmodel
0ee4ffbfbc
Implemented vote system (from mohaas/mohaab) 2023-09-12 00:07:10 +02:00
smallmodel
776bc781cd
Added ExecuteConsoleCommand() game import 2023-09-11 21:41:39 +02:00
smallmodel
b1bb79e19f
Added Player::HasVotedYes() and Player::HasVotedNo() 2023-09-11 21:28:05 +02:00
smallmodel
76c69b7bd1
Implemented Player::CallVote from mohaas/mohaab 2023-09-11 20:45:30 +02:00
smallmodel
15a25a412f
Removed m_voteCommand and added m_nextVoteTime 2023-09-11 20:45:07 +02:00
smallmodel
9512ae7aeb
Added TurretGun methods from mohaas/mohaab 2023-09-11 00:02:10 +02:00
smallmodel
5db086e470
Made GetMuzzlePosition a virtual method 2023-09-10 23:54:30 +02:00
smallmodel
b29f62ddd4
Fixed EventSetTurret crashing when the listener is NULL 2023-09-09 20:58:58 +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
03ff158e76
Fixed crash when setting actor's patrol node 2023-09-09 20:02:02 +02:00
smallmodel
3d936dede1
Don't change the protocol when in special game 2023-09-09 16:46:51 +02:00
smallmodel
33e9c5b1ea
Formatted source files 2023-09-09 16:46:42 +02:00
smallmodel
078c90bbc9
Create a ScriptThread directly rather than calling Director.CreateScriptThread
This avoids exception when called by ScriptThreadLabel::Execute(). Because Execute() doesn't have try/catch, the program would crash.
2023-09-09 16:42:15 +02:00
smallmodel
2caf2cad5a
Fixed improper usage of alloca()
alloca() can cause a stack overflow when it is called multiple times
2023-09-07 20:20:18 +02:00
smallmodel
5dec21dd43
Include <utility> for std::move 2023-09-07 20:01:07 +02:00
smallmodel
c5a46be23e
Optimized calls to Event() (avoid allocating a new Event when it can be reused) 2023-09-07 18:22:07 +02:00
smallmodel
47a3c0bf55
Optimized event name
Use a static char*, instead of an allocated str
2023-09-07 18:05:49 +02:00
smallmodel
e8d2a2a461
Instantiate AnimationEvent on stack rather than dynamically allocating it. Optimized cmd name for client commands 2023-09-07 17:33:35 +02:00
smallmodel
6d2d35e82d
Fixed compile errors on newer versions of clang 2023-09-05 19:39:57 +02:00
smallmodel
000ec39c81
Added non-pvs landing sound 2023-09-03 22:13:03 +02:00
smallmodel
3160c6ee0b
Added _client_sound
Replaced SoundThisFrame by ClientSound
Process client commands with animation events that start with `_client_`
2023-09-03 22:12:45 +02:00
smallmodel
9da403e534
Increased MAX_NONPVS_SOUNDS 2023-09-03 22:11:26 +02:00
smallmodel
f19c3408e1
Fixed footonground using right foot 2023-09-03 00:07:40 +02:00
smallmodel
38c0e09e8a
Call UpdateFootsteps() even on multiplayer 2023-09-03 00:07:17 +02:00
smallmodel
cd48272fbb
Implemented server-side footstep simulation 2023-09-02 23:53:46 +02:00
smallmodel
a5a146bb02
Added and using Entity::PlayNonPvsSound 2023-09-02 23:51:37 +02:00
smallmodel
88438d6db4
Removed signal handlers from g_main.cpp as it's handled by the main app directly 2023-09-01 22:49:58 +02:00
smallmodel
7348734070
Fixed m_bFootOnGround values being set incorrectly 2023-09-01 22:49:53 +02:00
smallmodel
7bc8c3ab5b
Fixed crate overlapping warning (when crates are actually not overlapping) 2023-08-30 23:33:42 +02:00
smallmodel
2a58fbdd22
Formatted document 2023-08-30 23:33:00 +02:00
smallmodel
8227f7125b
Added SetDoorType and ShowInfo 2023-08-30 23:29:23 +02:00
smallmodel
11cc39e41b
Fixed pain animation playing indefinitely 2023-08-30 01:07:52 +02:00
smallmodel
5c25839bab
Added a feature that plays sound to clients not seeing entities (like not seeing other players) 2023-08-29 22:05:48 +02:00
smallmodel
fbd314b447
Fixed pitch being used instead of volume 2023-08-29 22:04:18 +02:00
smallmodel
37c2d22b10
Added Frame_Commands_Client 2023-08-29 20:25:11 +02:00
smallmodel
78d70a892c
Fixed leanAngle being never 0 2023-08-29 20:00:03 +02:00
smallmodel
dbcf4c1800
Use GT_SINGLE_PLAYER instead of comparing non-zero 2023-08-29 18:48:36 +02:00
smallmodel
43b0944403
Added centroid in entityShared_t and removed currentOrigin 2023-08-29 00:03:07 +02:00
smallmodel
ecc3c9f7b4
Renamed SVF_HIDEOWNER to SVF_SENT 2023-08-28 23:00:58 +02:00
smallmodel
296249b203
Fixed wrong SVF flags 2023-08-28 22:13:16 +02:00
smallmodel
4132f7efe6
Fixed farplane
Animated farplane is cleared when setting the farplane
Fixed farclip_override and farplane_color_override being mixed up
2023-08-28 20:22:06 +02:00