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
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
ac5cc871de
Rename the SpectateNone() function to Unspectate().
2017-08-06 18:24:42 +03:00
Sandu Liviu Catalin
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
Sandu Liviu Catalin
8e07d37ec2
Improve the player search functions.
2017-08-06 17:01:59 +03:00
Sandu Liviu Catalin
7a469d870d
Attempt to fix (or make it easy to be fixed) the spectating crash.
2017-08-06 15:14:45 +03:00
Sandu Liviu Catalin
2fb58f9fbf
Initial implementation of the area system.
2017-06-19 04:09:35 +03:00
Sandu Liviu Catalin
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
Sandu Liviu Catalin
9c1cefab37
Possible fix for the spectate player function. Temporary fix.
2017-02-22 20:46:48 +02: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
6373c24bae
Adjust the Player entity methods to use the new method of receiving formatted strings.
2016-11-16 14:49:04 +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
adbacfca11
Set kick/ban header to the default identifier if one was not specified.
2016-10-25 16:08:23 +03:00
Sandu Liviu Catalin
f9c2c879c4
Add extra validation when assigning a player name.
2016-08-27 04:03:24 +03:00
Sandu Liviu Catalin
eed7ec0358
Make the circular flag names more explicit to prevent possible collisions.
2016-08-18 14:20:41 +03:00
Sandu Liviu Catalin
3d8417759b
Implement a new event to receive notifications when a player score has changed.
...
Fix syntax error in enumeration declaration.
Fix compilation error on const correctness in player method for changing player world.
2016-08-17 16:10:43 +03:00
Sandu Liviu Catalin
c6c17e9396
Implement a new event to receive notifications when a player immunity has changed.
2016-08-17 16:07:31 +03:00
Sandu Liviu Catalin
8f78b0a852
Implement a new event to receive notifications when a player wanted level has changed.
2016-08-17 16:04:14 +03:00
Sandu Liviu Catalin
203dd9802e
Implement a new event to receive notifications when a player score has changed.
2016-08-17 16:00:28 +03:00
Sandu Liviu Catalin
e9b6d9765b
Implement a new event to receive notifications when a player money has changed.
2016-08-17 15:55:59 +03:00
Sandu Liviu Catalin
16f35cbef6
Implement a new event to receive notifications when a player skin has changed.
2016-08-17 15:52:22 +03:00
Sandu Liviu Catalin
ad774fcb3f
Implement a new event to receive notifications when a player team has changed.
2016-08-17 15:49:08 +03:00
Sandu Liviu Catalin
84bae9432a
Implement a new event to receive notifications when a player world has changed.
2016-08-17 15:45:44 +03:00
Sandu Liviu Catalin
c5ef8018ae
Implement a new event to notify on player admin status change.
2016-08-17 15:40:48 +03:00
Sandu Liviu Catalin
b4abe9dfc7
Fix the SetOption methods on the Player type which did not validate the managed player identifier and neither create a guard to prevent recursive event calls. Also, reduce duplicate code.
2016-08-17 15:31:45 +03:00
Sandu Liviu Catalin
c4e82d6756
Add the ability to specify a custom header/payload when kicking/banning a player.
2016-08-17 13:48:29 +03:00
Sandu Liviu Catalin
65b3482828
Don't validate the instance when setting the spectator so null instances can be used and disable the spectating.
2016-08-07 01:56:11 +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
6be526924d
Add the option to specify a header and payload when tracking player position changes.
2016-07-14 19:52:14 +03:00
Sandu Liviu Catalin
953ef30c17
Remove leftover parenthesis from previous commit.
2016-07-09 17:14:09 +03:00
Sandu Liviu Catalin
7bb0d5f947
Adjust the code to use the .what() method from the Sqrat exception.
2016-07-09 14:18:09 +03:00
Sandu Liviu Catalin
4e93e58397
Initial revision of the buffer implementation.
2016-07-08 00:56:54 +03:00
Sandu Liviu Catalin
254bd9eee6
Avoid creating checkpoints for invalid player instances.
2016-06-25 00:08:16 +03:00
Sandu Liviu Catalin
8e0a9edb3e
Update the checkpoint creation process to allow creating checkpoints for all players as well as dedicated to a certain player. Should close #10
2016-06-24 23:37:58 +03:00
Sandu Liviu Catalin
66e604cec7
Add back some of the entity search functions.
2016-06-21 16:15:25 +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
933522f2a4
Add a method to the player class that plays a sound which follows the player character.
2016-06-20 08:27:39 +03:00
Sandu Liviu Catalin
e6213d0932
Fix the player alpha modification.
2016-06-20 08:08:33 +03:00
Sandu Liviu Catalin
6ec8ca620f
Update the player mesage broadcasting to also be more flexible and dynamic when detecting the message color.
...
Move the shared code that identifies the message color outside the player class source file.
2016-06-19 19:06:24 +03:00
Sandu Liviu Catalin
f26ab29a14
Improve the player messaging functions to be more flexible and dynamic when detecting the message color.
2016-06-19 18:39:12 +03:00
Sandu Liviu Catalin
4dc36b9889
Update player messaging to support alpha/transparency in the specified color.
2016-06-19 08:13:02 +03:00
Sandu Liviu Catalin
bca0e1f3c6
More validations on identifiers obtained from the server.
...
Prevent out_of_range exceptions leak into the script as it would end up in a crash since Sqrat doesn't know how to handle them.
2016-06-15 06:11:47 +03:00
Sandu Liviu Catalin
ef41d0d243
Improve the SetAnimation method on player class.
...
Make it so that the animation group is optional.
2016-06-15 06:06:03 +03:00
Sandu Liviu Catalin
7391d9391e
Prevent triggering the player option change event value din not change.
...
If the value for the specified option would not be changed then there's no point in triggering any event or attempting to set it again only and have the same effect.
Fixed minor misspelling in the player class source.
2016-06-14 04:42:18 +03:00