Keen: Modding Forum Index Keen: Modding
All the modding info you'll ever need
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Raygun pickup gives how much ammo?

 
Post new topic   Reply to topic    Keen: Modding Forum Index -> Keen Must Die!: Patches
View previous topic :: View next topic  
Author Message
XkyRauh
Deputy Administrator


Joined: 31 Aug 2003
Posts: 1045
Location: San Diego, California

PostPosted: Thu Sep 08, 2005 4:55 am    Post subject: Raygun pickup gives how much ammo? Reply with quote

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
View user's profile Send private message Send e-mail AIM Address MSN Messenger
levellass



Joined: 11 Oct 2006
Posts: 1404
Location: Ngaruawahia New Zealand

PostPosted: Thu May 27, 2010 10:23 am    Post subject: Reply with quote

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
View user's profile Send private message
shikadi



Joined: 08 Feb 2008
Posts: 143
Location: belgium

PostPosted: Thu May 27, 2010 4:32 pm    Post subject: Reply with quote

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

and if that is possible, is it possible for anks and keycards?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
levellass



Joined: 11 Oct 2006
Posts: 1404
Location: Ngaruawahia New Zealand

PostPosted: Fri May 28, 2010 4:15 am    Post subject: Reply with quote

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
View user's profile Send private message
shikadi



Joined: 08 Feb 2008
Posts: 143
Location: belgium

PostPosted: Fri May 28, 2010 2:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail MSN Messenger
levellass



Joined: 11 Oct 2006
Posts: 1404
Location: Ngaruawahia New Zealand

PostPosted: Tue Jun 22, 2010 9:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Keen: Modding Forum Index -> Keen Must Die!: Patches All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group