Duke4.net Forums: Those simple questions thread - 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!

  • 14 Pages +
  • « First
  • 12
  • 13
  • 14
  • You cannot start a new topic
  • You cannot reply to this topic

Those simple questions thread  "Simple questions, simple answers"

User is online   Sanek 

  • 496

#391

How to change shrinker projectile so it will just kill you instead of shrinking?
0

User is offline   Mere_Duke 

  • 19

#392

if you want to implement instakilling yourself with the Shrinker (by mirror, or by Newbeasts), you can do something like that:
Change in APLAYER actor:
    ifwasweapon SHRINKSPARK
    {
      palfrom 48 0 48
      cstat 0
      move PSHRINKING // Used only as a variable
      sound ACTOR_SHRINKING
      break
    }

To
    ifwasweapon SHRINKSPARK
    {
      setactor[THISACTOR].htextra MAXPLAYERHEALTH
    }



If you need to differ mirror-shrinking from Newbeast-shrinking, you need to check htowner:
    ifwasweapon SHRINKSPARK
    {
      getactor[THISACTOR].htowner htowner
      ife sprite[htowner].picnum NEWBEAST
      {
        palfrom 48 0 48
        cstat 0
        move PSHRINKING // Used only as a variable
        sound ACTOR_SHRINKING
        break
      }
      else
        setactor[THISACTOR].htextra MAXPLAYERHEALTH
    }

There, you will kill yourself with shrinker, but Newbeast will still be able to shrink you.


PS Don't forget there are shrinker projectile spawners. You might want to handle them as well. (In the abovementioned example, those spawners will kill you.)

This post has been edited by Mere_Duke: 15 March 2018 - 08:18 AM

1

User is offline   LAW 

  • 22

#393

I created a Roch epsiode, so all these great levels can be played one after another. But Roch 5 is always taking me back to the first level. I haven't Build anything for five years, but shouldn't the sector with lotag 65535 take you to the next level? I think it should, but in Roch 5 it just goes to the first level of episode. Why?

Ok Jackie, now it's my turn...

This post has been edited by LAW: 20 March 2018 - 12:42 PM

0

User is offline   Hendricks266 

  • EDuke32 Senior Developer
  • 5,948

  #394

Try defining it as episode 2 or 3 instead of 1.
0

User is offline   LAW 

  • 22

#395

View PostHendricks266, on 20 March 2018 - 12:56 PM, said:

Try defining it as episode 2 or 3 instead of 1.


I started with that. No matter how I name the Roch 5, no matter which episode it is in, it always warps the player to the first level of episode. Another funny thing is that inserting a Nukebutton (whatever pal) doesn't help, because Nukebuttons don't work! My conclusion is: the map was hex-edited, just as the later Roch maps.

Ok Jackie, now it's my turn...
0

User is offline   Trooper Dan 

  • Duke Plus Developer
  • 2,797

#396

That's odd, because I had the Roch maps all as one episode in one of my mods many years ago, and never had that issue. Double check your definelevelname lines and make sure they are correct.
0

User is online   NightFright 

  • The Truth is in here
  • 763

#397

In the addon compilation, everything works as intended with definining the Roch episode in a slot not occupied by the regular episodes:

include game.con

// Episodes
undefinevolume 0
undefinevolume 1
undefinevolume 2
undefinevolume 3
undefinevolume 4
definevolumename 5 ROCH SERIES

// Levels
definelevelname 5 0 roch.map     00:00 00:00 ROCH
definelevelname 5 1 roch2.map    00:00 00:00 ROCH 2
definelevelname 5 2 roch3.map    00:00 00:00 ROCH 3
definelevelname 5 3 roch_sc1.map 00:00 00:00 ROCH SECRET
definelevelname 5 4 roch4.map    00:00 00:00 ROCH 4
definelevelname 5 5 roch5.map    00:00 00:00 ROCH 5
definelevelname 5 6 roch6.map    00:00 00:00 ROCH 6
definelevelname 5 7 roch7.map    00:00 00:00 ROCH 7
definelevelname 5 8 roch8.map    00:00 00:00 ROCH 8

0

User is offline   LAW 

  • 22

#398

I have the very same order of maps. But I have named them in a E2Lx manner to avoid using cons. I am playing this on the first Xbox, but the same happens in the JFDuke (the Xbox port is based on it).

So today I will try two more things:
1) use the maps with original filenames plus CON.
2) use the 5th episode instead of 2nd.

Ok Jackie, now it's my turn...
0

User is offline   LAW 

  • 22

#399

