leiizko

Administrators
  • Content Count

    249
  • Joined

  • Last visited

  • Days Won

    47

leiizko last won the day on April 29

leiizko had the most liked content!

Community Reputation

90 Excellent

About leiizko

  • Rank
    Member
  • Birthday 12/31/1868

Recent Profile Visitors

2628 profile views
  1. deleting the entity should stop the sound I think. However not sure if it would have any negative effects.
  2. I'm unable to test this, the waypoints seem broken. The algorithm I use just fails to find the path (I don't do node rediscovery) while stock implementation just enters an endless loop and scriptengine returns undefined after 16 seconds.
  3. I tested on pipeline which has 450 waypoints. If you have any bigger waypoint file you can send it to me and I can test it for paths you are having trouble with.
  4. Maybe just use this instead link That little improvoment you would get from doing it in pure C is not worth it.
  5. Best used on Hardcore servers so we can get a clear view without hitmarker obscuring everything and 1 shot means 1 kill with most weapons. Use only when you are active on the server and recording. And before someone asks, cvar_cheats only makes server be able to use cheat protected dvars, clients will not be able to use cheats while playing.
  6. This plugin will allow you to write plugin in Lua, no compiling needed. Just drop into server directory and load the script file and you're done. Most suited for implementation of heavier functions that run slow in gsc script (A star for example). It is up to 10 times faster in my tests. Still early version so there may be bugs and not all functions are implemented. Should be enough to satisfy most needs, but if needed you can use lua ffi api to access structs and other functions. GitHub page
  7. If you are running new arch add to config file: set db_nobspweapon 1 If still on old arch add this code to gametype start function turrets = getEntArray( "misc_turret", "classname" ); for( i = 0; i < turrets.size; i++ ) { turrets[ i ] delete(); }
  8. Wouldnt help you at all. Weapons are precached in script and if you remove them from loading you will crash due to script error.
  9. Plugin_Error prints just general error/warning from the plugin, while Plugin_Scr_Error invokes a script error so you actually have a backtrace so you know where exactly the error happens in gsc code. At quick glance i cannot see Scr_GetVector accessible from the plugin. Plugin_Scr_GetVector(0, &origin); will do exactly the same. It can be messy at times, but if it suits your needs it is okay then.
  10. Unreleated, but some notes: You probably want Plugin_Scr_Error here? You tried your own implementation of this? Plugin_Scr_GetVector() is by default. Use Vec3DistanceSq() instead. And like said before, try not to use 2 different return types.
  11. Don't have a steam cod4, still does exactly what I described.
  12. Sure. struct data *location = malloc( numElements * sizeof(struct data) ); But this obviously has to be done at runtime and not as a global variable. What are you even trying to malloc? You already initialized the location array. Maybe you'd want to switch to C++ and just use vectors instead.
  13. Editing it like that will make the file impure and it will redownload the original exe file. You can actually find quite a lot of people crying why they can't rename cvars as easily as before.
  14. Promod has built in FPS check so scripting it makes little sense. If you really want to do something else, you can invoke a scriptmenu response when that check is triggered and from there kick/kill/whatever the player. And fyi. It is no longer as simple as editing the exe file with notepad. You can try it yourself and see what happens.
  15. Gentities are not reversed so this will probably never happen. You are better off finding ways how to reduce them.