Search Results
Searched for posts by Pent in all forums

Showing results 211 - 217 out of 217 total
Modify your search
Posted by Pent, Dec 24, 2013 at 10:52 pm
Warheck wrote
Guys I'm bored. Who wants to go and build a new dungeon in the project? Azba? Anybody?
I'll put the location in and do any necessary coding.
Got any ideas for new locations / themes?

I think any additional stages should be created with extreme caution so as not to affect game balance (as I'm sure you know from CLIVAN). If you were to create a new dungeon, it should be an end-game area, and as such, I suggest you finally build a destination for Oree's silver portal. Perhaps it could be a portal to the real world? I always sort of assumed that was the case, since it would explain the origin of Oree's can of pepsi, and I guess I just liked the idea. You could use the Pure Mass of Bill's Will as the boss if you buff it up a little, since the whole theme of Microsoft and Pepsi being evil seems quite prevalent in everything the devs wrote in the Holy Stack.
Posted by Pent, Dec 14, 2013 at 11:53 pm
chaostrom wrote
That explains why trapped doors do less damage from a diagonal too, I guess.

If that's true for doors then it's true for all explosions, since the door trap is just a regular explosion. Some quick tests in wizard mode with kamikaze dwarves and wands of fireballs seem to prove that this is the case.
Posted by Pent, Dec 14, 2013 at 12:35 am
capristo wrote
If I also detect the walls/tunnels, that would let me easily place myself in a good zapping position...

Brilliant. Now I just need to learn how to properly Sci-Talk so I can always have high enough int for this by the time I get to the Enner.
Posted by Pent, Dec 14, 2013 at 12:29 am
When trying to kill the Enner via melee (a mistake I make far too often), don't stand next to him horizontally or vertically; you'll take less damage if you stand next to him diagonally.

Here's the formula for the strength of his scream:
int ScreamStrength = int(70 / (hypot(GetPos().X - x, GetPos().Y - y) + 1));

Since it calculates your distance from him based on hypotenuse, standing diagonally will count as being 1 square away (even though you can still attack him diagonally), causing the strength of his scream to be halved.

Ex.
E = Enner
P = Player

###
#EP
###

Here there is no hypotenuse, so the scream strength is (70/(0+1)) = 70.

E = Enner
P = Player

##P
#E#
###

Here the hypotenuse is 1, so the scream strength is (70/(1+1)) = 35.

I tested it out in wizard mode, and with no armor you take around 24 damage when at an angle and 32 damage when directly next to him (of course this doesn't matter at low End since vitals like your head and groin can be killed instantly).
Posted by Pent, Dec 13, 2013 at 9:39 pm
I don't think there are any materials you aren't allowed to detect, but if you have less than 20 intelligence or so then detecting the wall material will scramble your brain since there's so much of the material:
Quote
An enormous burst of geographical information overwhelms your consciousness. Your mind cannot cope with it and your memories blur.
Posted by Pent, Dec 13, 2013 at 4:31 pm
capristo wrote
I'll believe it when I see the save files...

You can't spawn two fresh minefields on one playthrough, but you can find a bones file with the minefield in it, then have the minefield spawn normally on another floor.
Posted by Pent, Dec 13, 2013 at 11:28 am
JoKe wrote
You're right, the explosion strength is very much random. It can be anything from the door booby trap level to something akin to the Legifer blast strength. Judging purely by the graphic size and apparent damage here, a code dive would be needed for real values.

This seems to be the code relevant to Turox's explosion effect. I'm not sure how the explosion power translates to damage, but for anyone who does know how this stuff works, compare Turox's:
10 + RAND() % 100

to Legifer's:
(300 + Max(GetRelation(), 0)) >> 3

and Wand of Fireballs/Holy Banana:
75 + RAND() % 25 - RAND() % 25

If I understand this correctly* then Turox's explosion power is (10 + (0-99)), for a range of 10-109, while Legifer's is ((300 + (0-1000))/ 8 ), with a range of 37-162, and Fireball's (75 + (0-24) -- (0-24)), range 51-99, so Legifer's blast still has the potential to be the most powerful of the non-gunpowder based explosions. It seems Turox can outperform a Wand of Fireballs, though the latter also has the highest minimum power, making it more reliable. Legifer's explosion power is directly related to your relation with him, which is nice, as it's reliably powerful should you be in good standing and it's not as volatile as a wand. I'm not sure how gunpowder based explosives work since they're power is based on volume; I might look into that later.

UPDATE: Did more digging:
void level::Explosion(character* Terrorist, const festring& DeathMsg, v2 Pos, int Strength, truth HurtNeutrals)
{
  static int StrengthLimit[6] = { 500, 250, 100, 50, 25, 10 };
  uint c;
  int Size = 6;

  for(c = 0; c < 6; ++c)
    if(Strength >= StrengthLimit[c])
    {
      Size = c;
      break;
    }
Exp->RadiusSquare = (8 - Size) * (8 - Size);
There seem to be six different sizes of explosion each with different radii based on the Strength cutoffs listed above. Wand of Fireballs will always have a Size value of 3, so the radius of its explosion is 5 squares. Turox can have an explosion radius ranging from 3-6 squares, and Legifer's ranging from 4-6.

As a side note, I find the formula for the Fireball's power kind of odd, as it would have been easier to simply use (50 + Rand() % 50), which would result in a range of 50-99, which is still within the same size restriction. Is that one point of Strength that important, or is there something I'm missing here?

FURTHER UPDATE: Figured out gunpowder and other explosive materials:
long material::GetTotalExplosivePower() const { return long(double(Volume) * GetExplosivePower() / 1000000); }

Turns out you just multiply the Volume and ExplosivePower (both set in the script files) and divide by a million.
For example, Veteran Kamikaze Dwarves have backpacks with a gunpowder volume of 30000. Gunpowder's explosive power is 15000.
(30000*15000)/1000000 = 450, giving their explosions a radius of seven squares. Big Mines have a gunpowder volume of 12500, so their explosion Strength is 187, and regular mines are 75. So a Veteran Kamikaze Dwarf is as powerful as six mines.

*I probably don't; any corrections from someone who does know what they're talking about are more than welcome.

EDIT: Cleaned up and edited out some mistakes since I initially misread the formula for Legifer's explosion.