fodev.net

FOnline Development => General Discussion => Topic started by: Johnnyrico on October 17, 2012, 07:29:50 pm

Title: how to change player view blocking?
Post by: Johnnyrico on October 17, 2012, 07:29:50 pm
hi guys, i have one question to ask :

  how to set player view blocking? let's say the wall blocks player, then player shouldnt see anything which is behind the wall. but right now my player in the game can see everything within sight,even those things behind the wall... hope my english is understandable,, please help me out!! thanks
Title: Re: how to change player view blocking?
Post by: fonliner on October 18, 2012, 01:58:41 pm
You must on map set blockers on the object. Use green "W" and yellow "W" blockers.
Title: Re: how to change player view blocking?
Post by: Johnnyrico on October 18, 2012, 06:56:13 pm
You must on map set blockers on the object. Use green "W" and yellow "W" blockers.


hi, i tried it already, but it doesnt work for me.. i still can see NPCs and weapons behind the wall
Title: Re: how to change player view blocking?
Post by: JovankaB on October 18, 2012, 07:28:20 pm

hi, i tried it already, but it doesnt work for me.. i still can see NPCs and weapons behind the wall

config.fos, line number 113
Code: [Select]
    // __LookChecks |= LOOK_CHECK_TRACE; // Tracing for wall aviablility
remove first "//" (uncomment) and see if it works. I'm not sure but it looks like that.
If you use search in fos files you can find lots of stuff.
Title: Re: how to change player view blocking?
Post by: Johnnyrico on October 18, 2012, 08:11:48 pm
config.fos, line number 113
Code: [Select]
    // __LookChecks |= LOOK_CHECK_TRACE; // Tracing for wall aviablility
remove first "//" (uncomment) and see if it works. I'm not sure but it looks like that.
If you use search in fos files you can find lots of stuff.


yes yes!! fix it !!!   thank you so much, you are GOD!!
Title: Re: how to change player view blocking?
Post by: loord on March 30, 2017, 10:51:00 am
Sorry for bumping old topic, but I have question connected to it.
How split this function on player and npc?
If you uncomment mentioned above line 113 then both player and npc field of view will be limited by walls, but it lead to situation that wall interrupt attack of npc (I can attack them and hide behind wall to avoid their attack).
Title: Re: how to change player view blocking?
Post by: Skycast on March 30, 2017, 11:48:17 am
Sorry for bumping old topic, but I have question connected to it.
How split this function on player and npc?
If you uncomment mentioned above line 113 then both player and npc field of view will be limited by walls, but it lead to situation that wall interrupt attack of npc (I can attack them and hide behind wall to avoid their attack).
You need to implement own native function in dll to proccess check look.