Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Doors and Opening - Distance, LOS
Author Message
snoozed
Apprentice
*

Posts: 7
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2014
Reputation: 0



Post: #1
Doors and Opening - Distance, LOS
Hello,

Trying to find where door logic happens - los/distance checking.

Only thing I can find is notes from 2010:

Code:
12-08-2010, ShiryuX
- Fixed #1793: OpenDoor Macro now won't ignore LOS and Distance is 3 (max).

Any idea where this is stored? (server, script? - file?)

Thanks
(This post was last modified: 05-14-2017 01:35 AM by snoozed.)
05-14-2017 01:34 AM
Find all posts by this user Like Post Quote this message in a reply
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #2
RE: Doors and Opening - Distance, LOS
probably on typedef or itemdef of the door on@dclick
05-14-2017 03:05 AM
Find all posts by this user Like Post Quote this message in a reply
snoozed
Apprentice
*

Posts: 7
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2014
Reputation: 0



Post: #3
RE: Doors and Opening - Distance, LOS
(05-14-2017 03:05 AM)pointhz Wrote:  probably on typedef or itemdef of the door on@dclick

Lol, that doesn't really get anywhere - I'm assuming it's on@dclick.. somewhere.

But I'm not seeing it.

And it's not in ItemDef or TypeDef..
05-14-2017 07:45 AM
Find all posts by this user Like Post Quote this message in a reply
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #4
RE: Doors and Opening - Distance, LOS
[ITEMDEF 06a5]
DEFNAME=i_door_wood
RESOURCES=25 I_log
TYPE=T_DOOR
CATEGORY=Buildings - Doors
SUBSECTION=Wooden Door 1
DESCRIPTION=@ (n / sw)
DUPELIST=06a7,06a9,06ab,06ad,06af,06b1,06b3

ON = @SpellEffect
return 1

ON = @DClick
if ( <SRC.ISDEAD> )
SRC.SYSMESSAGE "Get a life..."
return 0
endif
05-15-2017 06:53 AM
Find all posts by this user Like Post Quote this message in a reply
snoozed
Apprentice
*

Posts: 7
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2014
Reputation: 0



Post: #5
RE: Doors and Opening - Distance, LOS
Lol, that doesn't exist in 'sphere_item_building_doors.scp'

That check should be performed in a centralized place (from the change log notes I posted). I'm trying to find that place.

Thanks for your suggestions though
05-15-2017 08:33 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #6
RE: Doors and Opening - Distance, LOS
I think it's not in the scripts but somewhere in the source Tongue
05-15-2017 05:50 PM
Find all posts by this user Like Post Quote this message in a reply
pointhz
Journeyman
*

Posts: 148
Likes Given: 1
Likes Received: 55 in 28 posts
Joined: Oct 2013
Reputation: 1



Post: #7
RE: Doors and Opening - Distance, LOS
(05-15-2017 08:33 AM)snoozed Wrote:  Lol, that doesn't exist in 'sphere_item_building_doors.scp'

That check should be performed in a centralized place (from the change log notes I posted). I'm trying to find that place.

Thanks for your suggestions though

Add it somewhere and test if it overwrites the default or not
05-16-2017 05:50 AM
Find all posts by this user Like Post Quote this message in a reply
snoozed
Apprentice
*

Posts: 7
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2014
Reputation: 0



Post: #8
RE: Doors and Opening - Distance, LOS
(05-16-2017 05:50 AM)pointhz Wrote:  
(05-15-2017 08:33 AM)snoozed Wrote:  Lol, that doesn't exist in 'sphere_item_building_doors.scp'

That check should be performed in a centralized place (from the change log notes I posted). I'm trying to find that place.

Thanks for your suggestions though

Add it somewhere and test if it overwrites the default or not

Yes, it will read it, but I'd strongly prefer to find the source, so there aren't any unintended issues.

With that, any idea what the range checking variable is?

Thanks
05-16-2017 08:19 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #9
RE: Doors and Opening - Distance, LOS
LOS/distance checks works in the same way for all items, including doors
the only difference is that if you use CAN=can_i_dcignorelos or can_i_dcignoredist it will ignore LOS or distance, and this is also the same for all items using these CAN flags
05-17-2017 12:26 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)