Ok, I think I’m getting a handle on things here. So after poking around in some other threads I have come to understand that there are “weapon”.txt files that contains stuff like:
I also noticed someone say something about how in the gserver startup log you can see “loading weapons…” and then a list of weapons that the gserver “knows” about. But I don’t see any even though I have “file weapons/*” in my folder configuration and I’ve made a file “weapon-system.txt” and included the above code (and just some dumb test code to see if the system weapon is attached to me).
What do I have to do to make a text file in my gserver folder be recognized by the gserver as a “weapon” (that the defaultuser account could have for example)?
…For the love of crap just put a weapon in a level
if(playerenters) toweapons Weaponnamehere;
GServer will handle the rest for you.
Then you go in and edit your defaultaccount.txt to have that new weapon.
After that, you can delete the weapon from the level, then restart the server.
or better yet- just put the damn weapon in the onlinestartlocal.nw, going under the logic everyone visits it, no?
I thought the problem with that was that in order for everyone to get the updated weapon after I fix something months later, they’d have to re-visit that level.
Sorry for asking so many questions. Maybe I should just poke around the gserver code to figure out how everything works.
A person can only obtain a weapon, if they don’t already have that weapon
Once a player obtains a weapon, the weapon is updated/cached
If a weapon is updates and cached, all players are forced an update of that weapon.