Gamestudio Links
Zorro Links
Newest Posts
long time to load data
by qin. 12/29/25 14:06
The new evaluation shell
by jcl. 12/29/25 09:56
about Zorro S (monthly)
by AndrewAMD. 12/29/25 03:24
Xor Memory Problem.
by TipmyPip. 12/26/25 19:14
ZorroFix. ini /data and /log path
by Martin_HH. 12/19/25 21:02
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (vicknick, bigsmack), 3,191 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Syndrela, HDRSEO, AOUNZA, digitalboy381, agasior
19190 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 | 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