Planky Posted August 26, 2008 I was going to post this on the GZDoom forums, but I've managed to forget my password and what email account I used to register and promptly got blocked for 30 minutes... Anyhow, I was tinkering with ACS and the SetGravity command. I wanted to change the gravity to 400 when opened: #include "zcommon.acs" script 1 OPEN { setgravity(400); } When I run the map and hit the jump key, the player rises to the ceiling (regardless of height) and just stays there. Happens with ZDoom and gzDoom. Manually setting the gravity via sv_gravity works fine. Is this a bug or me just being incredibly stupid? Edit: Ergh, this should be in Editing. Not my day :( 0 Share this post Link to post
TomoAlien Posted August 26, 2008 Your code should look like this:#include "zcommon.acs" script 1 OPEN { setgravity(400.0); } ACS handles some vaules in this manner. 0 Share this post Link to post
EarthQuake Posted August 26, 2008 I thought setgravity used a scalar value. Like 0.5 is 50%, 2.0 is 200%, etc... 0 Share this post Link to post
Enjay Posted August 26, 2008 Perhaps you are thinking of Sector_SetGravity. SetGravity uses a fixed amount - 800 being normal. Interestingly, the Zdoom wiki lists an example using the same syntax as in Planky's original post. It may be of interest that you can also set the gravity value via mapinfo. 0 Share this post Link to post
Planky Posted August 26, 2008 Look at the history of the page - I added that example, before I realized something was wrong :D Why does sv_gravity accept values without the .0? Seems a bit inconsistent... 0 Share this post Link to post