So I'm currently in the investigation phase of making a game for the blind. It turns out that using a 2.5D engine is super spiffy and fills lots of my goals. There are a few things I need functionally and Zscript seems powerful enough to fulfill them. Here's a few questions I have about Zdoom...
1) Can I start a level directly from game start? (Meaning, I don't have to go though a menu to start the game, just drop me right into a level after clicking on the desktop icon)
2) Zscript seems to have the ability for you detect what sector the player is standing in and what texture is on the floor. This will be good for adding footsteps based on the texture. However, if given a melee weapon, like a stick, is there a way to detect the texture of the wall that was struck. (Meaning, if you hit the wall, it will tell you the texture that was "hit" that I can then attach to a noise to).
3) I will need a way to creep to an edge of a sector without entering the next one. (Like in Duke3D, you can crouch and walk to an edge and you will not fall off). Is there a way to detect if a player near a sector boundary?
Everything else like event triggers and adding sounds to things seems very doable. It's just the wall/sector edge detection I'm having a little trouble finding.
What Wall did I hit?
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
-
Caligari87
- Admin
- Posts: 6254
- Joined: Thu Feb 26, 2004 3:02 pm
- Preferred Pronouns: He/Him
Re: What Wall did I hit?
1) Not as a function of GZDoom, but you could easily make a "wrapper" batch file or exe that starts GZDoom with the warp parameter to go straight to the desired map.
2) Yes, using [wiki]LineTrace[/wiki].
3) Yes, but you shouldn't use sector boundaries for this. The better way would be to check for height differences between the player and the space ahead of them.

2) Yes, using [wiki]LineTrace[/wiki].
3) Yes, but you shouldn't use sector boundaries for this. The better way would be to check for height differences between the player and the space ahead of them.