Jump to content

Looking for a way to make npcs self-protective (however that sounds)


Recommended Posts

Hi.

I've got this problem and can't seem to find a way around it. I'm trying to build a sort of roleplaying-friendly enviroment on my server for couple of friends. To make a kind of Star Wars LARP (live-action role play) in the virtual enviroment, since everyone is at home because of quarantine.

I use Lugormod, and just wanted to place a few npcs in a few places. Like a bartender and couple of guys in cantina - it's simple, got no problem with that. I know how to edit npc files, I know how to use commands. But I'm not much of a modder or programer.

The problem is with the the npcs themselves and their four possible team settings. When they're set to "Playerteam Player", they don't attack the players even if they are attacked by them. Or even if one of the other npcs from the same team is killed, the others don't attack the players (I think they do in the single player, if you kill a Jedi others starts to attack you if i remember it correctly. But they don't do it in multiplayer). I know, it might not be typical problem that people have but it's really important to me to have a bunch of Rodians in my cantina that fight back if they are attacked. Otherwise it's won't be a roleplay cantina, it will just be a box full of dummies that anyone can do anything to.

Non of the other npc team settings works. "Playerteam Enemy" makes the rodians attack everyone, "playerteam neutral" makes them run away from players, "playerteam free" makes them attack everyone and everything.

I couldn't find the answer anywhere in the internet so I decided to ask here. Maybe some of you knows more things about this whole thing than I understand.

/// EDIT: Sorry if this isn't a right section for this kind of question but depending on the answer for my problem it could belong to different sections, because i don't know if it can be solved by a command or mod or well, anything at all.

Link to comment
4 hours ago, ezekiel said:

/// EDIT: Sorry if this isn't a right section for this kind of question but depending on the answer for my problem it could belong to different sections, because i don't know if it can be solved by a command or mod or well, anything at all.

I hear you, however of all the options on this forum, you picked one of a handful that has nothing to do with the Jedi Knight games. ? No worries, I moved it.

It sounds like what you want is probably custom scripts or even a custom map or something like that. I know nothing about Lugormod, but I'm not sure it's really equipped to handle something like what you want. You probably want to look into something built for RP purposes like RPmod or Zyk Mod:

 

 

Link to comment

Again, sorry. And thanks for changing the section!

Thanks for the suggestions, I checked Zyk OpenJK and OpenRP Mod but unfortunately they don't suit my idea, although I must admit I didn't know them before!

The thing is, Lugormod is perfect for what I'm planning and I've got everything else prepared there. But the npcs and their irrational team scripting are literally the only thing keeping me from achieving what I had in mind.

Link to comment

Waiting for the solution, just do d_npcfreeze 1, and when somebody attacks a rodian in the bar, type d_npcfreeze 0 and they will attack.

 

Not a real solution but... the most I can tell without getting to the source code...

Droidy365 likes this
Link to comment

I'm thinking perhaps you can give every npc a script and somehow make it so upon death --> It will trigger an icarus script that will make all of those npcs hostile by changing their team.

But the issue here is that this hostility needs to be reset to normal after player death and I don't think thats possible, so its kinda RIP as they would attack anyone on sight, forever.

 

Also not sure if Icarus can be triggered through a target relay or if it even works to change teams using Icarus, but I think it should.

Anyway the second issue probably makes this a dealbreaker anyway. Sounds like you need someone to mod it rather and finding someone willing to do that is rare.

Link to comment
23 hours ago, RJA said:

Waiting for the solution, just do d_npcfreeze 1, and when somebody attacks a rodian in the bar, type d_npcfreeze 0 and they will attack.

In fact that would be close enough and something I could settle for. The problem is the command doesn't seem to work. I googled it and found out there are at least 3 versions of the command in the internet (with spaces in between words etc.) but non of them works. Have you used it? Maybe it's fake or SP only?

 

14 hours ago, Aldro Koon said:

I'm thinking perhaps you can give every npc a script and somehow make it so upon death --> It will trigger an icarus script that will make all of those npcs hostile by changing their team.

Do you know how to do that? Is it complicated?

Link to comment

You must have a "cheats enabled" server. To get it the easier way, you have to load a map, from the server, with the "devmapall #nameofthemap" command.

 

When you will spawn, you have to do the command by the server (with rcon).

the best is to make a bind.

 

First, you have to configure your rconpassword in the server .cfg file.

 

Ingame, you just have to type "rconpassword #thepasswordyoufixed", and then, try

 

"bind F2(for exemple) "rcon toggle d_npcfreeze""

 

This way, anytime you will press F2, the server will change the "d_npcfreeze" state from 0 to 1 and 1 to 0 etc...

Link to comment
15 minutes ago, RJA said:

You must have a "cheats enabled" server.

Ok, that was the reason indeed. When you're an admin in Lugormod you can use all commands and cheats even when they are disabled on the server, or so I thought. As it turns out - only some of them. Enabling cheats really did the magic and the command works! It is not a dream solution but gives me at least some control over what happens in game. Thank you very much!

RJA and Aldro Koon like this
Link to comment

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...