Duke4.net Forums: Flying player - Duke4.net Forums

Jump to content

Hide message Show message
Welcome to the Duke4.net Forums!

Register an account now to get access to all board features. After you've registered and logged in, you'll be able to create topics, post replies, send and receive private messages, disable the viewing of ads and more!

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Flying player

User is offline   Perro Seco 

  • 108

#1

I'm making a level where the player is always flying. He has the jetpack on with infinite amount, and the USEJETPACK event always returns -1 to avoid him fall. Now the only problem is that the player can't activate touchplates and non-water teleports. I'm wondering if there's a way to make him activate them without walking on the sector's ground?

Posted Image
0

User is offline   Kawa 

  • 212

#2

I was under the impression that if you angle a Touchplate sprite down, it'll trigger when you enter the sector regardless of touching the floor.

“Laugh it up, fuzzball.” — Han Solo
2

User is offline   Micky C 

  • Honored Donor
  • 3,322

#3

View PostKawa, on 15 January 2017 - 03:23 PM, said:

I was under the impression that if you angle a Touchplate sprite down, it'll trigger when you enter the sector regardless of touching the floor.


You're under that impression because it's true.

I'm not too sure what can be done about the teleports from a purely mapping perspective though. However since you're obviously modifying the code, would it not be relatively simple to make your own effect which transports the player upon activation?

Polymer wishlist: Global illumination, SSAO, Bloom, reflective surfaces, adjustable specular (wetness), volumetric lighting.
Mapper of the Month December 2014.

Herbs? Tell me more!
0

User is offline   Perro Seco 

  • 108

#4

View PostKawa, on 15 January 2017 - 03:23 PM, said:

I was under the impression that if you angle a Touchplate sprite down, it'll trigger when you enter the sector regardless of touching the floor.
Thank you! I didn't know that trick. Very useful.


View PostMicky C, on 16 January 2017 - 03:54 AM, said:

Would it not be relatively simple to make your own effect which transports the player upon activation?
I know how to change player's current position and how to detect his current sector, but I don't know either how to detect if there's a SE in that sector or how to get the other SE position... :wallbash:

Posted Image
0

User is offline   TerminX 

  • el fundador
  • 4,793

  #5

View PostPerro Seco, on 16 January 2017 - 07:17 AM, said:

I know how to change player's current position and how to detect his current sector, but I don't know either how to detect if there's a SE in that sector or how to get the other SE position... :wallbash:

http://wiki.eduke32..../Headspritesect
http://wiki.eduke32....tructure_access

EDuke32 ? wiki ? svn builds ? bugs
Join us in #eduke32 on irc.freenode.net!
1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks are property of their respective owners and all comments are owned by their posters. Yes, our forum uses cookies. © 2004-2017 Duke4.net and Voidpoint, LLC

Enter your sign in name and password


Sign in options