predefined shooters

Discuss Chaos Strikes Back for Windows and Linux, an unofficial port of Chaos Strikes Back to PC by Paul Stevens, as well as CSBuild, an associated dungeon editor.

Moderator: Zyx

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Zyx
DSA Master
Posts: 2592
Joined: Mon Jun 05, 2000 1:53 pm
Location: in the mind
Contact:

predefined shooters

Post by Zyx »

About the question 23) in the CSBuild785 thread, I double-checked what Beowuuf said in his hextut manual, and there are 4 burnt torchs shooters. So, 3 of them could be used to shoot torchs in a different state. But I don't know if it would be easy for you to code.
Here are the code values given by the manual:

Hex (3rd/4th) Weapon 3rd byte of weapon
9/89
9 2 Torch (burnt out) 82
89 2 Torch (burnt out)
9 3 Torch (burnt out)
89 3 Torch (burnt out)



By the way, there seem to be a formula, at least from the range 9 10 to 9 1C, with a direct correspondance between the 3rd byte of the weapon and the two bytes of the shooter:

Hex (3rd/4th) Weapon 3rd byte of weapon
9 10 Dagger 88
89 10 89
9 11 8a
89 11 8b
9 12 8c
89 12 8d
9 13 8e
89 13 8f
9 14 90
89 14 91
9 15 92
89 15 93
9 16 94
89 16 95
9 17 96
89 17 97
9 18 98
89 18 99
9 19 9a
89 19 Arrow 9B
9 1A Slayer arrow 9C
89 1a 9d
9 1B Rock 9E
89 1B Poison dart 9F
9 1C Throwing star A0

So for example, a shooter of sticks (3rd byte A1), should have the following values: 89 1C.
Hypothesis:
89 1C stick A1
I am mentionning this because maybe you can make the existing code work for a greater range of weapons at no cost.

Note that the range of the formula cannot reach the 9 40 value, as it shoots a boulder, which is not a weapon:
Hex (3rd/4th) Weapon 3rd byte of weapon
9 40 Boulder 99
Post Reply

Return to “Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild”