
leiizko
Administrators-
Content Count
285 -
Joined
-
Last visited
-
Days Won
55
leiizko last won the day on December 8 2020
leiizko had the most liked content!
Community Reputation
104 ExcellentAbout leiizko
-
Rank
Senior Member
- Birthday 12/31/1868
-
Please don't spew out nonsense, literally anyone can find your ID as it is far from private. Secondly noone is forcing you to use cod4x. Don't like the rules? Good bye.
-
You need to return a boolean if the buy was successful. You need an entry function and from there thread your arm() function and return true. entry() { // Whatever checks you might want thread arm(); return true; } arm() { ... } Obviously "addHardpoint( "arm", "Protection", ps\_killstreak::arm, undefined );" has to be changed to "addHardpoint( "arm", "Protection", ps\_killstreak::entry, undefined );"
-
Waypoint editor for moving camera on match end
leiizko replied to leiizko's topic in CoD4 New Experience
I don't think anything was changed that would break this functionality. You need to run a cod4x server with developer_script and ending_editor enabled. Maybe your server doesn't have write permission? -
Plugin_Scr_MakeArray(); // init the array for( i = 0; i < array_size; i++ ) { Plugin_Scr_MakeArray() // init the subarray ADD_XXX( value1 ); // add the value 1 Plugin_Scr_AddArray(); // push the value 1 onto the subarray ADD_XXX( value2 ); // add the value 2 Plugin_Scr_AddArray(); // push the value 2 onto the subarray ... Plugin_Scr_AddArray(); // push the subarray onto the array } Where the ADD_XXX is one of these. If you want a string index instead of a number you must use Plugin_Scr_AddArrayStringIndexed( Plugin_Scr_AllocString( name ) ); // name -> const char* instead of Plugin_Scr_AddArray().
-
I don't really remember how this pathfinding works as it was quite some time ago but i guess the simplest solution is to just dump it to file and load it from there.
-
waypoints[curEntry] = {} waypoints[curEntry].wpIdx = curEntry The dot in lua is table( waypoints[curEntry] == waypoints.curEntry )
-
Waypoints are still stored in gsc as they're referenced all over the place and I didn't want to bother changing it all. You can store all waypoints in lua without any issue, you just need some fetch function and are ready to go. example: Ranktable -> Fetch -> GSC function
-
Balogh István started following leiizko
-
[Request] Being able to change ADS Sensitivity on COD4
leiizko replied to Fear's topic in Bugs & Feature requests
There will be ADS sensitivity multiplier in next version. -
[BUG?] Did you changed the Multithread behavior in last updates?
leiizko replied to Hajas's topic in Bugs & Feature Requests
Nope. Then you obviously never return from this function. And as noone has any script problems you can safely assume problem is on your end. -
Never tried it, in theory it should work. The error means you have 64bit luasql module, you need 32bit one to work with this plugin.
-
[BUG?] Did you changed the Multithread behavior in last updates?
leiizko replied to Hajas's topic in Bugs & Feature Requests
Looks like the command gets executed next server frame so .05 wait time should be enough. Why do you even use such weird method of waypoiting? -
You are not loading the lua script file From readme example: lua_loadscript "lua_scripts/test.lua" // script is located in fs_homepath/lua_scripts
-
[BUG?] Did you changed the Multithread behavior in last updates?
leiizko replied to Hajas's topic in Bugs & Feature Requests
Script VM is completely serial, there is no multithreading involved. "Thread" doesn't start a new thread. -
Plugin is working with latest server version. Just search your logfile for "Lua Error:" As for the broken readme, that is just search cutting out lines inbetween. Funnily it looks like a different function.
-
5000 is the limit with stock scripts.