Unknowing Posted March 23, 2014 Posted March 23, 2014 Hi I was wondering how I can make the class of boba fett die because I want a particular npc of mine to be able to shoot fire from their wrists and still die.
GamingPrince83 Posted March 23, 2014 Posted March 23, 2014 The Serenity Jedi Engine mod an Npc class called Class_Mando, it has a Jetpack and fights like Class_Bobafett but is killable. liosk likes this
Barricade24 Posted March 23, 2014 Posted March 23, 2014 Spawn a rancor Nope, I tried that once. Boba can even survive being eaten by a Rancor. I haven't tried the sand creatures though.
Omicron Posted March 24, 2014 Posted March 24, 2014 Nope, I tried that once. Boba can even survive being eaten by a Rancor. I haven't tried the sand creatures though.Huh, explains who he survived the sarlacc then if not even a rancor can eat him.
Asgarath83 Posted March 26, 2014 Posted March 26, 2014 contact @@Serenity937 about the engine strings. Otherwise... Yu can make like a CLASS_ROCKETROOPER and program NPC file like rocketrooper2officer.npc, but he cannot use rapid fire blaster, disrutptor and flametrhwoer together, only blaster or another weapon.the solution: in your map,. yu can make an angerscript that change weapon and behaviour of boba after a certain amount of second.. and looping Other soluction: kill boba with icarus script, in your map, when boba die, start the deathscript with "kill "Bobafett" parameter.You need to set in map for NPC boba entity the command NPC_targetname Bobafett and targetname Bobafett too.
Serenity937 Posted March 26, 2014 Posted March 26, 2014 The easy method,(but this may cause problems in the boba level on jka) in NPC_SPAWN.CPP search for this // Can't Kill Boba and you will find this else if ( ent->client->NPC_class == CLASS_BOBAFETT ) {//set some stuff, precache ent->client->ps.forcePowersKnown |= ( 1 << FP_LEVITATION ); ent->client->ps.forcePowerLevel[FP_LEVITATION] = FORCE_LEVEL_3; ent->client->ps.forcePower = 100; ent->NPC->scriptFlags |= (SCF_NAV_CAN_FLY|SCF_FLY_WITH_JET|SCF_NAV_CAN_JUMP); NPC->flags |= FL_UNDYING; // Can't Kill Boba } and change it to this else if ( ent->client->NPC_class == CLASS_BOBAFETT ) {//set some stuff, precache ent->client->ps.forcePowersKnown |= ( 1 << FP_LEVITATION ); ent->client->ps.forcePowerLevel[FP_LEVITATION] = FORCE_LEVEL_3; ent->client->ps.forcePower = 100; ent->NPC->scriptFlags |= (SCF_NAV_CAN_FLY|SCF_FLY_WITH_JET|SCF_NAV_CAN_JUMP); //NPC->flags |= FL_UNDYING; // Can't Kill Boba } basically remove the flag FL_UNDYING compile the code and boba is mortal mine looks like this else if ( ent->client->NPC_class == CLASS_BOBAFETT ) {//set some stuff, precache ent->client->ps.forcePowersKnown |= ( 1 << FP_LEVITATION ); ent->client->ps.forcePowerLevel[FP_LEVITATION] = FORCE_LEVEL_3; ent->client->ps.forcePower = 100; ent->NPC->scriptFlags |= (SCF_NAV_CAN_FLY|SCF_FLY_WITH_JET|SCF_NAV_CAN_JUMP); NPC->flags |= FL_UNDYING; // Can't Kill Boba } else if ( ent->client->NPC_class == CLASS_MANDO ) {//set some stuff, precache ent->client->ps.forcePowersKnown |= ( 1 << FP_LEVITATION ); ent->client->ps.forcePowerLevel[FP_LEVITATION] = FORCE_LEVEL_3; ent->client->ps.forcePower = 100; ent->NPC->scriptFlags |= (SCF_NAV_CAN_FLY|SCF_FLY_WITH_JET|SCF_NAV_CAN_JUMP); } with the new mando class but still keeping bobafett as intended,this allows me to add mando class in the game and he can die.Obviously adding a new class is a bit more complicated ,but non too difficult if your doing it for a mod liosk and Asgarath83 like this
Asgarath83 Posted March 27, 2014 Posted March 27, 2014 Nice explanation, @@Serenity937 !Yes, the problem can be in t3_bounty level: boba fett can be kill by jaden and so the end cutscene not run LOOOL.It's easy to fix: simply, use Icarus to edit the scripts of t3_bounty and add to Bobafett on that's level the command: SET_Undying: True as spawnscript. (so, need also an edit of the entity BSP file. O.o ) if boba get already the spawnscript on t3_bounty in all 3 entities (if i remember good, there are 3 NPC_bobafett entity into the level, yu need simply to edit the spawn script with Behaved @@Unknowing @@Serenity937 : i am not forget of you for code help, but at moment i am endign the efx of the elemental swords of my mod and Npc files configuration. after i pass to code.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now