| View previous topic :: View next topic |
| Author |
Message |
XkyRauh Deputy Administrator

Joined: 31 Aug 2003 Posts: 1045 Location: San Diego, California
|
Posted: Thu Sep 08, 2005 4:55 am Post subject: Raygun pickup gives how much ammo? |
|
|
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: |
%ext ck3
%version 1.31
# Give Keen only 2 ammo!
%patch $7ACF $02
%end
|
Again, you can use any value between -128 and +127. |
|
| Back to top |
|
 |
levellass
Joined: 11 Oct 2006 Posts: 1404 Location: Ngaruawahia New Zealand
|
Posted: Thu May 27, 2010 10:23 am Post subject: |
|
|
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: | #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' |
|
| Back to top |
|
 |
shikadi

Joined: 08 Feb 2008 Posts: 143 Location: belgium
|
Posted: Thu May 27, 2010 4:32 pm Post subject: |
|
|
can raygun (and ammoclips) give both points and ammo?
and if that is possible, is it possible for anks and keycards? |
|
| Back to top |
|
 |
levellass
Joined: 11 Oct 2006 Posts: 1404 Location: Ngaruawahia New Zealand
|
Posted: Fri May 28, 2010 4:15 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
shikadi

Joined: 08 Feb 2008 Posts: 143 Location: belgium
|
Posted: Fri May 28, 2010 2:56 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
levellass
Joined: 11 Oct 2006 Posts: 1404 Location: Ngaruawahia New Zealand
|
Posted: Tue Jun 22, 2010 9:35 am Post subject: |
|
|
| 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: http://keenmodding.org/viewtopic.php?p=15187 |
|
| Back to top |
|
 |
|