|
|
 |
04-12-2005, 09:20 AM
|
#1
|
|
JOM Director
Join Date: May 2002
Location: USA
Posts: 2,967
|
Having Problems with NPC with sabers
I am having problems of them spawning and not using the right color I want them to have. I have it to a certain color, but its random, how to fix this?
|
|
you may:
quote & reply,
|
04-12-2005, 10:38 AM
|
#2
|
|
Junior Member
Join Date: Mar 2004
Location: South Wales, UK
Posts: 445
|
Post your .npc file here and we'll have a look
|
|
you may:
quote & reply,
|
04-12-2005, 12:55 PM
|
#3
|
|
JOM Director
Join Date: May 2002
Location: USA
Posts: 2,967
|
ki
{
playerModel ki_adi
weapon WP_SABER
saber single_1
saberColor blue
saberStyle 2
FP_LEVITATION 3
FP_PULL 3
FP_PUSH 3
FP_SEE 3
FP_SPEED 3
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
FP_SABERTHROW 0
rank captain
aggression 5
aim 5
evasion 5
intelligence 5
move 5
reactions 5
playerTeam TEAM_PLAYER
enemyTeam TEAM_ENEMY
class CLASS_JEDI
health 5000
snd ki_adi
sndcombat ki_adi
sndextra ki_adi
sndjedi ki_adi
dismemberProbArms 100
dismemberProbHands 100
dismemberProbHead 100
dismemberProbLegs 100
dismemberProbWaist 100
}
ti
{
playerModel ShaakTiVM
sex female
scale 95
weapon WP_SABER
saber single_8
saberColor blue
saberStyle 2
FP_LEVITATION 3
FP_PULL 3
FP_PUSH 3
FP_SEE 3
FP_SPEED 3
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
FP_SABERTHROW 0
rank commander
aggression 5
aim 5
evasion 5
intelligence 5
move 5
reactions 5
playerTeam TEAM_PLAYER
enemyTeam TEAM_ENEMY
class CLASS_JEDI
health 5000
}
aayla
{
playerModel aayla
sex female
weapon WP_SABER
saber single_4
saberColor blue
saberStyle 2
FP_LEVITATION 3
FP_PULL 3
FP_PUSH 3
FP_SEE 3
FP_SPEED 3
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
FP_SABERTHROW 0
rank commander
aggression 4
aim 4
evasion 5
intelligence 4
move 4
reactions 4
playerTeam TEAM_PLAYER
enemyTeam TEAM_ENEMY
class CLASS_JEDI
health 5000
}
wolf
{
playerModel werewolf
weapon WP_SABER
saber single_7
saberColor green
saberStyle 2
FP_LEVITATION 3
FP_PULL 1
FP_PUSH 1
FP_SEE 2
FP_SPEED 1
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
FP_SABERTHROW 3
rank ltcomm
aggression 5
move 5
reactions 5
playerTeam TEAM_PLAYER
enemyTeam TEAM_ENEMY
class CLASS_JEDI
health 2500
}
cole
{
playerModel Coleman_Trebor_VM
weapon WP_SABER
saber single_8
saberColor green
saberStyle 2
FP_LEVITATION 3
FP_PULL 1
FP_PUSH 1
FP_SEE 1
FP_SPEED 2
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
FP_SABERTHROW 3
rank ltcomm
aggression 5
aim 5
evasion 4
intelligence 4
move 4
reactions 4
playerTeam TEAM_PLAYER
enemyTeam TEAM_ENEMY
class CLASS_JEDI
health 2500
snd Coleman_Trebor
sndcombat Coleman_Trebor
sndextra Coleman_Trebor
sndjedi Coleman_Trebor
}
jmalak
{
playerModel malek
weapon WP_SABER
saber single_2
saberColor yellow
saberStyle 2
FP_LEVITATION 2
FP_PULL 1
FP_PUSH 1
FP_SEE 2
FP_SPEED 1
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
FP_SABERTHROW 3
rank ltcomm
aggression 4
aim 4
evasion 4
intelligence 4
move 4
reactions 4
playerTeam TEAM_PLAYER
enemyTeam TEAM_ENEMY
class CLASS_JEDI
health 2500
snd malek
sndcombat malek
sndextra malek
sndjedi malek
}
grev
{
playerModel general_grievous
scale 110
weapon WP_SABER
saber single_9
saberColor blue
saber2 Kyle
saber2Color green
saberStyle 6
FP_LEVITATION 3
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
FP_SABERTHROW 3
rank captain
aggression 5
aim 5
evasion 5
intelligence 5
move 5
reactions 5
playerTeam TEAM_ENEMY
enemyTeam TEAM_ENEMY
class CLASS_DESANN
health 7500
snd grievous
sndcombat grievous
sndextra grievous
sndjedi grievous
}
|
|
you may:
quote & reply,
|
04-12-2005, 04:25 PM
|
#4
|
|
Junior Member
Join Date: Mar 2004
Location: South Wales, UK
Posts: 445
|
Is Grevious's random or does his come out red?
They're all CLASS_JEDI, so that would probably explain why they are random. Try CLASS_KYLE for blue saber and CLASS_LUKE for green saber.
You may want to try specifying numbers instead of typing the actual colour in (1=red for example). I'll check it out myself when I get home tonight as i've got a couple of npcs that need sorting out as well.
|
|
you may:
quote & reply,
|
04-12-2005, 04:52 PM
|
#5
|
|
JOM Director
Join Date: May 2002
Location: USA
Posts: 2,967
|
Grevious is random too....
|
|
you may:
quote & reply,
|
04-12-2005, 05:21 PM
|
#6
|
|
Junior Member
Join Date: Mar 2004
Location: South Wales, UK
Posts: 445
|
Just had a go myself and it seems to work okay for me:
jedi_red
{
playerModel jedi
saber single_2
saberColor red
weapon WP_SABER
saberStyle 1
saberStyle 3
saberStyle 2
FP_HEAL 1
FP_LEVITATION 2
FP_SPEED 2
FP_PUSH 2
FP_PULL 1
FP_TELEPATHY 1
FP_GRIP 0
FP_LIGHTNING 0
FP_RAGE 0
FP_PROTECT 1
FP_ABSORB 1
FP_DRAIN 0
FP_SEE 1
FP_SABERTHROW 2
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
forceRegenRate 150
forcePowerMax 90
rank lt
reactions 3
aim 3
move 3
aggression 3
evasion 2
intelligence 3
playerTeam TEAM_PLAYER
enemyTeam TEAM_ENEMY
class CLASS_JEDI
yawSpeed 140
walkSpeed 55
runSpeed 200
snd jedi1
sndcombat jedi1
sndjedi jedi1
health 200
dismemberProbHead 0
dismemberProbArms 5
dismemberProbLegs 0
dismemberProbHands 10
dismemberProbWaist 0
}
In game console, npc spawn jedi_red
Works okay. Have you tried putting them into separate npc files? I'm not overly sure why that would get it working, but it's worth a go

