|
1 registered members (Quad),
3,790
guests, and 8
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Player walks through the zombie! :O
#253816
02/27/09 03:24
02/27/09 03:24
|
Joined: Aug 2007
Posts: 74
Mahdi
OP
Junior Member
|
OP
Junior Member
Joined: Aug 2007
Posts: 74
|
Hi again,
I have a player and a zombie. The pivot point for both of them are in the center of thier models.
When the player walks, it can move through the zombie! and looks like they are not solid. that I don't want this.
What should I do?!
Sombody told me that I should check the Polygon in WED for both models. I did and the problem fixed. They dont penetrate each other anymore. But...!
But a new problem appears when the Polygon is checked. The C_Trace between any object with Player returns NULL. (I tried a lot to discover it returns null and my cameras which are using C_Trace to detect the player don't work correctly.)
I don't care!
|
|
|
Re: Player walks through the zombie! :O
[Re: George]
#253838
02/27/09 08:15
02/27/09 08:15
|
Joined: Sep 2003
Posts: 5,900 Bielefeld, Germany
Pappenheimer
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
|
You should check the c_move part and the c_setminmax things, too, the polygon flag is meant for the environment, not for the moving entities.
Last edited by Pappenheimer; 02/27/09 08:16.
|
|
|
Re: Player walks through the zombie! :O
[Re: Pappenheimer]
#253878
02/27/09 13:48
02/27/09 13:48
|
Joined: Aug 2007
Posts: 74
Mahdi
OP
Junior Member
|
OP
Junior Member
Joined: Aug 2007
Posts: 74
|
Sorry, post edited. I think the problem most be from somewhere else. I will come back.
Last edited by Mahdi; 02/27/09 14:06.
I don't care!
|
|
|
Re: Player walks through the zombie! :O
[Re: Pappenheimer]
#253903
02/27/09 15:54
02/27/09 15:54
|
Joined: Aug 2007
Posts: 74
Mahdi
OP
Junior Member
|
OP
Junior Member
Joined: Aug 2007
Posts: 74
|
Nope, I trace from the camera to the player.The cameras are like resident evil 3 cameras. here is the code: c_trace(vector(cam_2.x,cam_2.y,cam_2.z-70),player.x,ignore_passable && use_box); if (vec_dist(target.x,player.x) < 60 || you==player || you==weapon || you==weapon_colt || you==weapon_revolver) { if (my.skill48 == i) { Find the nearest camera to the player. } } else { The current camera cann't see the player, so change to a camera that can see the player }
The else section should run when the player goes behind an obstacle and it tries to find the nearest camera that can see the player.
Here is the porblem:
The else section runs even when the player is in front of a camera and not behind the obstacle when I check the Polygon of the player. But if I uncheck the Polygon, there is no problem and works great.And it is a real problem because the else section shouldn't run (because it changes the camera repeatedly).
It seems to be something invisible between player and the camera which forces the else section to change the camera again. But there is nothing.
Last edited by Mahdi; 02/27/09 16:07.
I don't care!
|
|
|
Re: Player walks through the zombie! :O
[Re: Mahdi]
#253925
02/27/09 19:02
02/27/09 19:02
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
User
|
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi! Is this a typo? ignore_passable && use_box should it be ? ignore_passable | use_box Ottawa 
|
|
|
Re: Player walks through the zombie! :O
[Re: Ottawa]
#253932
02/27/09 19:49
02/27/09 19:49
|
Joined: Aug 2007
Posts: 74
Mahdi
OP
Junior Member
|
OP
Junior Member
Joined: Aug 2007
Posts: 74
|
Ottawa do you know you solved the problem?! I think no!
It seems to be solved. Thanks to all of you.
I don't care!
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|