TargetPractice

Moved

Total Downloads: 1,654 - First Release: Feb 26, 2016 - Last Update: Jul 9, 2016

5/5, 14 likes
  1. Still working fine for me. Make sure you are completely updated. There was a update a little over 15 hours ago
     
  2. My apologies, working great now ty for your time.
     
  3. /target wipe - Clear all hit data isn't clearing for me
     
  4. You can go to oxide/data directory on your server and delete targetpractice_scores.json
     
  5. Is there a way to broadcast the high scores every so many minutes? Thank You
     
  6. It looks like the health is not being reset on the ReactiveTarget when it is being hit. It seems like that when it is knocked down it should be reset to maxHealth by this code;

    Code:
                            if (target.IsKnockedDown ()) {
                                Puts ("target maxHealth is " + target.MaxHealth ().ToString ());
                                target.CancelInvoke ("ResetTarget");
                                Puts ("target health is " + target.Health ().ToString ());
                                target.health = target.MaxHealth ();
                                //target.ChangeHealth (target.MaxHealth ());
                                Puts ("target health is " + target.Health ().ToString ());
                                target.SendNetworkUpdate ();
                                timer.Once (time, () => target.SetFlag (BaseEntity.Flags.On, true));
                            }
    However if I shoot it a bunch of times and knock it down, it's getting damaged;

    Code:
    [09/08/2016 12:59:09] [Oxide] 12:59 [Info] [TargetPractice] target maxHealth is 250
    [09/08/2016 12:59:09] [Oxide] 12:59 [Info] [TargetPractice] target health is 111
    [09/08/2016 12:59:09] [Oxide] 12:59 [Info] [TargetPractice] target health is 250
    [09/08/2016 12:59:09] [Oxide] 12:59 [Info] [TargetPractice] target maxHealth is 250
    [09/08/2016 12:59:09] [Oxide] 12:59 [Info] [TargetPractice] target health is 110
    [09/08/2016 12:59:09] [Oxide] 12:59 [Info] [TargetPractice] target health is 250
    20160908134933_1.jpg 20160908134933_1.jpg
     
    Last edited by a moderator: Sep 8, 2016
  7. I'd love to see if you can make an option to move the target if possible? Like back and forth or side to side. Possibly with an option to "equip" items maybe via a small storage? That would allow this to act like a player with armor. If you have time of course, that would be fantastic! Thanks for this great plugin. Further more, do you know if this would be possible with an NPC player?
     
  8. Failed to call hook 'cmdTarget' on plugin 'TargetPractice v0.1.55' (NullReferenceException: Object reference not set to an instance of an object) Did a rust update change something to do with Targets?
     
  9. Wulf

    Wulf Community Admin

    What is the exact command you used?
     
  10. My bad.. It stopped working and has no errors, so reloaded and used the wipe command. That's where that line came from, as for the plug in. It's just not showing up on screen when a target is hit, and no scores taken etc. It's showing no errors in console either
     
    Last edited by a moderator: May 1, 2017
  11. /target wipe
    Can this be added as a console command?
     
  12. I saw this today in my console
    Code:
    (02:28:45) | at Oxide.Plugins.TargetPractice.cmdTarget (.BasePlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.TargetPractice.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
    at Oxide.Plugins.CSharpPlugin.InvokeMethod (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
     
    Last edited by a moderator: Oct 8, 2017
  13. The hit score on-screen does not go away since the update. Users have to log out and back in to clear it out now.

    Thank you.
     
  14. Same problem here
     
  15. I am not getting any scores broadcast at all. reloaded plugin and shows installed but no scores at all, data file just shows "null"
     
  16. another non maintained plugin sad to say
     
  17. Gave up - unloaded plugin