I tried both and nope, no luck. However in Eduke32 everything was fine. Too bad there is no port of Eduke32 for the old Xbox :dukecry:

Ok Jackie, now it's my turn...
0

User is online   Mister Sinister 

  • 379

#400

How many ticks is one second exactly when it somes to certain SE and D effects? Like explosions or timed doors.
Suppose I want explosions to go off in 1 minute, what value would it be?

This post has been edited by Mister Sinister: 17 May 2018 - 03:15 AM

0

User is offline   Jblade 

  • 1,602

#401

30 is equal to 1 second more or less, so 600 would be a minute.
0

User is offline   High Treason 

  • 1,019

#402

So they say, but when building the clock I had to set 13 on each side of the 'bellows' to make it fit. The same had to be applied in a few other places. This was going by the game clock, though, which may be fast and this also lead to a discussion with either Hendricks or TX, which suggested the game might use a few ticks up for some functions. Unclear on the exact science of it, but it's possibly worth remembering if your effects come in a little late when set in multiples of 30.

My Youtube - My Let's Plays - SoundCloud - My Website - My FTP - Forum

You have got to let the rhythm move you, move you. You have got to let the rhythm move your body to the beat.
0

User is online   Mark. 

  • Honored Donor
  • 2,300

#403

View PostJblade, on 17 May 2018 - 08:26 AM, said:

30 is equal to 1 second more or less, so 600 would be a minute.


Shouldn't it be 1800 = 1 minute
I know the math being taught these days is different than back in my day but... ;)
2

User is offline   Jblade 

  • 1,602

#404

it's been a long day and i'm ill, cut me some slack :P
0

User is offline   Micky C 

  • Honored Donor
  • 3,551

#405

I've seen the number 26 around in the past, but I can't really back that up with anything.

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   Trooper Dan 

  • Duke Plus Developer
  • 2,797

#406

View PostMicky C, on 17 May 2018 - 05:06 PM, said:

I've seen the number 26 around in the past, but I can't really back that up with anything.


26 was long believed to be the number of tics in a second, but it was later discovered that the correct number is actually 30.
0

User is offline   Mblackwell 

  • Evil Overlord
  • 818

#407

I believe there is something weird with 26, like they intended it to be a second (for some reason) and so some things internally are timed that way. Every old doc mentions 26, but Rusty and I figured out that was wrong when we introduced a wristwatch into the ATC AvP demo.

Music: The Rejected Applications (listen now)
EDuke32 || EDuke32 Wiki || Latest EDuke32 Snapshots
I'm getting too old for this shit...
0

User is online   Mister Sinister 

  • 379

#408

That's interesting to know. Thanks.
I have another question, but I guess it's pretty obvious. Is there a way to chage texts in menu? Stuff like "Select Episode" and "Select Difficulty"? My guess is it's hardcoded into the game code.
0

User is offline   Trooper Dan 

  • Duke Plus Developer
  • 2,797

#409

View PostMblackwell, on 17 May 2018 - 08:25 PM, said:

I believe there is something weird with 26, like they intended it to be a second (for some reason) and so some things internally are timed that way. Every old doc mentions 26, but Rusty and I figured out that was wrong when we introduced a wristwatch into the ATC AvP demo.


It seems likely that Todd Replogle believed that there were 26 tics in a second. Either that or he had a strange fascination with that number, considering how often that count is used in GAME.CON EDIT: Also a 52 count is used to end the game when killing a boss. Why make it a multiple of 26? If you know that there are 30 tics in a second, why not just make it an even 2 seconds?

Did DOS Duke run slightly slower than EDuke? Is it possible that there really were 26 tics in a second back in '96?


This post has been edited by Trooper Dan: 18 May 2018 - 04:05 AM

0

User is offline   Hendricks266 

  • EDuke32 Senior Developer
  • 5,948

  #410

The source code directly claims that there are 26 tics in a second but due to how integer division works in code it actually ends up being 30.
2

User is offline   RichardStorm 

  • 166

#411

I also rememeber DOS version going slower than windows engines like jduke and eduke
0

User is offline   Drek 

  • 1,223

#412

View PostLAW, on 21 March 2018 - 01:01 AM, said:

My conclusion is: the map was hex-edited, just as the later Roch maps.


Why and how were the Roch maps hex-edited?
0

Share this topic:


  • 14 Pages +
  • « First
  • 12
  • 13
  • 14
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks are property of their respective owners. Instead of reading this text, you could be playing Ion Maiden! ;) © 2018 Voidpoint, LLC

Enter your sign in name and password


Sign in options