Giter Club home page Giter Club logo

dhadmin's People

Contributors

jellebouma avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

dhadmin's Issues

Game end bug

On game end, occasionally the game will not end. Instead it lags for a second and then you can move around and shoot again.
When this happens, ending the game manually (with !end) wont work but using map rotation does.
From experiments this seems to be tied to ACHIEVEMENTS_OnKill showing achievements while the game is ending.

Refactoring notes

HWID
InfinityScript 1.5.3 has an entity field HWID which could replace a lot of DGAdmin code for getting the HWID.
However this field holds a 32 digit hexadecimal HWID which is completely different from the 24 digit hexadecimal HWID that DGAdmin uses.
The DGAdmin HWID does seem to work well, it keeps out some people with a HWID equal to zero, who are presumably hackers. While everyone I know does not have a zero HWID.
This left me 3 options:

  1. Refactor it regardless, even though this will ruin existing permissions and may not work as well as the HWID DGAdmin uses.
  2. Use both HWIDs, leading to more code and possibly more problems, but might be even better at stopping cheaters.
  3. Leave it as is.

I opted for the third option here.

TODO for initial release

DHAdmin

  • Write code for the initial setup of DHAdmin (creating the right files and folders, changing server.cfg, changing settings.txt)
  • Write a readme.
  • Write documentation for each (DGAdmin) method.

Map (and mode) rotation

  • Create a new map rotation system where rotation is random instead of having the same sequence every time. Removing the need for unreliable DGAdmin delays when trying to keep track of the current game mode.
  • Allow multiple maps per line. And allow any number of lines.
  • Add option to not repeat the same map+mode.
  • Appropriately handle comments and white-space.

Achievements

  • Add a way to define achievements that are icons shown with your callsign when you kill someone
  • Allow an achievement to have multiple objectives and use the rewards system to track these objectives.
  • Have a command that shows you the completed and uncompleted objectives.
  • Add the option for a message to be broadcast when someone completes an objective.

Damage

  • Allow modification of damage (fall damage, damage of a specific gun or damage while under some effect). This will deprecate john_woo_momentum.

Mapedit

  • Allow spawning of models, fx and collision with mapedit.
  • Allow spawning of weapons that can be picked up with mapedit.
  • Allow spawning of search and destroy style objectives with mapedit. This will deprecate settings_snd.
  • Load a specific mapedit file on server start so explodables etc will work.
  • Add spawning of explodable barrels with collision that is removed when they explode. These will deprecate settings_extra_explodables.
  • Make the map edit commands easy to use and autosave map editing to a map edit file.

HUD

  • Add a hud timer to search and destroy objectives.
  • Create a new file for hud editing. Move and refactor the DGAdmin code related to the hud here.

Score

  • Track custom scores.
  • Create settings that decide an initial score and a winning score.

Rewards

  • Make a reward system where rewards can be triggered (not necessarily a positive reward). This will allow great flexibility in defining game modes when there are a decent amount of triggers and reward types.
  • Add kill and death reward triggers, with optional restrictions of used weapons/classes.
  • Add weapon pickup and "search and destroy objective" reward triggers
  • Add speed reward.
  • Add jump height reward.
  • Add score, weapon, perk, chat, fx rewards and a reward trigger for having the top score. This will deprecate settings_killionaire.
  • Add a reward trigger for reaching a defined score.
  • Add a reward trigger for changing class (selecting for the first time counts too), this will allow to do class specific (constant) rewards that can not carry over to other classes.

Weapons

  • Add all weapons to WeaponDictionary.
  • Better handle attachments of weapons, camo weapons should have different models.

DGAdmin 3rd person mode bug

When in 3rd person mode, the bullets appear to always go in the same direction, ignoring the rotation of the player.

Score system bug

when a score reward is given, the score increases constantly.

Server shuts down when it tries to start a search and destroy game.

[WriteLog::Debug] ServerTitle:: start scanning...
Scripts initialized successfully!
----- Server Shutdown -----
Steam Game Server shutdown complete.
---------------------------
[WriteLog::Debug] ServerTitle:: addrs: 
[WriteLog::Debug] ServerTitle:: addrs(filter): 
[WriteLog::Warning] ServerTitle:: structure not found
[WriteLog::Debug] ServerTitle:: done scanning.

nice

nice work man love it

Sometimes fx spawned at the start of the game are not visible

Sometimes fx spawned at the start of the game is not visible. Fx spawned later is.
Question: Is it possible to detect this from the state of the fx entity?
Possible solutions:

  • delay the spawning of fx at the start of the game
  • try again if fx spawn fails

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.