CS2D
Mods Is it possible to create "new" Objects? Is it possible to create "new" Objects?
3 replies So I was thinking about creating a Tower defence like mod for cs2d, but first I would like to ask - as I have never seen it before -, if it were to be possible to create new Structures and hostile AIs, or maybe edit the Turrets/AIs to change their Bullets, dmg, fire rate and hp.
Same counts for all other structures.
I was thinking about something like a F2 Build / F3 Upgrade scheme.
Thank you for your help DC Admin Offline
Unfortunately modding in CS2D is quite limited. You can't create new objects/weapons/characters etc you can only (partially) modify existing ones.
Also see this recent thread about weapons Creating new guns?. The same applies for basically everything in CS2D.
However you can simulate buildings/npc by simply drawing your own graphics. You can't create your own ones using the existing building/NPC system but you can do a lot of stuff with scripting nevertheless.
Some commands for a custom turret would be:
image
spawnprojectile For turrets you may just make them normal walls and put images above them. Then save what kind of turret it is yourself and do all the projectile stuff yourself (there is spawnprojectile as DC has already mentioned) As DC said, your best option would be using Lua. If you want some fine examples, you can try searching for custom buildings (custom turrets for example). As far as I remember, mafia_man, Starkkz and Infinite Rain made some.