Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 10/25/26 03:42
Chat Room for Zorro Programmers
by Haitao_Ren. 10/25/26 03:14
Trading Journey
by Haitao_Ren. 10/25/26 03:14
Algorithmic trading course with Zorro
by Haitao_Ren. 10/25/26 03:12
Zorro tutorial ideas?
by Haitao_Ren. 10/25/26 02:47
Zorro plugin for Hyperliquid.xyz
by mayarik. 10/24/26 09:14
Tradestation missing in table of contents
by AndrewAMD. 10/23/26 14:35
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (3run, TipmyPip, opm), 7,722 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Haitao_Ren, JimSimons, julienp, julienper, KelleyAbbey
19247 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