Jump to content

Silier

WFG Retired
  • Posts

    1.265
  • Joined

  • Days Won

    9

Posts posted by Silier

  1. 4 hours ago, sternstaub said:

    Does not matter. If the game will go to release someday, such small things must be fixed.

    Unless whole mp will be overwritten so noone computes and holds all info about entities of every player, this will continue to be an issue no matter how much security fixes will be done, the data will be always available for the experienced JavaScript programmer to obtain.

    • Like 1
  2. If you put archers on walls i believe they get additional protection from it.

    Agree vision obstruction from walls would be nice, but it needs really good code design because walls can be build and destroyed and vision is calculated from every player owned entity so might hurt performance a lot. 

    Also currently there is issue with ai seeing everything by design and there is also unitai code depending on vision of units.

    To the original topic, with current rate of fire of units in game, checking collision for each arrow is performance nightmare

    • Like 5
  3. There is component in templates (xml) of structures where they can be build.

    I suggest to go through components and check what each of them do so you get overview  https://github.com/0ad/0ad/tree/master/binaries/data/mods/public/simulation/components

    Any structure or unit in game is defined by its template.

    https://github.com/0ad/0ad/tree/master/binaries/data/mods/public/simulation/templates

    E.g. for your change you need to edit the building restrictions https://github.com/0ad/0ad/blob/b0214ff96935f45e2ff46d8127e2ed38639a013e/binaries/data/mods/public/simulation/templates/template_structure.xml#L6

×
×
  • Create New...