|
|
you may:
quote & reply,
|
04-12-2005, 06:53 PM
|
#7
|
|
JOM Director
Join Date: May 2002
Location: USA
Posts: 2,967
|
Just tried that, and still the same outcome. 
|
|
you may:
quote & reply,
|
04-12-2005, 10:47 PM
|
#8
|
Join Date: Apr 2002
Posts: 1,187
|
See where it says saber single_8? Go to the .saber files and make sure the saber you want is set to the color you want for whichever saber you want your npc to use.
|
|
you may:
quote & reply,
|
04-13-2005, 08:59 AM
|
#9
|
|
JOM Director
Join Date: May 2002
Location: USA
Posts: 2,967
|
Yep tinny your right...the saber color for most of the sabers are random.
|
|
you may:
quote & reply,
|
04-13-2005, 02:00 PM
|
#10
|
|
Junior Member
Join Date: Mar 2004
Location: South Wales, UK
Posts: 445
|
I think i'll stick to mapping in the future 
|
|
you may:
quote & reply,
|
04-13-2005, 02:12 PM
|
#11
|
|
JOM Director
Join Date: May 2002
Location: USA
Posts: 2,967
|
You got any maps out codja X?
|
|
you may:
quote & reply,
|
04-13-2005, 06:11 PM
|
#13
|
|
JOM Director
Join Date: May 2002
Location: USA
Posts: 2,967
|
 WOW thats nice!
|
|
you may:
quote & reply,
|
04-17-2005, 03:31 PM
|
#14
|
|
Impressive, Terran!
Join Date: May 2002
Posts: 9,153
|
Is there any reason why you're not working with the Clone Wars mod?
---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder

|
|
you may:
quote & reply,
|
04-18-2005, 12:32 PM
|
#15
|
|
Junior Member
Join Date: Mar 2004
Location: South Wales, UK
Posts: 445
|
Quote:
Originally posted by razorace
Is there any reason why you're not working with the Clone Wars mod?
|
2 reasons:
1) time, and
2) my very recently fried motherboard 
3) My job involves targets and deadlines, so when it comes to mapping (which is a hobby), I like to work at my own pace and not have other people relying on me and vice versa etc
The lack of time is probably my biggest enemy though. Maybe I should simply stop sleeping 
|
|
you may:
quote & reply,
|
04-18-2005, 01:16 PM
|
#16
|
|
Impressive, Terran!
Join Date: May 2002
Posts: 9,153
|
Ah, well, we're not exactly picky about deadlines. 
---Jedi Guardian of the Newbie Questions
---Masters of the Force Team Leader / Creator
---Open Jedi Project Lead Moderator / Co-Founder

|
|
you may:
quote & reply,
|
04-18-2005, 06:21 PM
|
#17
|
|
Rookie
Join Date: Jun 2004
Location: Dallas, TX
Posts: 25
|
SaberColor is a number, not a word. You can use NPC Tool for coding them more easily.
|
|
you may:
quote & reply,
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Forum Jump
|
|
|
|
|
|