-
Posts
4,654 -
Joined
-
Last visited
-
Days Won
57
Content Type
Profiles
Warranty Claims
Downloads
Forums
Store
Services
Downloads Plus Support
DOWNLOADS EXTRA
Everything posted by imthenewguy
-
- 223 comments
-
Hi I am playing around with this plugin. I managed to get the NPC spawning and moving around, but it's state is always set to Roaming. It does not attack me if I go near it or attack it. It's state seems to be stuck in Roaming. What might I be doing wrong? JObject GetNpcConfig(NpcConfig npcConfig) { HashSet<string> states = npcConfig.Stationary ? new HashSet<string> { "IdleState", "CombatStationaryState" } : new HashSet<string> { "RoamState", "ChaseState", "CombatState" }; JObject sensory = new JObject() { ["AttackRangeMultiplier"] = npcConfig.attackRangeMultiplier, ["SenseRange"] = npcConfig.senseRange, ["MemoryDuration"] = npcConfig.memoryDuration, ["CheckVisionCone"] = npcConfig.checkVisionCone, ["VisionCone"] = npcConfig.visionCone }; JObject config = new JObject() { ["Name"] = npcConfig.name, ["WearItems"] = new JArray { npcConfig.wearItems.Select(x => new JObject { ["ShortName"] = x.shortName, ["SkinID"] = x.skinID }) }, ["BeltItems"] = new JArray { npcConfig.beltItems.Select(x => new JObject { ["ShortName"] = x.shortName, ["Amount"] = x.amount, ["SkinID"] = x.skinID, ["Mods"] = new JArray { x.Mods.Select(y => y) }, ["Ammo"] = string.Empty }) }, ["Health"] = npcConfig.health, ["RoamRange"] = npcConfig.roamRange, ["ChaseRange"] = npcConfig.chaseRange, ["DamageScale"] = npcConfig.damageScale, ["AimConeScale"] = npcConfig.aimConeScale, ["DisableRadio"] = true, ["Stationary"] = false, ["CanUseWeaponMounted"] = true, ["CanRunAwayWater"] = Name != "Underwater Lab" && Name != "Train Tunnel", ["Speed"] = npcConfig.speed, ["Sensory"] = sensory, ["AreaMask"] = 1, ["AgentTypeID"] = -1372625422, ["HostileTargetsOnly"] = npcConfig.HostileTargetsOnly, ["States"] = new JArray { states }, }; return config; } [ChatCommand("spawnnpc")] void SpawnNPC(BasePlayer player) { ScientistNPC npc = NpcSpawn.Call("SpawnNpc", player.transform.position, GetNpcConfig(config.npc)) as ScientistNPC; if (npc == null) return; SpawnedNPCs.Add(npc); NpcSpawn.Call("SetHomePosition", npc, player.transform.position); }
-
Not sure; I don't own it. My plugin simply overrides the standard growth loop to accelerate it and ignore conditions like sunlight, temp, water and soil. It uses the native methods to handle the growth phases etc so all of the standard oxide hooks are called. Assuming autofarm uses those hooks, it should be compatible, but there is noway to tell without running them together.
-
-
- 1,531 comments
-
- 1
-
-
- #leveling
- #progression
- (and 19 more)
-
- 1,531 comments
-
- 1
-
-
- #leveling
- #progression
- (and 19 more)
-
- 1,531 comments
-
- #leveling
- #progression
- (and 19 more)
-
- 1,531 comments
-
- #leveling
- #progression
- (and 19 more)
-
- 1,531 comments
-
- 1
-
-
- #leveling
- #progression
- (and 19 more)
-
- 93 comments
-
- #recycler
- #monetization
- (and 5 more)
-
- 1,531 comments
-
- #leveling
- #progression
- (and 19 more)
-
Using Base Yield settings will multiply with the skills, where as skills will not multiply with other gather rate plugins. For example, you have a skill that gives you a 100% bonus to wood yield. If you used an external plugin to increase the base yield by 100%, and you hit a tree that would normally give you 25 wood before modifiers, you would only receive 75 wood. (25 x 2 + (25 x 2)). If you were using base yield settings, you would instead receive 100 wood, because the skill would multiply the already multiplied base yield (25 x 2 x 2)..
- 1,531 comments
-
- 1
-
-
- #leveling
- #progression
- (and 19 more)
-
- 11 comments
-
- 1
-
-
- #arena
- #underwater
-
(and 1 more)
Tagged with:
-
- 31 comments
-
- 1
-
-
- 199 comments
-
- #items
- #enhancement
-
(and 6 more)
Tagged with:
-
- 279 comments
-
- #enhanced
- #custom loot
-
(and 7 more)
Tagged with:
-
- 199 comments
-
- #items
- #enhancement
-
(and 6 more)
Tagged with:
-
- 199 comments
-
- #items
- #enhancement
-
(and 6 more)
Tagged with:
