Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/25/26 19:13
ZorroGPT
by TipmyPip. 04/25/26 16:09
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 3,790 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
valino, juergenwue, VladMak, Geir, ondrej
19209 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Player walks through the zombie! :O #253816
02/27/09 03:24
02/27/09 03:24
Joined: Aug 2007
Posts: 74
Mahdi Offline OP
Junior Member
Mahdi  Offline 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: Mahdi] #253825
02/27/09 07:31
02/27/09 07:31
Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
Post your c_trace section of code here.

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 Offline
Senior Expert
Pappenheimer  Offline
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 Offline OP
Junior Member
Mahdi  Offline 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: Mahdi] #253883
02/27/09 14:13
02/27/09 14:13
Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Pappenheimer Offline
Senior Expert
Pappenheimer  Offline
Senior Expert

Joined: Sep 2003
Posts: 5,900
Bielefeld, Germany
Do you trace from the player to the camera or the other way round?

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 Offline OP
Junior Member
Mahdi  Offline 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
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

Is this a typo?
ignore_passable && use_box

should it be ?
ignore_passable | use_box

Ottawa smile

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 Offline OP
Junior Member
Mahdi  Offline 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!

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1