Gamestudio Links
Zorro Links
Newest Posts
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, VoroneTZ, 1 invisible), 1,512 guests, and 9 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
hit.texname not working properly #326074
05/30/10 08:30
05/30/10 08:30
Joined: Jul 2008
Posts: 223
Pittsburgh
The_Clyde Offline OP
Member
The_Clyde  Offline OP
Member

Joined: Jul 2008
Posts: 223
Pittsburgh
Both c_move and c_trace are returning erroneous values for hit.texname

When my player lands on a floor, it is supposed to retrieve the texture name of the floor. Instead when my player is standing on a level block hit.texname is NULL and when my player is standing on the skybox hit.texname is set to *skydome+2 which is also incorrect because the texture name for the sky is simply "sky1"

Is this some bug that cropped up recently or is there something I might be doing wrong to cause this?

Re: hit.texname not working properly [Re: The_Clyde] #326088
05/30/10 10:38
05/30/10 10:38
Joined: Apr 2010
Posts: 265
V
Vinous_Beret Offline
Member
Vinous_Beret  Offline
Member
V

Joined: Apr 2010
Posts: 265
can you post some code??

Re: hit.texname not working properly [Re: Vinous_Beret] #326089
05/30/10 10:48
05/30/10 10:48
Joined: Jul 2008
Posts: 223
Pittsburgh
The_Clyde Offline OP
Member
The_Clyde  Offline OP
Member

Joined: Jul 2008
Posts: 223
Pittsburgh
Figured out the problem actually- I didn't have SCAN_TEXTURE set

Re: hit.texname not working properly [Re: The_Clyde] #326090
05/30/10 10:52
05/30/10 10:52
Joined: Jul 2008
Posts: 223
Pittsburgh
The_Clyde Offline OP
Member
The_Clyde  Offline OP
Member

Joined: Jul 2008
Posts: 223
Pittsburgh
Side note: I'm using the last character of the texture name to determine a friction coefficient for that surface (x - 65) / 57 so that 'A' means infinite friction and 'z' means none

I am doing it this way because I truly find it comical. grin


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | 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