Author Topic: is GetNextObjectInShape() buggy?  (Read 880 times)

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
is GetNextObjectInShape() buggy?
« Reply #15 on: August 20, 2010, 11:01:52 am »


               Hmmm it really looks like problem with the getinshape function, or the area of effect is smaller than you think. Anyway what interest me is that you using bits for metamagic same as me in the community patch project to allow multiple metamagic :-)
               
               

               
            

Legacy_ent.devil

  • Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
is GetNextObjectInShape() buggy?
« Reply #16 on: August 20, 2010, 03:16:46 pm »


               Picking up on what ShaDoOoW said about the size, there is a difference in the spell description in the comments and what you are using in the function. Are you expecting that the radius is larger than what it is?

Try using a large metre value (> 10.0) as a test and see if it includes everything you expect.

I have noticed that targeting a location instead of a creature may be
working better, though there is no reason for that to be the case.
Targeting a creature or a spot right next to the creature should be the
same thing


Should be '<img'> do you rely on the GetSpellTargetLocation() always returning a location or have you checked is GetSpellTargetObject() is valid first and use the location of that?


Looking through the scripts I use I don't use that vOrigin parameter in any of them
               
               

               


                     Modifié par ent.devil, 20 août 2010 - 02:20 .
                     
                  


            

Legacy_MrZork

  • Hero Member
  • *****
  • Posts: 1643
  • Karma: +0/-0
is GetNextObjectInShape() buggy?
« Reply #17 on: August 21, 2010, 01:36:42 pm »


               ':blush:'

Okay, I feel like a pretty big bonehead here, but the issue was that I was miscalculating the size of the GARGANTUAN sphere and that was compounded by the happenstance of my testing against creatures much larger than man-sized. I thought that GARGANTUAN size spec was bigger than an 8.33 meter radius and, my first several test runs were against frost giants and dragons. Because of that, I was thinking that enemies that must have been near enough my target creature were getting left out, but they were just more than 8.33 meters from the target and it didn't look that way standing "next" to one another because they were all so large. Yeah, really dumb on my part not to notice that the baddies I was having trouble with were all shopping at the big-n-tall store.

Anyway, it turns out that that it works pretty well now. I re-added a check that the targets are visible to the caster and adjusted the size spec on Get*ObjectInShape() to COLOSSAL. (Latest code is here.) I may play with the FX a bit more (doesn't seem to be a whole lot of variety for missile FX), but I think I am happy with my first custom spell now. '^_^' If anyone is interested, the assorted things that go with the spell are in this 7-zip archive 'Posted

Thanks for everyone's help on this.
               
               

               


                     Modifié par MrZork, 21 août 2010 - 12:39 .
                     
                  


            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
is GetNextObjectInShape() buggy?
« Reply #18 on: August 21, 2010, 03:10:30 pm »


               nice icon