What is This means [ Impulse Source ]

06/11/2012 01:10 shadowman123#1
well i was Checking How Guard Auto Attack ..and i Found smthing which i couldnt Identify

Heres it

Code:
                        if (monster.MonsterInfo.InSight == 0)
                        {
                            // bla bla bla
                        }

                        if (monster.MonsterInfo.InSight > 400000 && monster.MonsterInfo.InSight < 600000 || monster.MonsterInfo.InSight > 800000 && monster.MonsterInfo.InSight != monster.UID)
                            {
                                // bla bla bla
                             }
Whats The Hell Does Insight mean (btw im not looking for Translation ) i mean what does it Do Exactly In Source Hope not get Ignored

Regards
Shadowman123
06/11/2012 01:28 Zeroxelli#2
By the looks of it, InSight = the UID (Identity) or the entity that is currently in the monster's look_range. That's... an interesting way of doing it.
06/11/2012 07:56 Spirited#3
I don't think it's insight, I think it's supposed to be "in sight".
06/11/2012 08:30 Zeroxelli#4
Quote:
Originally Posted by Fаng View Post
I don't think it's insight, I think it's supposed to be "in sight".
Yeah, thus the capital "S" I would assume.
06/11/2012 13:29 KraHen#5
Sight radius would be a more proper naming convention.
06/11/2012 16:54 shadowman123#6
Quote:
Originally Posted by Fаng View Post
I don't think it's insight, I think it's supposed to be "in sight".
well it isnt about what does it mean cuz am not looking for translation .. all i need to know what does it do ?
06/11/2012 17:49 Kiyono#7
Quote:
Originally Posted by shadowman123 View Post
well it isnt about what does it mean cuz am not looking for translation .. all i need to know what does it do ?
Judging from how it's named, it probably checks if something is in range of the monster.
06/11/2012 17:58 Korvacs#8
Actually it looks more likely to be the monsters current target judging by the ranges and the != monster.UID at the end.
06/11/2012 18:43 Zeroxelli#9
Korvacs' option is more likely. There should be a distance check somewhere in there depending on the attack type. Should be.
06/11/2012 19:33 shadowman123#10
well All i could understand that when i assign the target ID to Insight The monster Start Attacking It So Yea its Almost target Range by using ID ... Thx All

#request Close
06/11/2012 19:34 Zeroxelli#11
Quote:
Originally Posted by shadowman123 View Post
well All i could understand that when i assign the target ID to Insight The monster Start Attacking It So Yea its Almost target Range by using ID ... Thx All

#request Close
Certainly is an odd way of doing it, though. Lol.
06/11/2012 19:50 shadowman123#12
Quote:
Originally Posted by Zeroxelli View Post
Certainly is an odd way of doing it, though. Lol.
its too bad way of doing Range Check we could do that Depending on Spell Range if the Monster is doing magic attack
06/11/2012 19:54 Zeroxelli#13
Quote:
Originally Posted by shadowman123 View Post
its too bad way of doing Range Check we could do that Depending on Spell Range if the Monster is doing magic attack
Yeah, the cq_monster database actually includes data on the range that monsters can "see" as well as the range they can attack. :)