SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > SRB2 Discussion

Thread Tools Search this Thread
Old 09-14-2016   #1
viniXD's Avatar
Default it would be possible to create enemies fighting among themselves?

a wad that made crawlas, robots guards, and other badnicks as metal and brakeggman all fight among themselves, shooting each at the others as do with players.

something like this is possible? like the monsters of minecraft

---------- Post added at 04:27 PM ---------- Previous post was at 04:26 PM ----------

if so, it would be a very quick fight, because the robots die with one blow, but perhaps extending their life as the eggaman.
viniXD is offline   Reply With Quote
Old 09-14-2016   #2
I do things sometimes
CobaltBW's Avatar

You can currently replicate this idea to some extent. If an enemy such as the eggmobile or crawla commander are attacked by a projectile such as a bullet or missile, they will make that attacker their new target. This means there will be instances where, say, a jettysyn gunner accidentally hits Robotnik and then Robotnik proceeds to laser the jettysyn in retaliation.

There's two problems however. First is that there's no currently coded mechanism that I'm aware of that will cause an enemy to target other enemies by default. The second is that there's no coded mechanism that will cause enemies to deal contact damage to each other. Even if two crawla commanders were to want to fight each other, they would simply spaz out in a circle amongst each other, dealing no damage.

I imagine that with some lua magic someone could fix those two issues. The first would probably have something to do with the SEE states, the second might just be a couple lines inclusion so that enemies deal contact damage to whoever they're targeting.

Check out my soundcloud profile for music stuff
CobaltBW is offline   Reply With Quote
Old 09-20-2016   #3
What part of 'RETIRED' don't you understand?
SSNTails's Avatar

Doesn't Lua have a mobj->SetTarget() function?
Roly Poly Putt & TraceRace - for Android, iOS, & PC -
Follow me on twitter:
SSNTails is offline   Reply With Quote
Old 09-20-2016   #4
Oh, THAT Youtuber...
SSG3's Avatar

Lua can set an object's target directly by modifying (mobj.tracer works in the same manner, too)
<Lat'> people thought moonjump and chaos control were OP
<Lat'> screw jump is the new meta
SSG3 is offline   Reply With Quote
Old 09-21-2016   #5
Prime 2.0
Grape flavored
Prime 2.0's Avatar

And of course, it has access to the SOC action as well.
Science tells us that nothing can be proven, only rendered more likely to be true. If we do not question what we already know, how can we know, much less admit, when we're wrong? Such things are vital to progress.
Prime 2.0 is offline   Reply With Quote
Old 10-04-2016   #6
Blaze The Cat
& Knuckles
Blaze The Cat's Avatar

Neat, this feels a lot like DooM, with enemies getting mad at one another for friendly fire.

If you wanted to recreate this, you can set up a ShouldDamage hook and a MobjCollide hook. MobjCollide to determine melee attacks (Like the Sharp) and ShouldDamage to control what gets hurt. Also, in DooM, enemies of the same object type can't hurt one another normally. You could put a target changer in ShouldDamage to tell the object to immediately target the offending object until that object is dead.

Just bringing up ideas you could do with this.
Blaze The Cat is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 09:34 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.