Sandu Liviu Catalin
0ad290ca34
Restructure some files.
2018-07-29 12:25:44 +03:00
Sandu Liviu Catalin
4e88cbf79e
Fix previous commit.
2018-07-27 19:53:01 +03:00
Sandu Liviu Catalin
83c4e5ba23
Return a null entity instance instead of throwing an error.
2018-07-27 19:50:18 +03:00
Sandu Liviu Catalin
88b5859213
Expose the vehicle light data modification API.
2018-06-28 22:12:05 +03:00
Sandu Liviu Catalin
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
Sandu Liviu Catalin
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
Sandu Liviu Catalin
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
Sandu Liviu Catalin
5d5fc9e2d6
Fix identifier check against wrong pool limits.
2018-01-24 17:59:51 +02:00
Sandu Liviu Catalin
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
Sandu Liviu Catalin
2fb58f9fbf
Initial implementation of the area system.
2017-06-19 04:09:35 +03:00
Sandu Liviu Catalin
59f64e9532
Make the occupant retrieval more error proof.
2017-05-25 22:15:32 +03:00
Sandu Liviu Catalin
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
Sandu Liviu Catalin
1045a6fad2
Implement the FindTask method for entities.
2016-11-17 17:04:21 +02:00
Sandu Liviu Catalin
2d07ed67b9
Initial implementation of entity tasks.
2016-11-17 00:23:59 +02:00
Sandu Liviu Catalin
5f8c2f6cc5
Update all existing code to always receive StackStrF as a const reference.
2016-11-16 15:10:33 +02:00
Sandu Liviu Catalin
cb8b595318
Adjust the Vehicle entity methods to use the new method of receiving formatted strings.
2016-11-16 14:49:12 +02:00
Sandu Liviu Catalin
27af2cfd3c
Remove the _cmp metamethod from the entity types because it's useless for registered types.
2016-11-15 21:19:06 +02:00
Sandu Liviu Catalin
411ac5ef28
Implement the pure typename meta-methods in entity types using the standard method.
2016-11-15 21:16:24 +02:00
Sandu Liviu Catalin
07d37831b9
Use 'color' instead of 'colour' internally and expose aliases to both for the script interface.
2016-08-21 18:07:35 +03:00
Sandu Liviu Catalin
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
Sandu Liviu Catalin
ce7aed075c
Fix a spelling mistake in event names.
2016-08-20 21:14:03 +03:00
Sandu Liviu Catalin
6b0013c90c
Fix compilation errors and adjust the event syantax to imclude correct information for VehiclePartStatus, VehicleTyreStatus and VehicleHandling events.
...
Also fix a couple other compilation issues resulted from changes in syntax and bad copy paste.
2016-08-18 15:32:18 +03:00
Sandu Liviu Catalin
f86c12bff2
Implement a new event to receive notifications when a vehicle handling rule has changed.
2016-08-18 15:21:50 +03:00
Sandu Liviu Catalin
db522913d3
Implement a new event to receive notifications when a vehicle radio has changed.
2016-08-18 15:13:33 +03:00
Sandu Liviu Catalin
69325ed2cc
Implement a new event to receive notifications when a vehicle damage data has changed.
2016-08-18 15:06:03 +03:00
Sandu Liviu Catalin
05443ba2d4
Implement a new event to receive notifications when a vehicle tyre status has changed.
2016-08-18 14:56:38 +03:00
Sandu Liviu Catalin
23948b5903
Implement a new event to receive notifications when a vehicle part status has changed.
2016-08-18 14:51:55 +03:00
Sandu Liviu Catalin
732769aff2
Implement a new event to receive notifications when a vehicle immunity has changed.
2016-08-18 14:45:12 +03:00
Sandu Liviu Catalin
ebc168e558
Implement a new event to receive notifications when a vehicle world has changed.
2016-08-18 14:38:00 +03:00
Sandu Liviu Catalin
29b0f8d4c9
Add the possibility to have null entity instances intentionally.
2016-08-07 01:54:33 +03:00
Sandu Liviu Catalin
f7b0909ed7
Expose functionality to emit custom entity events.
2016-07-27 00:13:50 +03:00
Sandu Liviu Catalin
1d5b12f11f
Add a helper member function to the vehicle class to fix the managed vehicle.
2016-07-13 01:47:36 +03:00
Sandu Liviu Catalin
29af51c518
Improve entity searching algorithms.
2016-06-21 15:17:08 +03:00
Sandu Liviu Catalin
1d12ddd60d
Improve searching for active entities. Also fix a possible crash because the entity instance pushed on the stack was appending to itself instead of the array.
2016-06-21 09:02:44 +03:00
Sandu Liviu Catalin
bc1e7dbde6
Implement the option to specify how many times you want to allow intensive entity events to be forwarded to script callbacks.
...
Also expose several properties for the vehicle entity type that I forgot about.
2016-06-08 16:53:16 +03:00
Sandu Liviu Catalin
0c92601362
Update the module API and merge shared code between modules and host plugin.
2016-06-03 21:26:19 +03:00
Sandu Liviu Catalin
86a4933525
Release script callbacks properly in main plugin.
2016-05-24 21:36:49 +03:00
Sandu Liviu Catalin
3ed0b22426
Make the function environment optional in entity callbacks.
2016-05-24 07:29:14 +03:00
Sandu Liviu Catalin
f2361a27c3
Untested update to the new plugin API.
...
Various other changes to the plugin as well.
2016-05-22 06:20:38 +03:00
Sandu Liviu Catalin
b818a162ee
Initial implementation of the standard math library.
...
Implemented utilities to convert between fundamental types.
Implemented helper functions to retrieve numeric values from the stack at all costs.
Implemented various delegates on the long integer types to mimic the standard types.
Moved most of the stack utilities in a separate source.
Various other fixes and improvements.
2016-04-14 03:08:06 +03:00
Sandu Liviu Catalin
b5215b38e3
Implement function to retrieve all active vehicles.
2016-03-26 18:17:38 +02:00
Sandu Liviu Catalin
8088ba94c2
Updated the exception system in the main plugin to also include the location in the source files in debug builds.
...
Moved the functions that extract base types from strings as static functions under the associated type.
Revised some of the base shared code.
Fixed some of the functions in the String library that did not take into account the null terminator.
2016-03-21 22:37:58 +02:00
Sandu Liviu Catalin
5c81af5026
Minor changes in the entity types code style.
2016-03-12 22:51:44 +02:00
Sandu Liviu Catalin
58891f1e8b
Implemented searching entities by ID and Tag.
2016-03-10 06:18:39 +02:00
Sandu Liviu Catalin
70e5f0ba21
Migrated the host module to C++ exceptions as well.
...
Also enabled the latest C++ revision in the project.
Replaced the Random library with the one provided by C++11.
Implemented a simple AES256 encryption class.
Various other fixes and improvements.
2016-03-10 05:57:13 +02:00
Sandu Liviu Catalin
06e598acfb
Dumped the old implementation. Started with a more simple approach.
2016-02-21 00:25:00 +02:00
Sandu Liviu Catalin
3b729cd73d
Added several aliases and short notations for members in vehicle entity type.
2015-11-11 11:36:37 +02:00
Sandu Liviu Catalin
09ef3f43a3
Update vehicle entity to use the new debugging implementation.
2015-11-11 11:30:50 +02:00
Sandu Liviu Catalin
f426b282ae
Registered the reference for the vehicle entity type with the script.
2015-11-11 10:56:02 +02:00
Sandu Liviu Catalin
46801b1ce8
Discarded the noexcept specifier entirely.
2015-11-01 05:48:01 +02:00