For direct access use https://forums.oldunreal.com
It's been quite a while since oldunreal had an overhaul, but we are moving to another server which require some updates and changes. The biggest change is the migration of our old reliable YaBB forum to phpBB. This system expects you to login with your username and old password known from YaBB.
If you experience any problems there is also the usual "password forgotten" function. Don't forget to clear your browser cache!
If you have any further concerns feel free to contact me: Smirftsch@oldunreal.com

A little new to editing, wanting to know how to make Na Pali wildlife attack anything

Ask UnrealEd 1 mapping related questions, or give hints, tips and tricks
User avatar
Mrsir4
Posts: 2
Joined: Mon May 12, 2014 1:47 am

A little new to editing, wanting to know how to make Na Pali wildlife attack anything

Post by Mrsir4 »

So I am not sure where to post this, but I am wanting some advice. I am a little new to using UnrealED and am working on a single player project. One of the things I am wanting to do is give players the ability to use the Na Pali wildlife to their advantage (i.e. luring a brute into a tentacle infested cave where they can light him up, or tricking a skaarj enemy into getting torn up in a pool of slith, etc.)

So basically what I am wanting to do is to get these pawns to attack not only the player, but other enemies when they spot them. Not just tentacles and slith but any enemy that is considered wildlife on Na Pali (yes, including titans)....I tried changing their attitude toward the player in their settings in UnrealED, but there was not much difference. Any suggestions? I have made a couple of levels of my own; but again, compared to everyone else in the community I am a total noob when it comes to editing. So I apologize if I am asking stupid questions. But thanks in advance for your help!
Last edited by Mrsir4 on Mon May 12, 2014 3:18 am, edited 1 time in total.
User avatar
[]KAOS[]Casey
OldUnreal Member
Posts: 4497
Joined: Sun Aug 07, 2011 4:22 am
Location: over there

Re: A little new to editing, wanting to know how to make Na Pali wildlife attack anything

Post by []KAOS[]Casey »

It's possible, but you're going to need to edit some AI or make a hack class.

Most things will attack eachother if they take damage by default, sometimes not. But they will not actively acquire eachother as enemies. This is because there is no code to actively try to get them to set enemy to eachother.

Playerpawns are actively checked every frame by some conditions, like distance & visibility etc.

Assuming the pawn can "see" the player, this function happens:

Code: Select all

function SeePlayer(Actor SeenPlayer)
{
      //log(class$" has line of sight to player");
      if (SetEnemy(Pawn(SeenPlayer)))
            LastSeenPos = Enemy.Location;
}
You can simulate this either on a small or wide area depending on how you want it to work.

I can make an easy but dirty hack that attempts to set enemy on everything, which will probably not end well, or for a specific Zone and versus only a few types, which you'd have to edit in your map of course.

For instance, you could put an actor in a specific zone, edit a few properties to make "tentacle" hate "brute" actively, instead of reactively. Or I could make it work globally so no matter where they are they'll acquire enemies, on either all or specific types.

Provide some more detail and I can help you out.
User avatar
SFJake
OldUnreal Member
Posts: 252
Joined: Sun Aug 15, 2010 4:31 pm

Re: A little new to editing, wanting to know how to make Na Pali wildlife attack anything

Post by SFJake »

Its easier than that, now, thanks to new features with the new versions.

Assuming you downloaded the latest 227 versions...

Under AI, there is an option called SightCheckType, normally at SEE_PlayersOnly.

If set to SEE_All, it will check everything in sight at all time.

All that is left to do is create a sub class of a pawn to edit its expected attitude toward a monster.

If you created a sub class of Mercenary, and want him to attack SkaarjWarrior on sights... then you create a sub class of Mercenary, go in the Mercenary code and find the eAttitude segment.

Code: Select all

function eAttitude AttitudeToCreature(Pawn Other)
{
      if ( Other.IsA('Mercenary') )
            return ATTITUDE_Friendly;
      else
            return ATTITUDE_Ignore;
}
We want it to hate all Skaarj when checked, so COPY/PASTE it to the new sub-class, and change it to:

Code: Select all

function eAttitude AttitudeToCreature(Pawn Other)
{
      if ( Other.IsA('Mercenary') )
            return ATTITUDE_Friendly;
      else if ( Other.IsA('Skaarj') )
            return ATTITUDE_Hate;
      else
            return ATTITUDE_Ignore;
}
You might want to edit the sub-class's default properties to SEE_All, to make it easier on you.

And thats it. Note that this feature can make mapping difficult, if you don't want fights to constantly break out without the player having done anything.

There are other ways to do this, but this is the simple and clean way.
Last edited by SFJake on Mon May 12, 2014 1:45 pm, edited 1 time in total.
SFJake Center -
Unreal Nightmare - http://sfjake.byethost7.com/unrealnmproject.html
User avatar
[]KAOS[]Casey
OldUnreal Member
Posts: 4497
Joined: Sun Aug 07, 2011 4:22 am
Location: over there

Re: A little new to editing, wanting to know how to make Na Pali wildlife attack anything

Post by []KAOS[]Casey »

This is the Unrealed 1 forum, not 2.1!

That is an option but it certainly won't work for all versions.
User avatar
SFJake
OldUnreal Member
Posts: 252
Joined: Sun Aug 15, 2010 4:31 pm

Re: A little new to editing, wanting to know how to make Na Pali wildlife attack anything

Post by SFJake »

Oh god, there are different sections?

I'm sorry, I've had a link for this part of the forum for years now, and I just assumed anything related to Unreal 1 went here, and thats where I posted everything.

My apologies if it doesn't apply, however I tend to have the mindset that anything Unreal 1 should be using the latest oldunreal patch anyway.
Last edited by SFJake on Tue May 13, 2014 5:15 am, edited 1 time in total.
SFJake Center -
Unreal Nightmare - http://sfjake.byethost7.com/unrealnmproject.html
User avatar
[]KAOS[]Casey
OldUnreal Member
Posts: 4497
Joined: Sun Aug 07, 2011 4:22 am
Location: over there

Re: A little new to editing, wanting to know how to make Na Pali wildlife attack anything

Post by []KAOS[]Casey »

Haha, it's not really a problem. there's actually three unrealed forums. 1.0, 2.0 and 2.1. It does not hurt to mention methods, particularly that one which I thought to mention but I wanted to figure out what he wanted first. He also did not note what version or what have you he was planning to mod on
User avatar
.:..:
OldUnreal Member
Posts: 1637
Joined: Tue Aug 16, 2005 4:35 am

Re: A little new to editing, wanting to know how to make Na Pali wildlife attack anything

Post by .:..: »

Alternatively use Trigger, proximity type to Class and Class to trigger to 'Skaarj' or 'Brute', then make that trigger all tentacles or sliths in the cave to force them attack that target.
1823223D2A33224B0 wrote:...and now im stuck trying to fix everything you broke for the next 227 release xD :P
(ಠ_ಠ)
User avatar
Mrsir4
Posts: 2
Joined: Mon May 12, 2014 1:47 am

Re: A little new to editing, wanting to know how to make Na Pali wildlife attack anything

Post by Mrsir4 »

Sorry for replying late. I am in college right now and the computer I am using for this project is at my home away from the university. But I am using UnrealEd 2.0....Sorry for posting on the wrong forum, I should have checked which version UnrealEd I have before posting the question -_-

But basically what I am wanting to do is get a pawn (or pawns) to attack anything, not just the player.

Thanks for the advice you guys have given me so far! :)

Return to “UnrealEd, the editor for Unreal up to version  226”