Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 18,619 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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