[SUGGESTION] Construction kit - Printable Version +- Xonotic Forums (https://forums.xonotic.org) +-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10) +--- Forum: Xonotic - Suggestion Box (https://forums.xonotic.org/forumdisplay.php?fid=20) +--- Thread: [SUGGESTION] Construction kit (/showthread.php?tid=2138) |
Construction kit - lamefun - 09-14-2011 Construction kit turrets can be built with. If ckit is enabled, when turrets are destroyed, they should be gone forever (as they can be rebuilt). RE: Construction kit - Lord Canistra - 09-14-2011 Need a dispenser here. RE: Construction kit - Cuinnton - 09-14-2011 Or perhaps a repair tool, for assault games RE: Construction kit - Lee_Stricklin - 09-14-2011 Or perhaps a version of Siege XXL for Xonotic. http://www.heiland.co.uk/siege/intro.html Best mod ever, it's played on CTF maps where each flag is replaced by a base core. Picture RTS on the ground with your only objectives being to destroy your enemy's core and protect your own. Earn resources for raising hell, use said resources to upgrade, repair, and build stuff (such as protectors, resource containers/blockades, weapon suppliers, health suppliers, nukes, etc.). Also no class based BS either. Interestingly enough the models in this mod are nothing special, no really just look at the web page. They're mostly orbs, cubes, and diamonds. The major limitation I can see with bringing this into Xonotic would be the necessity to place limits on a few things to avoid lag caused by bullet hell (something that currently plagues UT99 SiegeXXL when you get too many protectors built and too many explosives going off) and scrap a lot the unnecessary and redundant (multiple types of protectors for example, there's also three types of nukes, and many types of bombs as well) BS that exists in the versions that are popular now. RE: Construction kit - rainerzufalldererste - 09-14-2011 I'd like to craft such a kit with that ...er...no Only a mutator? and disabled by default if enabled! (imo) RE: Construction kit - Minkovsky - 09-14-2011 You have a point, Cuinnton - why should the turrets just repair itself? Make the players do it! TURRET EQUALITY FRONT RE: Construction kit - Lee_Stricklin - 09-14-2011 That would make assault games a bit more tactical if the players had to repair the turrets. Maybe assigning the use key to also repair stuff would be better than making a repair tool model. RE: Construction kit - Cortez666 - 09-14-2011 (09-14-2011, 05:51 AM)Cuinnton Wrote: Or perhaps a repair tool, for assault games i set the turret_scale_respawn to 10, which means a 10 times longer respawn time. afaik the normal respawn time is 90 sec. So its nearly impossible that one time have to destroy the turrets twice. after the attackers become the defenders the turrets respawn automatically RE: Construction kit - lamefun - 09-15-2011 Yes, Ckit should be a mutator. I think it should be like Tremulous. When CKit is enabled, default turrets should still spawn, but if they are destroyed, they should be gone forever (they can be of course rebuilt in the same place). Turrets should be possible to build on any ground that isn't too steep. Turrets should also need generator. If generator is destroyed, turrets stop function until a new generator is build with ckit. Gnerator should provide limited amount of power to avoid turret spam. RE: Construction kit - Cortez666 - 09-15-2011 (09-15-2011, 10:06 AM)lamefun Wrote: default turrets should still spawn, but if they are destroyed, they should be gone forever just add turret_scale_respawn with a high value to the turret entity and the turrets are gone for ever. if you want a construction kit go and code it RE: Construction kit - tZork - 09-15-2011 turret_scale_respawn is not the right way to do it, as it does not actually remove the turret, just makes it idle. The turrets part of this would be easy to do, they support a flag for self-deletion in death: Code: /// Die and stay dead. As you would have to write code for the kit and the interaction with it anyway, its far better to use this. The code for spawning a turret "on demand" would look something like this: Code: entity PlacePlasmaTurret(vector _where, vector _angle) RE: Construction kit - lamefun - 09-17-2011 Code: // Return the entity for custom setup. NOTICE: it will not be fully initialized at this point, O_o... why aprox 0.5s? Is the code so broken you have to rely on timing? RE: Construction kit - tZork - 09-17-2011 Its due to how the turrets initialize. The code above abuses the spawn function, this function delays its initialization by 0.5s to allow possible target / controlling entities to spawn first. Also whats so broken with relying on timing? If you like you can write a longer function to duplicate the turrets init proc w/o this delay, however i see that as unnecessary code duplication. I dont see what you would need the return ent to be fully "finished". Proly you dont even need to worry abt the ent at all once its spawned, as it will do its thing quite fine - the return is just there for compactness. RE: Construction kit - Minkovsky - 09-17-2011 Could we just exploit the delay and make it flexible enough so that you'll have to make yourself vulnerable when constructing a turret? RE: Construction kit - tZork - 09-17-2011 Sure, this code is just for placing/spawning. when, where and what happens to the player is up to somenoe else to decide and code. RE: Construction kit - Minkovsky - 09-18-2011 right... so basic set of vars could look like this: sv_constructionkit [bool] - enable or disable the construction kit, should also prevent it from spawning. sv_constructionkit_behavior [1,2,3] - 1 for just repairs, 2 for just building turrets, 3 for both sv_constructionkit_duration [int] - time added to the required 0,5s, will be fun to balance. sv_constructionkit_constructwhat [string:turret name or error] - what turret to build, while in modes 2 and 3 sv_constructionkit_ammotype [1,2,3] - 1 for fuel, 2 for energy cells, 3 for an arbitrary limit sv_constructionkit_ammo [int] - amount of uses if ↑ is 3, else: how much units of selected ammo type for a repair/construction sv_constructionkit_cooldown [int] - how much time must pass between uses, will be fun to balance. anything else? RE: Construction kit - lamefun - 10-26-2011 Ok, I created a branch and now trying to implement. I have a few questions: 1. How to bring up a building selection dialog on primary fire? 2. When a building is chosen, how to send its name to server? 3. How to show a building hologram in place it will build? |