Raygun pickup gives how much ammo?

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

Raygun pickup gives how much ammo?

Post by XkyRauh »

As posted by KeenRush:
And here's the patch for Keen 3 to change that normal gun ammo. I haven't searched the 1 ammo clip, and probably won't. This changes the value of that gun that normally gives you 5 shots.

Code: Select all

%ext ck3
%version 1.31

# Give Keen only 2 ammo!
%patch $7ACF $02

%end
Again, you can use any value between -128 and +127.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

Somewhat more extensive patches considering someone asked about making things remove points, etc.

The ammo and the raygun give Keen 1 and 5 of something. (Shots) We can change both how much and what Keen gets. In the patches below the bullet gives $01 $00 and the raygun $05. A negative number will TAKE AWAY stuff ($FF $FF\$FF = -1 shot for example.) Change both these to change the AMOUNT. Change the byte before $9D to change WHAT is given (Notice both of these are $48, ammo):

Code: Select all

#What to give
$14: Joystick  $16: Vaccum      $18: Whiskey  $1A: Pogo
$1C: Battery   $1E: Yellow card $20; Red card $22: Green card 
$24: Blue card $26: Level 1     $28: Level 2  $2A: Level 3
$2C: Level 4   $2E: Level 5     $30: Level 6  $32: Level 7
$34: Level 8   $36: Level 9     $38: Level 10 $3A: Level 11
$3C: Level 12  $3E: Level 13    $40: Level 14 $42: Level 15
$44: Level 16  $46: Lives       $48: Ammo     $4A: Points

#What  single bullet gives:
%patch $7BD2 $81 $06 $48 $9D $01 $00 $EB $CB

#What raygun gives:
%patch $7ACD $48 $9D $05


#Set single bullet to give ankh time 
#Here 10s (10 * 144 = $06C0) 
%patch $7BD2 $81 $06 $46 $99 $C0 $06 $EB $CB

EDIT: Also, it might be wise to change the title of this topic possibly to something more general like 'Raygun and single bullet'
User avatar
shikadi
Posts: 147
Joined: Fri Feb 08, 2008 9:11 pm
Location: belgium

Post by shikadi »

can raygun (and ammoclips) give both points and ammo?

and if that is possible, is it possible for anks and keycards?
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

The Keen code is as conservative as possible; each pickup gives only one item, that is, the code has space for just one 'give this' (unless we remove the pickup sound, then it might be possible to give two things at once.)

We can *change* what the keycards and Ankh give, but not make them give two things, at least not without some more involved patching.
User avatar
shikadi
Posts: 147
Joined: Fri Feb 08, 2008 9:11 pm
Location: belgium

Post by shikadi »

levellass wrote: (unless we remove the pickup sound, then it might be possible to give two things at once.)
then i don't care about that sounds, i play without sound anyway =p.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

I stand corrected! After a bit of fiddling I managed to get rayguns, ammo and Ankh to give points when got (But not keycards, does anyone (Lemm!) know where the got keycard code is?) find the relevant patches here: viewtopic.php?p=15187
Post Reply