Falling Mantas and Flies

Tutorials and discussions about Mapping - Introduce your own ones!
User avatar
Barbie
Godlike
Posts: 2769
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Falling Mantas and Flies

Post by Barbie »

Yay! Your post motivated me to have another look at the code and - as often - after a sleep things look clearer. The code of Manta.uc sets PHYS_Falling in its TweenToWaiting(). The following does the trick:

Code: Select all

class SBManta extends Manta;
// a Manta that does not fall down when spawned in the air

function TweenToWaiting(float tweentime) {
	Super.TweenToWaiting(tweentime);
	SetPhysics(PHYS_Flying);
}
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
Red_Fist
Godlike
Posts: 2163
Joined: Sun Oct 05, 2008 3:31 am

Re: Falling Mantas and Flies

Post by Red_Fist »

Try the thing factory, not creature, might work.


Nope, don't work, same thing. they fall.
Binary Space Partitioning
User avatar
EvilGrins
Godlike
Posts: 9627
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA

Re: Falling Mantas and Flies

Post by EvilGrins »

Most places in Unreal & UT you first run into the mantas is on the ground, then they fly up high and attack.

Trust me on this, mantas spawned on the ground rapidly go high · http://tinyurl.com/jzh7dfc · if there's enough sky available to them.
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758
User avatar
Barbie
Godlike
Posts: 2769
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Falling Mantas and Flies

Post by Barbie »

Thanks, but in this map the ground is covered by lava, so that is not an option.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
User avatar
sektor2111
Godlike
Posts: 6396
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: Falling Mantas and Flies

Post by sektor2111 »

Completion > Spawning Mantas and monsters generally over death zones is pointless leading to 0 battle - this is goofing not mapping. I won't modify any 0 fixed monster for no reason - I could do this already. Monsters has more serious problems than this. Better fix their visibility through movers to not show their position in advance to be easily blown up behind doors because they were distracting player.
Red_Fist wrote:Try the thing factory, not creature, might work.
BAD MOVE. Better read old tutorials.
I was working a couple of hours for removing that spam mess which will be dropped by ThingFactory spawning creatures. I was thinking at replacement with Factories and transfer data but I have changed the deal.

Name is already enough self explanatory CREATUREFactory vs THINGFactory.
Last edited by sektor2111 on Sat Dec 26, 2015 9:26 pm, edited 2 times in total.
User avatar
Barbie
Godlike
Posts: 2769
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Falling Mantas and Flies

Post by Barbie »

sektor2111 wrote:Spawning Mantas and monsters generally over death zones is pointless leading to 0 battle
But works fine with Gas Bags.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett
User avatar
sektor2111
Godlike
Posts: 6396
Joined: Sun May 09, 2010 6:15 pm
Location: On the roof.

Re: Falling Mantas and Flies

Post by sektor2111 »

Barbie wrote:But works fine with Gas Bags.
I'm sorry I have a different prototype as replacement and that indeed works too - flawless as I could see including in RangedAttack...
User avatar
EvilGrins
Godlike
Posts: 9627
Joined: Thu Jun 30, 2011 8:12 pm
Personal rank: God of Fudge
Location: Palo Alto, CA

Re: Falling Mantas and Flies

Post by EvilGrins »

The reason the GasBags aren't plummeting to their deep fried death is they don't have the ability to land. With the exception of when they get killed, GasBags are constantly hovering; whereas both mantas and flies can land.

Thought: Put something, at an angle, just under where the mantas and flies spawn in; transparent ledge maybe. It might make them realize they have wings for a reason.
Barbie wrote:Thanks, but in this map the ground is covered by lava, so that is not an option.
....then where do the players stand?
http://unreal-games.livejournal.com/
Image
medor wrote:Replace Skaarj with EvilGrins :mrgreen:
Smilies · viewtopic.php?f=8&t=13758
User avatar
Barbie
Godlike
Posts: 2769
Joined: Fri Sep 25, 2015 9:01 pm
Location: moved without proper hashing

Re: Falling Mantas and Flies

Post by Barbie »

....then where do the players stand?
As often a picture can say more than 1000 words. :D
MH-Ziki+SBFix1-BossMonster.jpg
You do not have the required permissions to view the files attached to this post.
"Multiple exclamation marks," he went on, shaking his head, "are a sure sign of a diseased mind." --Terry Pratchett