Page 1 of 1

Raygun pickup gives how much ammo?

Posted: Thu Sep 08, 2005 4:55 am
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.

Posted: Thu May 27, 2010 10:23 am
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'

Posted: Thu May 27, 2010 4:32 pm
by shikadi
can raygun (and ammoclips) give both points and ammo?

and if that is possible, is it possible for anks and keycards?

Posted: Fri May 28, 2010 4:15 am
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.

Posted: Fri May 28, 2010 2:56 pm
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.

Posted: Tue Jun 22, 2010 9:35 am
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