Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=326332456
Thanks for replying :)
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1138462799
Thank you,
cavecastscorch
[VJ Base] lua/autorun/vj_util.lua:105: attempt to get length of a nil value
1. VJ_GetWeaponPos - lua/autorun/vj_util.lua:105
2. v - lua/autorun/vj_entity_codes.lua:574
3. unknown - lua/includes/modules/hook.lua:84
4. FireBullets - [C]:-1
5. PrimaryAttack - lua/weapons/weapon_vj_base/shared.lua:436
6. unknown - lua/weapons/weapon_vj_base/shared.lua:353
*cries in joy*
The single allies variable caused so many problems, but I couldn't find a different way to do it
Basically, if a SNPC has the same class name as another SNPC, they will be allied to each other. This is also very important for SNPCs that call for backup because they call for SNPCs that have the same class name of them, not the ones in the ENT.VJ_FriendlyNPCsSingle variable.
Copy and paste this line of code into every SNPC in this addon:
ENT.VJ_NPC_Class = {"CLASS_EXAMPLE"} -- NPCs with the same class with be allied to each other
A good name for the class name would be "CLASS_CIS" or "CLASS_BATTLE_DROID" but you can name it anything you want as long as it has "CLASS_" in the beginning of the class name, it has quote marks in it and the name only uses capital letters.
But since these are both mine,
For those of you wondering about this console error:
[[VJ] B1 Battledroid SNPCs] lua/weapons/weapon_vj_droid_shotty/shared.lua:138: Tried to use a NULL entity!
1. LookupBone - [C]:-1
2. unknown - lua/weapons/weapon_vj_droid_shotty/shared.lua:138
That is a harmless console error due to the weapon models not being rigged properly, and relating to how I got around that. Basically the code I used looks up the right hand bone on the droid and attaches to that bone. When the droid dies, it breaks the code and throws the console error. If you don't like the errors, you can disable weapons dropping in the vj settings menu.