Cortex Command
Spectator Mod
ECHO_7  [δημιουργός] 13 Σεπ 2018, 13:49
Features
what features would you like to see in the future?
< >
Εμφάνιση 1-3 από 3 σχόλια
Very nice! Always liked AI battles
Its really good, but I have a suggestion to improve it even more.
As it is the units are hunting the dummy brains, and some times they get stuck and stop fighting because of it.
To solve this and make them actually hunt each other, simply add the line "passenger:AddToGroup('Brains')" in the reinforce function.
You can also swap local brain = CreateActor("Dummy Controller" ) to local brain = CreateACrab("Crab" ), so the AI wont be distracted by the dummy brains.
I tested it with the modifications and it seems to work fine.
Hope this helps!
ECHO_7  [δημιουργός] 25 Οκτ 2019, 12:49 
Αναρτήθηκε αρχικά από LoPi - Tatuzudo:
Very nice! Always liked AI battles
Its really good, but I have a suggestion to improve it even more.
As it is the units are hunting the dummy brains, and some times they get stuck and stop fighting because of it.
To solve this and make them actually hunt each other, simply add the line "passenger:AddToGroup('Brains')" in the reinforce function.
You can also swap local brain = CreateActor("Dummy Controller" ) to local brain = CreateACrab("Crab" ), so the AI wont be distracted by the dummy brains.
I tested it with the modifications and it seems to work fine.
Hope this helps!


Hi
thank you for the suggestions!
i added the those lines to the script. However everytime the Crab moves underground it gets destroyed which triggers a short game over screen before the next one spawns.
I am trying to completely remove those underground brain actors by setting the reinforcement Actors to a Player brain:
Spectator:SetPlayerBrain(passenger, player)

However the game doesnt allow me to select these actors then D:

Maybe try to create invisible brain somevhere?
< >
Εμφάνιση 1-3 από 3 σχόλια
Ανά σελίδα: 1530 50