Posted: Sun Feb 05, 2012 1:11 am Post subject: Lack of player handling for APROP_SPEED in SetActorProperty
When issued on the activating player, the above should return 1.0, instead of the player thing's default DeHackEd speed property of 0.
This currently works for monsters or other actors, because the DeHackEd speed property is what is used to advance them each time A_Chase is called.
Players do not use this DeHackEd property, so instead special handling is used for players to get and set their speed. The default for players should be 1.0, and this value is multiplied by whatever their true speed is to achieve an overall increase or decrease in speed for that player.
SetActorProperty(0, APROP_Speed, 0.75);
The following example, when executed by the activating player, should reduce their speed to 75%.
Tested with b25. Works in ZDoom.
Test map: http://speedy.sh/M62zV/balls.wad
The messages printed on screen after joining the game will show what's going on. Ignore the rest of the map for now as it tests some other bugs.
Holy sh*t, someone has to find EarthQuake and force him to finish his incredibly-promising-yet-never-finished horror wads, quick! This issue pretty much stopped him many years ago. Damn I wish he still was around.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum