Recently I tried to spawn Mantas with a CreatureFactory (CF) in the air. After spawning the Mantas stay there for a moment but most of them fall down then into the lava and get burned. That's boring. Oh, yes, of course I have set bFalling=False in the CF. The same happens with files but not with Gas Bags. I've tried several values for Pawns Order (eg "Roaming" instead of "Attacking"), had a look at the Gas Bags code to see why they are not falling but without success.
So long story short: How can I prevent the poor Mantas of falling down and getting burned?
Falling Mantas and Flies
-
- Godlike
- Posts: 2925
- Joined: Fri Sep 25, 2015 9:01 pm
- Location: moved without proper hashing
-
- Inhuman
- Posts: 958
- Joined: Wed Mar 31, 2010 9:02 pm
- Personal rank: I am quite rank.
- Location: MrLoathsome fell out of the world!
Re: Falling Mantas and Flies
Have you tried setting Physics = PHYS_None?
They might hang there until something happens, at which point SetMovementPhysics should get called, maybe.
If I got the order of things right....
Keep in mind I don't know nothing about no maps.
They might hang there until something happens, at which point SetMovementPhysics should get called, maybe.
If I got the order of things right....
Keep in mind I don't know nothing about no maps.
blarg
-
- Godlike
- Posts: 2925
- Joined: Fri Sep 25, 2015 9:01 pm
- Location: moved without proper hashing
Re: Falling Mantas and Flies
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);
}
"If Origin not in center it be not in center." --Buggie
-
- Godlike
- Posts: 2201
- Joined: Sun Oct 05, 2008 3:31 am
Re: Falling Mantas and Flies
Try the thing factory, not creature, might work.
Nope, don't work, same thing. they fall.
Nope, don't work, same thing. they fall.
Binary Space Partitioning
-
- Godlike
- Posts: 10214
- Joined: Thu Jun 30, 2011 8:12 pm
- Personal rank: God of Fudge
- Location: Palo Alto, CA
Re: Falling Mantas and Flies
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.
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/
· https://unrealarchive.org/authors/evilgrins.html
· https://www.facebook.com/groups/UTcorps
· https://unrealarchive.org/authors/evilgrins.html
· https://www.facebook.com/groups/UTcorps
Smilies · https://ut99.org/viewtopic.php?f=8&t=13758medor wrote:Replace Skaarj with EvilGrins
-
- Godlike
- Posts: 2925
- Joined: Fri Sep 25, 2015 9:01 pm
- Location: moved without proper hashing
Re: Falling Mantas and Flies
Thanks, but in this map the ground is covered by lava, so that is not an option.
"If Origin not in center it be not in center." --Buggie
-
- Godlike
- Posts: 6438
- Joined: Sun May 09, 2010 6:15 pm
- Location: On the roof.
Re: Falling Mantas and Flies
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.
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.
BAD MOVE. Better read old tutorials.Red_Fist wrote:Try the thing factory, not creature, might work.
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.
-
- Godlike
- Posts: 2925
- Joined: Fri Sep 25, 2015 9:01 pm
- Location: moved without proper hashing
Re: Falling Mantas and Flies
But works fine with Gas Bags.sektor2111 wrote:Spawning Mantas and monsters generally over death zones is pointless leading to 0 battle
"If Origin not in center it be not in center." --Buggie
-
- Godlike
- Posts: 6438
- Joined: Sun May 09, 2010 6:15 pm
- Location: On the roof.
Re: Falling Mantas and Flies
I'm sorry I have a different prototype as replacement and that indeed works too - flawless as I could see including in RangedAttack...Barbie wrote:But works fine with Gas Bags.
-
- Godlike
- Posts: 10214
- Joined: Thu Jun 30, 2011 8:12 pm
- Personal rank: God of Fudge
- Location: Palo Alto, CA
Re: Falling Mantas and Flies
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.
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.
....then where do the players stand?Barbie wrote:Thanks, but in this map the ground is covered by lava, so that is not an option.
· http://unreal-games.livejournal.com/
· https://unrealarchive.org/authors/evilgrins.html
· https://www.facebook.com/groups/UTcorps
· https://unrealarchive.org/authors/evilgrins.html
· https://www.facebook.com/groups/UTcorps
Smilies · https://ut99.org/viewtopic.php?f=8&t=13758medor wrote:Replace Skaarj with EvilGrins
-
- Godlike
- Posts: 2925
- Joined: Fri Sep 25, 2015 9:01 pm
- Location: moved without proper hashing
Re: Falling Mantas and Flies
As often a picture can say more than 1000 words.....then where do the players stand?
You do not have the required permissions to view the files attached to this post.
"If Origin not in center it be not in center." --Buggie