Garry's Mod

Garry's Mod

[LFS - CLASSIC] Star Trek Mini Starships Reborn
Metria  [developer] 22 Dec, 2022 @ 1:11pm
Development Update #2: Cloak Device on AI, the beauty of Janeway Class and a system that will never see the light
Greetings recruits of Starfleet!

On this development update, i'll talk about the Cloak Device "AI", the 32nd Janeway Class and the energy system, that did no go so well.




Cloak Device and the system that will never see the light

A while back, on the comments, i talked about a "drawback" on the Cloak Device, well, at first it was looking promising, the energy system, that's what i called, every starship would have it's own quantity of energy, like the Romulan D'Deredix, that was going to have 52000 energy, when you throttle beyound 100%, you used more energy and when you were at 0% your energy recharge. Everything was good, and then, i added 2 starships at the same time, and boom, they were using the same energy, so, everything that i was doing has gone to the backlog, and decided to just focus on the Cloak Device, maybe, just maybe, this feature get desenvolved on update 9.



Now, there's only one extra step to conclude this update, Cloak Device on AI, looks hard, but it was quite simple, since the AI is not thinking about anything, the way i did was, generate a random number at every tick, if this number is equal to the one i choose, then cloak.

As you can see here:
https://cdn.discordapp.com/attachments/1049738898831581265/1055590071983685713/Capturar.PNG

Very simple to understand, OnTick is a function on LFS that at every tick on the server this function is called, and every time this function is called, a new number is generated, if the vehicle has an AI, he will enter the IF ELSE statement and compare if the number is equal or not, it'll also detect if the VEHICLE TEAM is EQUAL to ONE or else.




One drawback of this is the inability to change to the oldAITeam, as you can see it's going to the ONE, if this Klingon Starship is on Team 2 and activates the Cloak Device, he will go back to Team 1 when he returns

Final Product https://www.youtube.com/watch?v=n1wKEtqdbJs




Janeway Class

To celebrate 1000 views and 20 likes, i imported the Janeway Class from Star Trek Online, textures where made manually,and there's more than 800 single lights on LFS. getting this beauty starship at night

https://cdn.discordapp.com/attachments/1049738898831581265/1055592141264519268/20221220231646_1.jpg

https://cdn.discordapp.com/attachments/1049738898831581265/1055592143315533874/20221222113843_1.jpg

Update 6 is almost finished, just need to adjust the new starships and bang! Addon cover is already done too

https://cdn.discordapp.com/attachments/1049738898831581265/1055593109486043216/krita.png

Thank you all for reading!