• Tiberium Addon
    462 replies, posted
  • [QUOTE=Kialtia;21513683]Entities cause more lag because they have function in Lua that are being called.[/QUOTE] Would it cause less lag if you made them solid models? Or is that not possible while retaining their current properties
  • [QUOTE=Telepethi;21520964]Would it cause less lag if you made them solid models? Or is that not possible while retaining their current properties[/QUOTE] You mean like a square physics box? i already gave them that through Lua.
  • No, I mean just literally make them models. There are already tiberium crystal models aren't there? Wouldn't it be less stressful on the system if you used models instead of entities?
  • They'd still need the lua to set function, in some way. Submerging a portion of the model outside the map might cause issues in some of them. Not to mention, the model's animation for spreading would need to be perfectly lined up with the chosen location.
  • [QUOTE=Jeffman12;21529796]They'd still need the lua to set function, in some way. Submerging a portion of the model outside the map might cause issues in some of them. Not to mention, the model's animation for spreading would need to be perfectly lined up with the chosen location.[/QUOTE] I can see where you're coming from... Still wouldn't it cause less lag? Even with the LUA?
  • Well, this idea should help alleviate the lag, although probably make the code a little more convoluted. The Tiberium checks to see if it can spread, after X consecutive failed attempts it removes 1 from the max amount of crystals per field but for that field. It runs the check again, if it finds an available location, it grows and adds 1, assuming the Tiberium has filled up the maximum space in that area, it then begins to check again, the failed checks start decreasing the max for that field by 1 until it gets down to the number it currently has, and there it remains dormant until harvested.
  • [QUOTE=Telepethi;21529009]There are already tiberium crystal models aren't there? Wouldn't it be less stressful on the system if you used models instead of entities?[/QUOTE] That's what I said Tele, near the top of the page. So I'm preusuming you could, the only difficulty would be the proximity of the harvester to the harvestee.
  • [QUOTE=Mooee;21534722]That's what I said Tele, near the top of the page. So I'm preusuming you could, the only difficulty would be the proximity of the harvester to the harvestee.[/QUOTE] I meant a model for each crystal, not a giant parent model
  • [QUOTE=Telepethi;21529009]No, I mean just literally make them models. There are already tiberium crystal models aren't there? Wouldn't it be less stressful on the system if you used models instead of entities?[/QUOTE] Entities are models, a model is just how an entity is displayed (Props you spawn from the spawn menu are the entity prop_physics).
  • Is there a limit size of a field? If there is, how should I reduce it? Once I tried making a field, After 5 mins my FPS is about low. Just lags like crazy.
  • [QUOTE=oficcerthegeek;21546445]Is there a limit size of a field? If there is, how should I reduce it? Once I tried making a field, After 5 mins my FPS is about low. Just lags like crazy.[/QUOTE] Update your SVN and use WTib_DefaultMaxFieldSize.
  • [QUOTE=oficcerthegeek;21548508]That's a ConCom?[/QUOTE] Yes, you can set it to a value between 20 and 300.
  • [QUOTE=Telepethi;21538498]I meant a model for each crystal, not a giant parent model[/QUOTE] Ah. Okay then, my bad sir. I am utterly confused at what you mean then, I think Kialt's on the right track with your thinking though.
  • [QUOTE=Mooee;21559822]Ah. Okay then, my bad sir. I am utterly confused at what you mean then, I think Kat's on the right track with your thinking though.[/QUOTE] Who is kat?
  • [QUOTE=Kialtia;21471167]All those models will be used for entities once i get to it.[/QUOTE] back to the thread, did you make any progress yet?
  • Ki, I don't understand the SVN. I have downloaded it, but inside there's just a folder called WTiberium, of which inside there's the other folders, but I didn't find the good old info. WTF?
  • [QUOTE=oficcerthegeek;21570173]Ki, I don't understand the SVN. I have downloaded it, but inside there's just a folder called WTiberium, of which inside there's the other folders, but I didn't find the good old info. WTF?[/QUOTE] Move the WTiberium folder to addons. [editline]08:39PM[/editline] [QUOTE=scratch (nl);21570020]back to the thread, did you make any progress yet?[/QUOTE] Not yet, last weekend i celebrated by birthday so i didn't work on WTib at all. [editline]09:31PM[/editline] Just released an update.
  • [QUOTE=Kialtia;21570474] Just released an update.[/QUOTE] updated! time to see what you did upgrade...
  • this thread is fairly slow, perhaps it would be better not under entities? also, could tiberium in groups of 3 become one entity? (to help fight lag)
  • [QUOTE=jack254;21591377]perhaps it would be better not under entities?[/QUOTE] Perhaps you remember he history before asking for this? I belive we all said a nice "NO!".
  • I think i have an idea on how to reduce lag, i can make Tiberium crystals "retire", so that if they can't grow another crystal within lets say 2 minutes it stops trying to grow completely, however it does get a boost to the maximum amount of Tiberium it can hold (Lets say 1000), what do you guys think?
  • [QUOTE=Kialtia;21592041]I think i have an idea on how to reduce lag, i can make Tiberium crystals "retire", so that if they can't grow another crystal within lets say 2 minutes it stops trying to grow completely, however it does get a boost to the maximum amount of Tiberium it can hold (Lets say 1000), what do you guys think?[/QUOTE] that's what lynix did too for the biggest part, that's the fact why i don't like the lynix version... (for a big part) jack's idea did sound pretty too, when 3 crystals are near eachother they form 1 larger crystal, making 3 entities to 1 (lets say, a field of 60 crystals, when they all change from 3 to 1 entitie/crystal you only have 20 left)
  • But wouldn't they need to constantly check to tell if they can form a larger crystal, causing more lag? Given there's a solution to it, that's not such a bad idea. It would let a field spread more with less entities and bring back the neat look in TS of larger crystals towards the center of the field. [QUOTE=scratch (nl);21602766]that's what lynix did too for the biggest part, that's the fact why i don't like the lynix version... (for a big part)[/QUOTE] Wait, what? As I recall it just stopped growing past the set amount, there wasn't anything else to it.
  • If i would to merge 3 crystals into 1 (Still drawing a total of 3 crystals) i would still have to preform the same checks every think, the lag would be just about the same (Might lag a tiny bit less due to source also updating the entities) but it would require me to completely recode the Tiberium crystals.
  • oh when i meant it shouldent be under entities, i meant this thread should be under lua releases, not lua releases\scripted entities