[WIP] NPC Energy Units

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
Ngalo
Competent
Competent
Posts: 58
Joined: Mon Mar 02, 2015 2:08 pm
Location: drifting in remLock mask near Vezadi Station

[WIP] NPC Energy Units

Post by Ngalo » Thu May 26, 2016 1:53 pm

Having made N-Shields, I realised it's a bit unfair to give NPCs proper Military Shield Enhancers without any chance of an Extra or Naval Energy Unit.

Download this OXZ to fix that.

Energy units are allocated based on accuracy and equipment; you shouldn't see anyone with a Naval Energy Unit unless you also have Skilled NPCs OXP.

Note that exclusion of ships which already have 'simulated' EEUs or NEUs in their shipdata depends on a list in the script. Currently this list is:

Code: Select all

this._alreadyGotOne = {
			"cobramk1-alt": "EQ_NPC_ENERGY_UNIT",
			"jaguar_company_patrol": "EQ_NPC_NAVAL_ENERGY_UNIT",
			"jaguar_company_patrol_scuffed": "EQ_NPC_NAVAL_ENERGY_UNIT",
			"jaguar_company_ship_splinter": "EQ_NPC_NAVAL_ENERGY_UNIT"
			}
If you know of any other shipdata keys which need to be on this list, please post them here.
Equal Rights for NPCs!

Rustem
Deadly
Deadly
Posts: 167
Joined: Mon May 25, 2015 5:23 pm
Location: Russia

Re: [WIP] NPC Energy Units

Post by Rustem » Thu Feb 01, 2018 8:30 am

Hi!

1. This ships has single energy unit or simulated the Extra Energy Unit(EEU) or may be awarded NPC-EEU?:
contractor-pirate : 7
...
caduceus-alpha : 5.8
caduceus-omega : 5.8
...
kirin-hunter : 6.0
kirin-m-hunter : 6.0
kirin-xm-pirate : 6.0
kirin-cv : 5.5
...
rhs_big_boss_supercobra_spacelane_shipset : 7
rhs_big_boss_supercobra_spacelane_AP_shipset : 7
kirin-m-police : 6.0
...
viper-interceptor : 6
griff_viper_interceptor_alt : 6
The format of data: shipKey : energy_recharge_rate

2. This code working?:

Code: Select all

this.NPC_energy_equipmentDamaged = function(equipment) {...}
It is experimental OXP?: worldScripts.NPC_Equipment_Damage.

Post Reply