1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-15 14:47:13 +02:00
Commit Graph

174 Commits

Author SHA1 Message Date
b269517e6f Candidate for backwards compatibility. 2020-03-20 20:37:17 +02:00
8ad6a0f500 Actually expose network statistics functions.
Include an int version just inc ase a 32 bit float would overflow.
2019-08-13 18:34:09 +03:00
413bf546b6 Implement network statistics.
network statistics can now be retrieved for each client.
2019-08-13 18:29:09 +03:00
7fdcf7efc0 Implement new API changes.
Initial implementation of entity streaming events, 3D arrows, drunk effects., camera interpolation, entity options and whatnot. Not yet tested!
2019-06-02 00:39:06 +03:00
600c21d45f Discard instances of constant StackStrF parameters. This should always be non-const if possible. 2019-02-17 17:23:59 +02:00
f300e7ff4a Massive code reduction in the binding utility by using variadic templates.
Extensive code refactoring surrounding the StackStrF helper to facilitate the new changes.
Various other miscellaneous changes and code refactoring to facilitate the new changes.
2018-07-30 00:58:27 +03:00
0ad290ca34 Restructure some files. 2018-07-29 12:25:44 +03:00
4e88cbf79e Fix previous commit. 2018-07-27 19:53:01 +03:00
83c4e5ba23 Return a null entity instance instead of throwing an error. 2018-07-27 19:50:18 +03:00
88b5859213 Expose the vehicle light data modification API. 2018-06-28 22:12:05 +03:00
877e1a38cc Implement pickup option change event and expose the functions to use it.
Fix bitflags declaration for circular locks (huge mistake here).
2018-06-28 22:06:23 +03:00
1e24f55e94 Expose the fuction used to request the client loaded modules. 2018-06-28 21:46:06 +03:00
cea5995f52 Update the entity classes to account for the fact that the server ignores the API call completely whenever a null pointer is given for a value that isn't needed.
Add a helper macro to concatenate two macro parameters into one.
2018-01-30 19:09:54 +02:00
2a5a1821ad The server ignores the API call completely whenever a null pointer is given for a value that isn't needed. Apparently that feature is missing from the API. 2018-01-30 18:05:47 +02:00
52a06cc83b Add a method to the vehicle entity class to check if a certain slot has an occupant. 2018-01-28 22:53:27 +02:00
5d5fc9e2d6 Fix identifier check against wrong pool limits. 2018-01-24 17:59:51 +02:00
fccf288b77 Don't use shared static variables when rerieving various properties of entity instances.
Replace various NULL occurrences with nullptr.
2017-08-06 21:15:32 +03:00
ac5cc871de Rename the SpectateNone() function to Unspectate(). 2017-08-06 18:24:42 +03:00
8125400f7f Return null entity instances instead of null for the functions that need to return an entity instance.
Finally fix the player unspectating bug and introduce a new event for when a player spectates none.
Update the global functions that check for player existance to use the new implementation.
2017-08-06 18:14:58 +03:00
8e07d37ec2 Improve the player search functions. 2017-08-06 17:01:59 +03:00
7a469d870d Attempt to fix (or make it easy to be fixed) the spectating crash. 2017-08-06 15:14:45 +03:00
2fb58f9fbf Initial implementation of the area system. 2017-06-19 04:09:35 +03:00
7bb44ec008 Make builtin formatted strings default to false to avoid trying to perform a format in cases where it can be folled by a following parameters that are not meant to be part of that formatted string. 2017-06-18 20:25:12 +03:00
59f64e9532 Make the occupant retrieval more error proof. 2017-05-25 22:15:32 +03:00
9c1cefab37 Possible fix for the spectate player function. Temporary fix. 2017-02-22 20:46:48 +02:00
41e04e5167 Initial implementation of the new event system.
Initial implementation of the new signals and slots class.
Fixed command parsing which compared a pointer to a character.
Buffer overflow fix in routines which used the limits from the entity tasks.
Switched from Sqrat::Object to Sqrat::LightObj in most places to avoid the overhead of the VM pointer.
Various other adjustments and improvements.
The plugin is currently in a broken state and crashes at shutdown. The bug is unknown at this point.
2017-02-21 21:24:59 +02:00
1045a6fad2 Implement the FindTask method for entities. 2016-11-17 17:04:21 +02:00
2d07ed67b9 Initial implementation of entity tasks. 2016-11-17 00:23:59 +02:00
5f8c2f6cc5 Update all existing code to always receive StackStrF as a const reference. 2016-11-16 15:10:33 +02:00
cb8b595318 Adjust the Vehicle entity methods to use the new method of receiving formatted strings. 2016-11-16 14:49:12 +02:00
6373c24bae Adjust the Player entity methods to use the new method of receiving formatted strings. 2016-11-16 14:49:04 +02:00
9a52981f19 Adjust the Pickup entity methods to use the new method of receiving formatted strings. 2016-11-16 14:48:57 +02:00
3fbba9f3e2 Adjust the Object entity methods to use the new method of receiving formatted strings. 2016-11-16 14:48:48 +02:00
e1fd4e1ee2 Adjust the Keybind entity methods to use the new method of receiving formatted strings. 2016-11-16 14:48:28 +02:00
5669802169 Adjust the Checkpoint entity methods to use the new method of receiving formatted strings. 2016-11-16 14:48:19 +02:00
85079a28d2 Adjust the Blip entity methods to use the new method of receiving formatted strings. 2016-11-16 14:48:11 +02:00
27af2cfd3c Remove the _cmp metamethod from the entity types because it's useless for registered types. 2016-11-15 21:19:06 +02:00
411ac5ef28 Implement the pure typename meta-methods in entity types using the standard method. 2016-11-15 21:16:24 +02:00
adbacfca11 Set kick/ban header to the default identifier if one was not specified. 2016-10-25 16:08:23 +03:00
f9c2c879c4 Add extra validation when assigning a player name. 2016-08-27 04:03:24 +03:00
07d37831b9 Use 'color' instead of 'colour' internally and expose aliases to both for the script interface. 2016-08-21 18:07:35 +03:00
a64fa8a3a1 Undo changes from previous commit. As it turns out this is just another conflict between Brits and Americans. A conflict which makes everything warn about a spelling mistake when it's not the case. 2016-08-20 22:42:54 +03:00
ce7aed075c Fix a spelling mistake in event names. 2016-08-20 21:14:03 +03:00
e179452a61 Implement a new event to receive notifications when an pickup auto timer has changed. 2016-08-19 18:26:52 +03:00
cdc0ac7585 Implement a new event to receive notifications when a pickup automatic status has changed. 2016-08-19 18:21:41 +03:00
cbe33f4f21 Implement a new event to receive notifications when an pickup alpha has changed. 2016-08-19 18:05:29 +03:00
102c77aa77 Implement a new event to receive notifications when an pickup world has changed. 2016-08-19 17:58:08 +03:00
ed5f1a86de Implement a new event to receive notifications when an object shot or touched report status has changed. 2016-08-18 17:12:00 +03:00
9ce8a8a4f8 Implement a new event to receive notifications when an object alpha has changed. 2016-08-18 16:50:30 +03:00
3bbff3f258 Implement a new event to receive notifications when an object world has changed. 2016-08-18 16:37:55 +03:00