1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2026-04-21 03:27:22 +02:00
Commit Graph

94 Commits

Author SHA1 Message Date
Rasikh Qadeer | DizzasTeR 59ced74cf8 - GetWeaponSlot
- A very useful function that sqmod can provide instead of manually being added
2019-06-02 14:44:37 +05:00
Rasikh Qadeer | DizzasTeR f02d079a8c Update Constants.cpp
- Fixed extra space
2019-06-02 14:12:18 +05:00
Sandu Liviu Catalin 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
Sandu Liviu Catalin 0b0ec9c40c Allow chaining in routines.
Simplifies setup after creation by allowing chaining in methods.
2019-06-01 22:49:24 +03:00
Sandu Liviu Catalin ef0fc103cd Supress some fall through warnings in GCC with markers. Later to be updated to attributes and include support for more compilers. 2019-05-24 22:17:24 +03:00
Sandu Liviu Catalin b1c8ab0f7b Fix names in vehicle enumeration to proper case. 2019-05-08 22:07:25 +03:00
Sandu Liviu Catalin c116b487b0 Fix spelling mistake. 2019-05-08 19:44:14 +03:00
Sandu Liviu Catalin 79f244b1d3 Missed return for SQMOD_VEHICLE_PIZZABOY in vehicle identification (reported by @Xmair). 2019-05-07 17:49:13 +03:00
Sandu Liviu Catalin 24e6379f5e Export newly added Squirrel functions. Fix function definition with different name than declaration. 2019-04-30 22:28:23 +03:00
Sandu Liviu Catalin 600c21d45f Discard instances of constant StackStrF parameters. This should always be non-const if possible. 2019-02-17 17:23:59 +02:00
Sandu Liviu Catalin 0f0b795ca9 Various minor changes and fixes that were not pushed to the repository. Just random stuff. 2019-01-29 18:44:55 +02:00
Sandu Liviu Catalin 1757e8b7c4 Exporn newlly added Squirrel API that is used to improve overloaded methods. 2018-10-31 20:28:18 +02:00
Sandu Liviu Catalin f3f4fce80b Get rid of explicit format enabled constructors since they're detected automatically. 2018-10-31 20:07:46 +02:00
Sandu Liviu Catalin 107ddea5fd Don't use constant StackStrF arguments anymore. 2018-10-23 22:29:06 +03:00
Sandu Liviu Catalin 02377fbd46 Fix the command manager to use the new lazy read StackStrF implementation. 2018-10-23 22:17:47 +03:00
Xmair 4de4d045f7 Update Weapon.cpp 2018-09-22 11:48:33 +05:00
Rasikh Qadeer | DizzasTeR 1e379ccdf7 Added PlaySoundForWorld 2018-09-08 12:12:57 +05:00
Xmair cfca96767c Update Vehicle.cpp 2018-08-25 15:02:46 +05:00
Sandu Liviu Catalin 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
Sandu Liviu Catalin 7ed5183d45 Replace template specialisation used to execute a script function with variadic templates in order to reduce code size. 2018-07-29 14:36:52 +03:00
Sandu Liviu Catalin 0ad290ca34 Restructure some files. 2018-07-29 12:25:44 +03:00
Sandu Liviu Catalin a5999e5b50 Remove player validation where non-valid player IDs are allowed. 2018-07-28 13:28:59 +03:00
Sandu Liviu Catalin 5511a4f690 Expose the fall time-rate manipulation API. 2018-06-28 22:15:38 +03:00
Sandu Liviu Catalin d668242901 Implement an unrestricted pool of custom weapon names and fall back to it when looking for weapon names. 2018-04-13 20:31:18 +03:00
Sandu Liviu Catalin 8aec9d5927 Workaround for a sercver issue. Apparently the server returns an error code regardless of what buffer size it was given. 2018-01-24 18:13:25 +02: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 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 4b1e3909a4 Make some adjustments to previously introduced feature to add names to custom vehicles.
Initial approach would throw an instance of 'std::length_error' on linux.
2017-06-16 22:23:07 +03:00
Sandu Liviu Catalin 135e0e690f Allow the user to store names of custom vehicles up to a certain point. 2017-06-16 02:35:03 +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 3e35f7c916 Adjust the Color3 and COlor4 type functions to use the new method of receiving formatted strings. 2016-11-16 16:19:02 +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 10f2ad95ec Adjust the signal to use the new method of receiving formatted strings. 2016-11-16 12:32:58 +02:00
Sandu Liviu Catalin c040b24d29 Adjust remaining miscellaneous functions to use the new method of receiving formatted strings. 2016-11-16 12:32:30 +02:00
Sandu Liviu Catalin 000133b2ba Adjust some of the miscellaneous functions to use the new method of receiving formatted strings. 2016-11-16 12:15:46 +02:00
Sandu Liviu Catalin c318dbf1da Fix HideMapObjectEx registered as SetKeyCodeName. 2016-11-16 11:58:46 +02:00
Sandu Liviu Catalin de4c7da73f Implement the pure typename meta-methods in Signal type using the standard method. 2016-11-15 21:42:54 +02:00
Sandu Liviu Catalin da76d87a93 Move some of the signal implementation to source file.
Don't combine the Consume and Approve methods.
The null value does not count towards returned values anymore.
2016-11-13 14:50:04 +02:00
Sandu Liviu Catalin df12603405 Fix issue in signal which could ommit to push a return value on the stack. 2016-11-13 14:06:53 +02:00
Sandu Liviu Catalin f54271a4fd Implement arbitrary user data for signals. 2016-11-04 01:31:49 +02:00
Sandu Liviu Catalin 5b39f7f061 Implement the Approve and Request methods of emitting signals. 2016-11-04 01:31:07 +02:00
Sandu Liviu Catalin a3594145ad Fix the inequality operator from the Slot class. Remove unnecessary implementation of other comparison operators from the slot class. 2016-10-31 17:35:54 +02:00
Sandu Liviu Catalin 743ceec248 Minor adjustments to the Signals implementation. Also added the Head and Tail methods when connecting slots. 2016-10-30 21:25:10 +02:00
Sandu Liviu Catalin b946e7a9b9 Initial implementation of the built-in event system based on the signals and slots design. 2016-10-30 18:26:37 +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 c5192399e2 Spelling mistake in weapon name. 2016-07-31 18:31:33 +03:00
Sandu Liviu Catalin 7e65a1b21f Adjust skin names array to include the identifier before the name so it's easier to read. 2016-07-30 22:02:37 +03:00
Sandu Liviu Catalin 046d33b49d Adjust vehicle names array to include the identifier before the name so it's easier to read. 2016-07-30 22:02:28 +03:00
Sandu Liviu Catalin 3a216b5447 Add heli-blade to the list of weapon names. 2016-07-30 19:45:30 +03:00
Sandu Liviu Catalin 3b925c21d5 More missing weapon identifiers. Related to #23
Fix the max value for the various identifier groups.
2016-07-28 21:10:07 +03:00