SP lightsaber -1 reply

  • 1
  • 2

Please wait...

Dark Janus

a.k.a. SkullMaster

50 XP

26th January 2003

0 Uploads

308 Posts

0 Threads

#11 18 years ago

so i have to make new ncps.cfg? will it works? i wonder i can find tutorials like you said, yellow. you r great help! some said that i need to copy ncps.cfg and put it in base is it right?




Yellow

People say I post too much

50 XP

14th January 2003

0 Uploads

1,287 Posts

0 Threads

#12 18 years ago

ha i new i saved it somewhere on my comp. let me know if this inspires u

Creating New NPCs Without Replacing Old Ones Tutorial by Emon This tutorial will guide you through the steps of creating a new NPC for Jedi Outcast (singleplayer) without replacing the old ones, and how to get it into your level. Please note that this tutorial assumes you have a basic understanding of Radiant and the workings of JO and JO editing.

Before we get started, here is the list of tools and files which you will need to complete this tutorial. A program which can easily view ZIP/PK3 files, such as WinZip, I recommend PakScape .1 GTKRadiant or JK2Radiant, whichever you prefer. An updated SP_entities.def file provided by Raven's Mike Gummelt (thanks!). You can grab it here. A text editor such as WordPad.

For this tutorial, we are going to make a new NPC using the Stormtrooper that will act like a Reborn, and wield a lightsaber as well. You may use your own models for new NPCs if you'd like. Let's get started...

The first thing we want to do is set up our mod folder and our new entities. First, go into your GameData folder and create a new folder for your mod. Let's call it New NPCs. This is how it will appear in the mod menu of JO.

Next you want to extract the SP_entities.def from SP_entities.zip and replace the old one. If you are using JK2Radiant, the file you want to replace is GameData\Tools\SP_entities.def. If you are using GTKRadiant, the file you want to replace is GameData\Base\Scripts\SP_entities.def. If you have GTKRadiant installed, I recommend replacing both incase you ever need to use JK2Radiant.

We now have to extract the npcs.cfg file from assets0.pk3. Do so using either PakScape or WinZip. The file is located in the ext_data folder. extract it to your GameData\New NPCs\ext_data folder.

Open it up in Wordpad or any other text viewer and do a search for Reborn. Find the entry for the Reborn NPC, and copy it. Now make a new file called newnpcs.npc, and save it in your GameData\New NPCs\ext_data folder. The file should look like this:

Reborn { playerModel reborn saberColor red reactions 1 aim 1 move 1 aggression 1 evasion 1 intelligence 1 hfov 120 vfov 120 scale 94 playerTeam enemy enemyTeam player // race human class reborn snd reborn1 sndcombat reborn1 sndjedi reborn1 yawSpeed 60 walkSpeed 45 runSpeed 180 health 40 dismemberProbHead 0 dismemberProbArms 20 dismemberProbLegs 0 dismemberProbHands 30 dismemberProbWaist 0 }

Now we want to make some changes to this NPC entry. First thing to do is change the name of the npc to RebornStormtrooper, and do the same for the playerModel. This makes it so the Stormtrooper takes on all actions of the Reborn, such as Force and the lightsaber. It should now look like this:

RebornStormtrooper { playerModel RebornStormtrooper saberColor red reactions 1 aim 1 move 1 aggression 1 evasion 1 intelligence 1 hfov 120 vfov 120 scale 94 playerTeam enemy enemyTeam player // race human class reborn snd reborn1 sndcombat reborn1 sndjedi reborn1 yawSpeed 60 walkSpeed 45 runSpeed 180 health 40 dismemberProbHead 0 dismemberProbArms 20 dismemberProbLegs 0 dismemberProbHands 30 dismemberProbWaist 0 }

Now we need to rename the model folder for our NPC. Extract the Stormtrooper directory from Models\Players from assets0.pk3 and place it in your GameData\Base\Models folder. Now rename the folder to RebornStormtrooper.

At this point, the NPC would be spawnable from the console using the NPC Spawn RebornStormtrooper command. But we want to be able to put him into our level with Radiant so we can use scripts and such on him.

Alright, now boot up Radiant. First go ahead and make yourself a little box or something to test the NPC in (if you don't already have a real level). Then add the new entity called NPC_spawner. Then hit the N key to get to the entity window and create a new key called NPC_type with a value of RebornStormtrooper. Just do this by typing in the new key and value and hit enter. Close the entity window by pressing N.

Now all you have to do is compile your map, and your new NPC should be there, lightsaber in hand, readying to whallop you, or attempt to, anyways. If it doesn't work, go back and make sure you didn't miss anything, or start the tutorial over. If you still have problems, try posting on the forums at <www.massassi.net> and <www.jediknightii.net> for additional help. You can also e-mail me at [email]emon1337@yahoo.com[/email].

You can also replace the Reborn with any other NPC name, such as WeequayStormtrooper (giving him the bowcaster), etc. Just use the NPCName/YourNPC. E.g. JediWookiee or BartenderMan01, etc. If certain combinations do not work, try shortened versions of the NPCName, such as ST for Stormtrooper or IMP of the Imperial Officers.




Dark Janus

a.k.a. SkullMaster

50 XP

26th January 2003

0 Uploads

308 Posts

0 Threads

#13 18 years ago

hmmm... thanks yellow your great help... i wonder where i can get that "radiant" stuff that tutorial said... i will let you know if it works and are you sure that tutorial will help me to change everybody s lightsabers? again, i thank you for your help...




Yellow

People say I post too much

50 XP

14th January 2003

0 Uploads

1,287 Posts

0 Threads

#14 18 years ago

i dunno it sparked alot of npc ideas in my head but i dunno about u. i just thought that it might direct ur brain in the right direction. and u can get radiant like everywhere,but u dont need it to change sabers just to put ur new sp charecters in a map.




Dark Janus

a.k.a. SkullMaster

50 XP

26th January 2003

0 Uploads

308 Posts

0 Threads

#15 18 years ago

um ok thanks yellow i just downloaded pakscape and i ll tell y if that tutorial works and making everyone in SP have different lightsabers color not boring red and blue in entire game... y re great help i wouldnt go far w/out yr help!




  • 1
  • 2