It is currently 22 May 2013, 01:45

Post new topic Reply to topic  Page 3 of 4
 [ 33 posts ]    1, 2, 3, 4  

Infernal Spider glides on ground?


Author Message
 Post subject: Re: Infernal Spider glides on ground?
PostPosted: 25 Feb 2012, 05:57 
Offline
Arachnotron  Tester of the Realm.
Joined: 20 Jan 2010, 20:55
Posts: 384
Location: Washington
Awesome! This spider is fully ready to be resubmitted. ^.^

Also, what happens exactly with the spider when it bugs out? Does the game crash or freeze? Or does it stay in the jumping pose? If it is very serious then I'll wait for that part to be fixed.
http://www.youtube.com/user/DoomedArchv ... ature=mhum

Killing bosses and working on getting Fraps to record a tutorial and some of my mods.


Top
 Profile  
 
 Post subject: Re: Infernal Spider glides on ground?
PostPosted: 25 Feb 2012, 07:15 
Offline
Cyberdemon  Approved Adder
User avatar
Joined: 01 Feb 2011, 20:07
Posts: 857
DoomedArchvileDemon wrote:
Does the game crash or freeze?
No, not that serious. However, it will show the same issue(s) that you reported where it kind of "lands" in mid-air before it actually drops on the floor from the jump. This will happen if the monster jumps off a floor and lands on another that is lower than the one it jumped from. The greater the difference between the floors height the more obvious the issue is.

You can test this yourself if you want, just put the monster on a higher floor while you remain on a lower floor, and when it jumps you'll see the issue. (Don't forget to stand far away from it so there is a chance for it to perform the jump)


Top
 Profile  
 
 Post subject: Re: Infernal Spider glides on ground?
PostPosted: 25 Feb 2012, 07:25 
Offline
Arachnotron  Tester of the Realm.
Joined: 20 Jan 2010, 20:55
Posts: 384
Location: Washington
Ooooh ok then. I see what is going on. Well that's just great. Is there a code where when it jumps it will just be suspended in that pose until it touches the ground? Like...

If [SpiderInAir = JumpSprite] or else [SpiderOnGround = Walk]

...shows how much I know about coding lol. But is there a code to suspend something until a certain action is done?

Also took a look at the CyberImp because it jumps too. Same thing happens lol. Though it might be different ^.^;


Top
 Profile  
 
 Post subject: Re: Infernal Spider glides on ground?
PostPosted: 25 Feb 2012, 11:21 
Offline
Cyberdemon  Approved Adder
User avatar
Joined: 01 Feb 2011, 20:07
Posts: 857
DoomedArchvileDemon wrote:
Is there a code where when it jumps it will just be suspended in that pose until it touches the ground?
In a way, I guess, but not straight forward like that.

Anyway, here is the fix:

Attachment removed for it's no longer needed

Note: I've decided to remove the sprites and sounds lumps from the "fix" wads that I upload just to keep the size of the file down. All you need to do is copy all the sprites and sounds lumps from the wad you have to the "fix" wad. (When copying the sprites, don't forget to include the S_START and S_END markers as well)

And here is a test map to go along with it:

Attachment removed for it's no longer needed


Last edited by Blue Shadow on 28 Feb 2012, 14:26, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Infernal Spider glides on ground?
PostPosted: 26 Feb 2012, 14:46 
Offline
Wraith  Wraith
User avatar
Joined: 13 Dec 2009, 21:47
Posts: 82
Oh hey! you guys were really lucky, I basically never visit theese forums anymore but i happened to do that today :D So i see you're wanting it to jump instead of glide. Thing is, this was the original behaviour, If you play Zpack, the Infernal spider is the boss of E3. There it jumps at you instead of glides, The reason I removed this behaviour for the Beastiary submission was that it fucked up in a bunch of different ways.
There just isn't a perfect way of doing the jumping, you can't do a good check for when it lands, because it can either land on the ground or on another thing. perhaps by shooting some sort of dummy actor downwards that is as big as the spider itself to see if it hits something and in that case, make the spider stop and go to the see state would be the most foolproof system. I was just so tired of the monster that I went the lazy way and made it glide like the spiderbosses in tormentors tnt3.

I'll take a look at the code changes you guys have made and report back :P


Top
 Profile  
 
 Post subject: Re: Infernal Spider glides on ground?
PostPosted: 26 Feb 2012, 20:49 
Offline
Icon of Sin  O'Neill with it.
User avatar
Joined: 13 Dec 2009, 20:48
Posts: 1163
Location: IN SPACE
I usually check for Z velocity to be close to zero. (within -4 or so). Unfortuntely this occurs after the peak of a jump as well. :(
Douglas Adams wrote:
Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.


Top
 Profile  
 
 Post subject: Re: Infernal Spider glides on ground?
PostPosted: 26 Feb 2012, 23:24 
Offline
Cyberdemon  Approved Adder
User avatar
Joined: 01 Feb 2011, 20:07
Posts: 857
I still have the "landing on actors" issue to solve. I tried to check and see if the monster's z-velocity equals to zero, however, that didn't work very well, because jumping between floors with different heights means that the monster's z-velocity will start increasing as it jumps in the air, and after it reaches the peak height of its jump, the velocity will start decreasing and ultimately crossing the zero mark and becoming negative before the monster touchs the lower floor, thus forcing the monster to break from the jump and drops to the ground.


Top
 Profile  
 
 Post subject: Re: Infernal Spider glides on ground?
PostPosted: 28 Feb 2012, 14:16 
Offline
Cyberdemon  Approved Adder
User avatar
Joined: 01 Feb 2011, 20:07
Posts: 857
Here is a new fix in case anyone is interested:
Attachment:
infernalspider_fix3.zip

The fix addresses a couple of issues:

  • The monster is no longer stuck in its jumping pose and unable to move after it lands on top of an obstacle when jumping from a higher floor to a lower one.
  • If the monster lands on an obstacle, it'll jump off said obstacle. This is so to keep it from getting stuck.


Top
 Profile  
 
 Post subject: Re: Infernal Spider glides on ground?
PostPosted: 03 Mar 2012, 02:14 
Offline
Arachnotron  Tester of the Realm.
Joined: 20 Jan 2010, 20:55
Posts: 384
Location: Washington
Very nice update BlueShadow. lol I have a line of imps for the spider and it kept jumping along them. :D Seriously though, good way to fix this issue.

Has anyone gotten any luck with the height jumping issue yet? :-)


Top
 Profile  
 
 Post subject: Re: Infernal Spider glides on ground?
PostPosted: 03 Mar 2012, 03:39 
Offline
Cyberdemon  Approved Adder
User avatar
Joined: 01 Feb 2011, 20:07
Posts: 857
Thanks.

DoomedArchvileDemon wrote:
Has anyone gotten any luck with the height jumping issue yet? :-)
Not really sure which that is, could you explain it to me?


Top
 Profile  
 
Display posts from previous:  Sort by  

Post new topic Reply to topic  Page 3 of 4
 [ 33 posts ]    1, 2, 3, 4  


Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to: