No it works, but it does way too much dmg. Way more than what the config says. I can't change the config.

Fire Arrows
Players can shoot arrows with fire
Total Downloads: 3,861 - First Release: Dec 28, 2015 - Last Update: Jan 13, 2018
- 5/5, 11 likes
-
Colon Blow updated Fire Arrows with a new update entry:
1.2.9
-
I get this error but it don't print to log. This is console:
I'm using the latest oxide 2.03827
76561197976613740/Snivel kicked: RPC Error in OnProjectileAttack
NullReferenceException: Object reference not set to an instance of an object <-----(console only)
This is log:
Also when using firearrows plugin in any mode, it kills the scientist, but when I hit, the firearrows bomb effect does not play.
Any kill with melee, guns, and bow without fire arrows plugin instantly kicks me.
05:48 [Info] [Death Notes] got blown up by [VerteX] Snivel's No Weapon. <------ (firearrow kill in firebomb mode)
05:48 [Error] Failed to call hook 'OnPlayerAttack' on plugin 'FireArrows v1.2.9' (NullReferenceException: Object reference not set to an instance of an object)
at Scientist.CreateCorpse () [0x00000] in <filename unknown>:0
at BasePlayer.OnKilled (.HitInfo info) [0x00000] in <filename unknown>:0
at NPCPlayerApex.OnKilled (.HitInfo info) [0x00000] in <filename unknown>:0
at BaseCombatEntity.Die (.HitInfo info) [0x00000] in <filename unknown>:0
at BasePlayer.Die (.HitInfo info) [0x00000] in <filename unknown>:0
at BaseCombatEntity.Hurt (.HitInfo info) [0x00000] in <filename unknown>:0
at BasePlayer.Hurt (.HitInfo info) [0x00000] in <filename unknown>:0
at NPCPlayerApex.Hurt (.HitInfo info) [0x00000] in <filename unknown>:0
at BaseCombatEntity.Hurt (Single amount, DamageType type, .BaseEntity attacker, Boolean useProtection) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.playerBlastDamage (.BasePlayer player, Single damageamount, DamageType damagetype, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.applyBlastDamage (.BasePlayer player, Single damageamount, DamageType damagetype, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.FireBombFX (.BasePlayer player, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.ArrowFX (.BasePlayer player, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.OnPlayerAttack (.BasePlayer player, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
05:48 [Info] [Advert Messages] Need help? Try calling for an admins in the chat.
05:49 [Info] [Death Notes] burned to death.
05:49 [Error] Failed to call hook 'OnPlayerAttack' on plugin 'FireArrows v1.2.9' (NullReferenceException: Object reference not set to an instance of an object)
at Scientist.CreateCorpse () [0x00000] in <filename unknown>:0
at BasePlayer.OnKilled (.HitInfo info) [0x00000] in <filename unknown>:0
at NPCPlayerApex.OnKilled (.HitInfo info) [0x00000] in <filename unknown>:0
at BaseCombatEntity.Die (.HitInfo info) [0x00000] in <filename unknown>:0
at BasePlayer.Die (.HitInfo info) [0x00000] in <filename unknown>:0
at BaseCombatEntity.Hurt (.HitInfo info) [0x00000] in <filename unknown>:0
at BasePlayer.Hurt (.HitInfo info) [0x00000] in <filename unknown>:0
at NPCPlayerApex.Hurt (.HitInfo info) [0x00000] in <filename unknown>:0
at BaseCombatEntity.Hurt (Single amount, DamageType type, .BaseEntity attacker, Boolean useProtection) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.playerBlastDamage (.BasePlayer player, Single damageamount, DamageType damagetype, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.applyBlastDamage (.BasePlayer player, Single damageamount, DamageType damagetype, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.FireBallFX (.BasePlayer player, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.ArrowFX (.BasePlayer player, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.OnPlayerAttack (.BasePlayer player, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
05:52 [Info] [Death Notes] burned to death.
05:52 [Error] Failed to call hook 'OnPlayerAttack' on plugin 'FireArrows v1.2.9' (NullReferenceException: Object reference not set to an instance of an object)
at Scientist.CreateCorpse () [0x00000] in <filename unknown>:0
at BasePlayer.OnKilled (.HitInfo info) [0x00000] in <filename unknown>:0
at NPCPlayerApex.OnKilled (.HitInfo info) [0x00000] in <filename unknown>:0
at BaseCombatEntity.Die (.HitInfo info) [0x00000] in <filename unknown>:0
at BasePlayer.Die (.HitInfo info) [0x00000] in <filename unknown>:0
at BaseCombatEntity.Hurt (.HitInfo info) [0x00000] in <filename unknown>:0
at BasePlayer.Hurt (.HitInfo info) [0x00000] in <filename unknown>:0
at NPCPlayerApex.Hurt (.HitInfo info) [0x00000] in <filename unknown>:0
at BaseCombatEntity.Hurt (Single amount, DamageType type, .BaseEntity attacker, Boolean useProtection) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.playerBlastDamage (.BasePlayer player, Single damageamount, DamageType damagetype, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.applyBlastDamage (.BasePlayer player, Single damageamount, DamageType damagetype, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.FireBallFX (.BasePlayer player, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.ArrowFX (.BasePlayer player, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.OnPlayerAttack (.BasePlayer player, .HitInfo hitInfo) [0x00000] in <filename unknown>:0
at Oxide.Plugins.FireArrows.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
05:52 [Warning] [BoxLooters] Saved Boxlooters data
05:52 [Info] [Economics] Saving balances for players...
05:54 [Info] [Death Notes] [VerteX] Snivel stabbed to death with a Bone Knife and hit the Jaw. <------ (this kicked me)
Then:
NullReferenceException: Object reference not set to an instance of an object <-----(console only) -
[BUG] - Firebomb Arrow deals damage multiple times to certain objects
- Double doors for example are damaged twice.
The changes to the method below seemed to have fixed this issue.
void playerBlastDamage(BasePlayer player, float damageamount, Rust.DamageType damagetype, HitInfo hitInfo)
{
List<BaseCombatEntity> playerlist = new List<BaseCombatEntity>();
Vis.Entities<BaseCombatEntity>(hitInfo.HitPositionWorld, DamageRadius, playerlist);
BaseEntity entity = null;
foreach (BaseCombatEntity p in playerlist)
{
if (!(p is BuildingPrivlidge))
{
if (!hitInfo.ProjectilePrefab.ToString().Contains("arrow")) return;
if (entity == p) { Puts("Already been damaged"); return; }
p.Hurt(damageamount, damagetype, player, UseProt);
entity = p;
}
}
} -
Hey @Colon Blow, just a heads up that firearrows now constantly say they're out of materials so I'm not sure if this needs to be updated with some new ID's. Thanks if you could take a look!
-
Find int cloth_amount = player.inventory.GetAmount(94756378); around line 448, highlight and select the (94756378) and press ctrl + H to bring up the replace tool. Replace (94756378) with (-858312878) and click replace all to quickly change all instances in the current document.
You will also need to do the above with the following Items:
(28178745) to (-946369541)
(-1580059655) to (-265876753)
(-592016202) to (1755466030)
You can ctrl + H from line 448 to 451, click replace all with the specified Item ID's from the above list and save the plugin. It should work from there.