Number of Shots at New Game

Completed patches for Keen2.
Post Reply
User avatar
XkyRauh
Posts: 1110
Joined: Sun Aug 31, 2003 9:14 pm
Location: San Diego, California

Number of Shots at New Game

Post by XkyRauh » Thu Sep 08, 2005 5:18 am

As found by Andy:

This patch lets you set the number of shots that Keen starts with at the beginning of a new game. This sample has him starting with a single shot.

Keen 2:

Code: Select all

%ext ck2
%version 1.31

%patch $8AA2  $01 $00

%end
Andy also added:

The Keen engine only checks whether the number of shots is zero or not; otherwise it subtracts one. So (due to the behaviour of signed 16-bit integers), if Keen has -1 shots, after shooting he will have -2, then -3, and so on up until -32768. If he then shoots once more, he will have +32767 shots, which will then reduce to zero.
Needless to say that this total number of shots (65535) is practically unlimited.

Snaily pointed out:

Assuming you fired four shots per seconds, you'd have to be mashing those buttons for over four and a half hours {to run out of ammo}. That's one amazing attention span.

Post Reply