Jump to content

How to replace weapons in jk2???


Recommended Posts

Posted

Hey I was wondering how you would go about replacing a weapon in single player?

 

For example I am working on a mod where Mace Windu is Lando

 

I want him to wield a lightsaber instead of a blaster 

 

and if possible I would want to give him force powers. 

 

how could you do this?

 

 

Posted

I don't actually think it's possible, as the NPC's are Hard Coded to use specific weapons, the NPC.cfg is completely different to the .npc files used in Jedi Academy.

 

Outcast NPC's:

Tavion
{
playerModel tavion
rank commander
saberColor red
reactions 3
aim 3
move 5
aggression 3
evasion 4
intelligence 5
hfov 160
vfov 160
playerTeam enemy
enemyTeam player
// race human
class tavion
snd tavion
sndcombat tavion
sndjedi tavion
yawSpeed 120
walkSpeed 55
runSpeed 200
health 300
dismemberProbHead 10
dismemberProbArms 35
dismemberProbLegs 10
dismemberProbHands 50
dismemberProbWaist 10
}
 
Lando
{
fullName "Calrissian, Lando"
playerModel lando
snd lando
reactions 3
aim 1
move 3
aggression 3
evasion 1
intelligence 5
rank crewman
playerTeam player
enemyTeam enemy
// race human
class lando
snd lando
sndcombat lando
sndextra lando
sndjedi lando
walkSpeed 55
runSpeed 200
yawspeed 120
dismemberProbHead 0
dismemberProbArms 0
dismemberProbHands 0
dismemberProbLegs 0
dismemberProbWaist 0
}

Unlike Academy, there is no weapon field as you can see above, where as Academy had a more flexible system for NPC's in terms of abilities and so on, even if you COULD give Lando a Saber, you couldn't really give him Force Powers as not even the Force Users have them listed.

 

Academy NPC's:

Lando
{
playerModel lando
weapon WP_BLASTER
rank captain
altFire 1
health 2000
snd lando
reactions 3
aim 3
move 3
aggression 3
evasion 3
intelligence 5
rank crewman
playerTeam TEAM_PLAYER
enemyTeam TEAM_ENEMY
// race human
class CLASS_LANDO
snd lando
sndcombat lando
sndextra lando
sndjedi lando
walkSpeed 120
runSpeed 200
yawspeed 120
dismemberProbHead 0
dismemberProbArms 0
dismemberProbHands 0
dismemberProbLegs 0
dismemberProbWaist 0
}
Tavion
{
playerModel tavion
rank commander
saber tavion
saberColor red
weapon WP_SABER
saberStyle 5
FP_HEAL 0
FP_LEVITATION 3
FP_SPEED 3
FP_PUSH 3
FP_PULL 2
FP_TELEPATHY 0
FP_GRIP 2
FP_LIGHTNING 2
FP_RAGE 2
FP_PROTECT 0
FP_ABSORB 0
FP_DRAIN 1
FP_SEE 1
FP_SABERTHROW 3
FP_SABER_DEFENSE 3
FP_SABER_OFFENSE 3
reactions 3
aim 3
move 5
aggression 3
evasion 4
intelligence 5
hfov 160
vfov 160
playerTeam TEAM_ENEMY
enemyTeam TEAM_PLAYER
// race human
class CLASS_TAVION
sex female
snd tavion
sndcombat tavion
sndjedi tavion
yawSpeed 120
walkSpeed 55
runSpeed 200
health 300
dismemberProbHead 0
dismemberProbArms 0
dismemberProbLegs 0
dismemberProbHands 0
dismemberProbWaist 0
}

MB2 Beta Tester / MB2 FA Assistant Dev

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...