Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Weapons defined in text files / de-harding weapons [feature debate]

#18
In 9 days I'll be going to the seaside for approximately 3 weeks. I'll have my laptop with Xonotic on it, but am not planning to code there. I wish to begin work on this change when I return, and wanted to revive the topic until then and also to post an update.

Since the final decision is to do this with cvars and not a text file, I'm suggesting a two step solution. The first change can even be merged before the second one is ready. Those are:

First, turn projectiles into cvars while leaving weapons hard coded. This would basically complete the existing balance settings... since you can already tell a weapon the damage, speed, spread, etc. of its projectiles, but will also be able to specify what projectile is spawned. That means making the Rocket Launcher shoot bullets, the UZI to spawn grenades, or anything an admin wishes to do on their server.

The second step would be de-hardcoding weapon definitions so weapons themselves can be cvared, allowing admins to fully remove guns and create their own. There would no longer be a Rocket Launcher, Electro, Shotgun, etc. in the code, just a file which reads cvars and creates weapons when the server starts, assigning them to the chosen weapon slot and spawn entities of the map.

The first part will be easy, and mainly requires moving projectile logics to a common file then choosing which and how to use based on cvars. I think I can do this one on my own. The second part will be quite difficult, as weapons will need to be removed from the code and flexible removal / addition of new ones must be allowed.

I'd like to know who's willing to help with this part once it's time (probably some months from now). Also who else supports the feature or plans to use it, so I know if to get started sooner or later. Again, this is possible to do with a bit of work, and will not affect players or change anything by default (just make it possible for people who mod Xonotic to customize weapons without editing the code). Please post your thoughts in the meantime.
Reply



Messages In This Thread
RE: Weapons defined in text files / de-harding weapons [feature debate] - by MirceaKitsune - 07-11-2012, 01:44 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Speech to text, or almost voice chat oblector 0 2,869 06-30-2022, 06:29 PM
Last Post: oblector
  New feature review/test: Private Server List BuddyFriendGuy 17 25,451 01-07-2016, 08:05 AM
Last Post: BuddyFriendGuy
  missing shader files BuddyFriendGuy 0 4,101 07-05-2015, 07:19 PM
Last Post: BuddyFriendGuy
Question Text right to left (xonotic menu) kariminf 5 9,396 07-08-2013, 06:00 AM
Last Post: Mr. Bougo
  What is the general consensus on "dodging"? (UT's greatest feature IMO) ambition 7 9,336 01-26-2013, 02:42 PM
Last Post: lda17h
  Game key bindings working while typing text AviyaL 3 7,321 09-23-2012, 05:35 AM
Last Post: Mr. Bougo
  Bone based damage system (feature vote and debate) MirceaKitsune 42 60,258 05-17-2012, 01:29 AM
Last Post: CuBe0wL
Question media source files of vehicles? poVoq 13 14,054 02-21-2012, 06:16 PM
Last Post: tZork
  [SOLVED] How does the decompression of files within pk3s work? joshbeck 3 7,146 09-29-2011, 09:28 PM
Last Post: joshbeck
  A new feature for singleplayer campaign ThePWTULN 6 8,616 09-21-2010, 11:25 AM
Last Post: ThePWTULN

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-