Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsJedi Outcast and Jedi Academy Editing Forum → NPC_Spawner Usage
NPC_Spawner Usage
2005-09-04, 5:47 PM #1
Game: JA using: GTK Radiant 1.4
Goal: To make a bunch of (normally hostile) NPC's in the game who are neutral toward the player, and who will respond in defense only.
What I've done so far: I created a granciv NPC file - meaning Gran Civilian. Here is the file:

Granciv
{
playerModel gran
customSkin blue
customRGBA random1
weapon WP_MELEE
reactions 1
aim 1
move 3
aggression 1
evasion 1
intelligence 5
rank crewman
health 30
playerTeam TEAM_NEUTRAL
enemyTeam TEAM_FREE
class CLASS_GRAN
snd gran1
sndcombat gran1
sndextra gran1
yawspeed 90
walkSpeed 55
runSpeed 200
dismemberProbHead 0
dismemberProbArms 10
dismemberProbLegs 1
dismemberProbHands 20
dismemberProbWaist 0
}

Now, I can use NPC spawner in radiant to spawn the gran. But he is limping or jogging in place. Anyone know why? If not is there some kind of key I can use to specify a behavior, and if so how exactly is it typed in?
Any help appreciated thanks.

PS: I tried changing the class to CLASS_JAWA but the gran still jogs/limps/steps in place.
2005-09-04, 7:11 PM #2
I'm a whee bit confused.

What do you mean when you said, "NPC's in the game who are neutral toward the player, and who will respond in defense only." Do you mean you what the NPC as an ally? In the NPC file, you can only make him an enemy, neutral (like a droid) and an ally. More complex behavior is handled by scripting.

I'm not sure what you mean by "limping or jogging in place". Screenshot? I don't remember that behavior from NPCs. Prehaps he has no waypoints to follow. Still, like I said before, certain behaviors are performed by scripting commands.
SnailIracing:n(500tpostshpereline)pants
-----------------------------@%
2005-09-04, 8:27 PM #3
Neutral (like a droid) would be acceptable. I believe I have accomplished that but this particular Gran jogs in place, or rather, he is in a jogging pose but intermittanly takes a step and does not just stand there and look around like he should. When I shoot him he just grunts and keeps doing whatever it is he is doing.
That is really all I need him to do, but to defend himself would be nice too, for that I may have to just learn scripting, darn. Was hoping to do that AFTER I learned how to make a nice map heh.
Anyway, take a look:
PS- I also tried adding waypoints and point combats to no avail - its as if he's stuck by an invisible force.
Attachment: 7093/granlimp.jpg (16,850 bytes)
2005-09-04, 11:42 PM #4
I have actually also seen this behavior, but I didn't study the cause, because I needed the particular NPC only for cinematic purposes, and bs_cinematic wasn't affected like bs_default, which showed the symptom.

I used "playerTeam TEAM_NEUTRAL" and "enemyTeam TEAM_ENEMY" for this particular NPC, though. The class was "CLASS_SABOTEUR". Interesting enough, a "CLASS_JEDI" with the same team settings behaved perfectly normally in the same test map.

Well, long story short, I have no idea what caused it, and no idea how to solve it, because for that project I never needed to solve it. I can only suggest you continue to mess with the settings. Perhaps spawn him in cinematic mode, then turn into bs_default in a spawn script after a delay of one second, or something. Or set a single nav_goal for him in a spawn script. Or leave him in bs_cinematic, and set a Painscript to change the teams to hostile. A neutral NPC wouldn't anyway do much in bs_default, so it wouldn't that much. You could try bs_wander with some waypoints as well (along with the same painscript).
Frozen in the past by ICARUS
2005-09-05, 4:52 PM #5
Is there a such thing called a "TEAM_FREE"? I haven't edited NPC files recently so I don't remember.
SnailIracing:n(500tpostshpereline)pants
-----------------------------@%
2005-09-06, 4:41 AM #6
Yes, many of the NPC's have enemyTeam TEAM_FREE, things like jawas.

I have tried messing with the classes, it seems the classes are part of hard programming.

↑ Up to the top!