Hats. Hat scripts are one of the most popular categories of scripts in Counter-Strike 2D and on Unreal Software – together with administration solutions and Tibia remakes. The majority of hat scripts, however, contain the same pitfalls and mistakes that lead to errors and malfunctions. This post is a tutorial on how to make good hat scripts. This tutorial is made for those with basic knowledge of Lua and its CS2D API. Continue reading CS2D Lua: Hats
Arguably the cutest version of LÖVE yet, version 0.9.0 codename Baby Inspector has been released, bringing LuaJIT, better multiplayer networking and much more. Rejoice! Continue reading LÖVE 0.9.0 Released
So according to the results of the poll on UnrealSoftware, 6 out of 10 people wanted to see a save system. In this post I’m going to describe a quite sophisticated universal system for saving data in an external file.
Continue reading Useful CS2D Lua Functions: Part III
Recently, I’ve been asked twice about how to check if there’s something obstructing the path from (x1;y1) to (x2;y2). Here I’ll provide two implementations equally useful – to check if there’s something obstructing the way for a player (wall or obstale) and to check if there’s something obstructing the way for a bullet (wall).
Continue reading Useful CS2D Lua Functions: Part II
So, this post will begin a series of posts that provide some useful CS2D Lua functions and explain how to use them. The functions provided are some very popular ones, people constantly ask for them, so this series of posts will allow them to refer to ready code chunks without annoying people on the forums.
A very popular request both in personal messaging and on the forums is, “How do I find the position of an object if it continues to go where it’s facing for X pixels?” Paraphrased, of course, but that’s what people ask, one way or another.
Continue reading Useful CS2D Lua Functions: Part I