Page 1 of 3

Godzilla Elites + Command Script Tutorial

Posted: Wed Oct 11, 2006 6:19 pm
by Agent ME
This mod is the first mod I know of publicly released to use AI command scripts. More on how to use those at the link near the bottom. Here is the script first:

Code: Select all

(script command_script cs_test
  (begin
    (sleep 60)
    (cs_vehicle_boost true)

    (sleep 60)
    (cs_vehicle_boost false)
    (sleep 60)

    (ai_vehicle_exit ai_current_actor)

    (object_set_scale (ai_get_object ai_current_actor)[script_object]  10.0[real] 1[short])
    (sleep 90)
))
(Do not bother trying to compile that in Shalted's compiler - I had to compile it by hand)

The script is a command script, and its set to run for two ai controlled banshees at the start of the game.

Now here's some screenshots, first two animated courtesy of Munsie:
Image


Image
Image

About System Link: This mod will work in system link, but the elites will appear to be normal size to everyone else, regardless if they have the mod or not, because scripts aren't synchronized online.

Credits
WastingBody - Original AI in Coag mod - This is based off of that
Solder of Light - Lots of scripting help
Munsie - Animating the screenies
Guy-who-made-SPPF - For making a patcher that didn't let down this mod

Tutorial Linkage

Download Link

Posted: Wed Oct 11, 2006 6:20 pm
by GametagAeonFlux
That looks pretty awesome. Good job.

Posted: Wed Oct 11, 2006 6:23 pm
by Loonycgb2
:shock: :shock: :shock: omg super cool nice script

Posted: Wed Oct 11, 2006 6:23 pm
by Jubakuba
rofl
enlarging the models used to suck, so gj

Posted: Wed Oct 11, 2006 6:24 pm
by Agent ME
Oh and somethings on collision - the elites have correct projectile collision thanks to the Bungie programmers of the object_set_scale command - but their real object collision is unchanged - you can fly a banshee through their main mass, but if you hit the invisible lump under them, they'll go flying and get damaged.

And when they die, they shrink to normal size, and their body falls from 30 feet up :lol:

Posted: Wed Oct 11, 2006 6:30 pm
by DWells55
If scripts don't sync, how's the Zanzibar gate work?

Posted: Wed Oct 11, 2006 6:30 pm
by Jubakuba
lol
nice
and btw...
um
didnt mean to undermine your work
just reread that and it sounded mean :-)

Posted: Wed Oct 11, 2006 6:33 pm
by Agent ME
DWells55 wrote:If scripts don't sync, how's the Zanzibar gate work?
The script doesn't sync, but most of the states of all objects sync. IE, if I make a script to spawn a warthog, the script itself won't sync, but the fact there's now a warthog will sync.

However if I do something like turn off my player's hud, that won't sync.

Posted: Wed Oct 11, 2006 6:34 pm
by latinomodder
that is really cool I was doing alot of research on this, no wonder it ever compiled, also have you tried the scarab? 8) If not pm me ive got a good idea.

Posted: Wed Oct 11, 2006 6:36 pm
by xXtR1Xm1Xx
This looks fun. Nice work on scripting.

Posted: Wed Oct 11, 2006 6:43 pm
by SerpentKnights
suh-weet.. must be fun scripting eh?

Posted: Wed Oct 11, 2006 6:53 pm
by ledgendary
Sorry but, I am confused.. Is it a huge elite that has AI that walks around and kills you? If so, That is cool! 9/10, you should reskin it dark, add building models.. and planes, that have AI to shoot at Godzilla, ( you could also model the Elite into Godzilla >_< )

Posted: Wed Oct 11, 2006 6:55 pm
by SingingBlaze
Hmmm. Its Godzilla?

Posted: Wed Oct 11, 2006 6:57 pm
by xXtR1Xm1Xx
Ask Trulife if you could use his plane model in the pic section. That would pwn. :D

Posted: Wed Oct 11, 2006 6:59 pm
by D4rkFire
Doesnt seem that fun to me but then again Im kind of confused about the point of this.

Posted: Wed Oct 11, 2006 7:00 pm
by StalkingGrunt911
Looks pretty cool good job on compling it by hand.

Posted: Wed Oct 11, 2006 7:04 pm
by Zigen
D4rkFire wrote:Doesnt seem that fun to me but then again Im kind of confused about the point of this.
Its a multiplayer AI mod. What's so confusing about it?

Posted: Wed Oct 11, 2006 7:06 pm
by D4rkFire
No the point like its an AI mod so why not just keep it that way. Why make the elite huge if it does the same thing big or small.

Posted: Wed Oct 11, 2006 7:09 pm
by jackrabbitlight
scripts sinc up just fine online if you wright them correctly wich can be the trickyest part

Posted: Wed Oct 11, 2006 7:55 pm
by Punk Rock0905
jackrabbitlight wrote:scripts sinc up just fine online if you wright them correctly wich can be the trickyest part
Do you have any idea what you are talking about?