Author Topic: how to change player view blocking?  (Read 5947 times)

Offline Johnnyrico

  • im from Asian.
how to change player view blocking?
« 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
Come in chosen one.

Re: how to change player view blocking?
« Reply #1 on: October 18, 2012, 01:58:41 pm »
You must on map set blockers on the object. Use green "W" and yellow "W" blockers.

Offline Johnnyrico

  • im from Asian.
Re: how to change player view blocking?
« Reply #2 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
Come in chosen one.

JovankaB

  • Guest
Re: how to change player view blocking?
« Reply #3 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.

Offline Johnnyrico

  • im from Asian.
Re: how to change player view blocking?
« Reply #4 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!!
Come in chosen one.

Re: how to change player view blocking?
« Reply #5 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).
« Last Edit: March 30, 2017, 11:31:01 am by loord »

Re: how to change player view blocking?
« Reply #6 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.