Page 1 of 1

Nali tools

Posted: Thu Oct 12, 2017 7:17 am
by EvilGrins
Lil' edit, really old CTF map, never messed around with Nali configuration before.

There's an option for "tools" but it won't let me give it a weapon.

What's an acceptable tool I can give it?

Re: Nali tools

Posted: Thu Oct 12, 2017 2:40 pm
by sektor2111
You can give it a hammer, a fork, a spoon, anything like a Weapon which you want - it's just useless.
This class is unfinished as that bActorShadows (not Pawn.Shadow) and that LensFlare and the rest of unfinished things.
But I can try to arm this pawn in some Level, I wanna see what will do, probably nothing just chickening out.

Re: Nali tools

Posted: Thu Oct 12, 2017 6:31 pm
by EvilGrins
sektor2111 wrote:But I can try to arm this pawn in some Level, I wanna see what will do, probably nothing just chickening out.
That's okay. There's a combat version of the Nali I have, though never tested.

I was just curious what this option might mean.

Whenever I tried to give it a weapon, it opened up a section of pawn properties I'd never seen before. May poke around in there some more.

Re: Nali tools

Posted: Fri Oct 13, 2017 6:53 pm
by Red_Fist
I think it is to create an event as the Nali picks up or is told to use, then in SP maps it's looks like they are doing something for the storyline.

Is my theory.

Don't know if it works, only messed with it once before. I don't think it works like Sektor says, it wasn't finished or something.

Re: Nali tools

Posted: Sat Oct 14, 2017 3:39 am
by Barbie
I played around with that but couldn't get it working...

Because that "tool" is defined as class Weapon:

Code: Select all

var() Weapon Tool;
I tried spawning a weapon and giving it to the Nali:
Spoiler
Show

Code: Select all

class MyActor expands Actor;

Var() Name MyNaliTag;
Var Nali MyNali;

event PostbeginPlay() {
	foreach AllActors(Class'Nali', MyNali, MyNaliTag)
		break;
	if (MyNali != None)
		Disable('Trigger');
}

event Trigger(Actor Other, Pawn EventInstigator) {
local Weapon W;
	
	W = spawn(class'ShockRifle');
	if (W != None)
	{
		//W.GiveTo(MyNali);
		MyNali.Tool = W;
		MyNali.Weapon = W;
		BroadcastMessage(MyNali $ ".Tool=" $ MyNali.Tool $ ", Weapon=" $ MyNali.Weapon);
	}
}
but that did not work (the weapon just moves with the Nali):
NaliWithWeapon.jpg
While looking at the Nali's stock code I found such:

Code: Select all

function TweenToWalking(float tweentime)
{
	if (Region.Zone.bWaterZone)
		TweenToSwimming(tweentime);
	else if (AnimSequence == 'Bowing')
		PlayAnim('GetUp', 0.4, 0.15);
	else if ( Weapon != None )
		TweenAnim('WalkTool', tweentime);
	else
		TweenAnim('Walk', tweentime);
}
The mesh of a Nali has the animation 'WalkTool' (having that tool on the shoulder and keeping it with one hand, see above pic), but it is played if the WEAPON is set, not the TOOL. Maybe the Epic coders messed that up...

Re: Nali tools

Posted: Sat Oct 14, 2017 6:00 am
by sektor2111
Not maybe, they have done nothing to arm this pawn - actually the code for loading weapon doesn't even exist - animation is used by any of those NaliPlayer types using that mesh... and probably Pawn.Weapon is also conflicting with Nali.tool(weapon as well) like that AttachTag crapped thing and/or the duplicated TriggerLight + the rest of trash.

Re: Nali tools

Posted: Sun Oct 15, 2017 9:02 am
by UTNerd24
Not sure if i've gotten the right end of this conversation, but if its a Nali with weapons you're looking for, there's a ScriptedPawn class in Nali Chronicles that is capable of holding weapons, does not shut you out from friendly fire and is more than capable of killing small enemy groups.

Alternatively there is a special class of Nali in Return to NaPali: Ultimate Edition that can conjure spells such as fireballs and orbs of light.

Re: Nali tools

Posted: Sun Oct 15, 2017 9:53 am
by sektor2111
EG was asking about Nali class from UT not other "adds" coming from community. Yeah, read again, for Nali mapped in a Level, by using that "tool" nothing like a magic will happen, no worries.

Re: Nali tools

Posted: Mon Oct 16, 2017 3:13 pm
by makemeunreal
Here's a Nali usin' a pickaxe. :P
Image

And another doin' the same.
Image

Teamwork.
Image

Krasnaya armiya
Image

Re: Nali tools

Posted: Mon Oct 16, 2017 4:38 pm
by sektor2111
Pointless, that's not a Nali from UT because those images are not from UT. except confusing noobs I don't see what's the deal. My daughter has a toy looking as a smartphone but is not a smartphone :tongue: .

Re: Nali tools

Posted: Mon Oct 16, 2017 4:52 pm
by makemeunreal
True.
Just wanted to show him an example of a Nali usin' a tool. :P