Tomb Raider Forums  

Go Back   Tomb Raider Forums > Tomb Raider Series > Tomb Raider II

Reply
 
Thread Tools
Old 22-07-19, 19:15   #11
RequiredField
Member
 
RequiredField's Avatar
 
Joined: May 2018
Posts: 63
Default

Quote:
Originally Posted by Maverin View Post
Very interesting. Any reason as to why they coded the shotgun that way?
I'm guessing it's easier to override one weapon's behavior to shoot more than 1 bullet and override the displayed ammo counter logic for that one weapon than to add exceptions to a core shooting logic - less possibilities of breaking some core concepts.
Keep in mind that I haven't yet reversed the game's executable to find out how they really implemented it. That's my guess because that's what I'd do if I was to write a program. A bit more object-oriented approach rather than having a one giant blob handles everything.

Also...
There may be some specific occurrences like setting the shotgun ammunition number manually via a memory editor where it's not a multiplication of 6 - in this case IIRC it'll still show the number rounded up to a multiple of 6.
At least that's what I remember when messing around with Cheat Engine - set the value to something between 1 - 6 and the counter will still show it as 1.
Of course in this case when you have less than 6 "true" bullets, that one shot you can afford will use less than 6 - maybe the only case it does that?
RequiredField is offline   Reply With Quote
Old 25-07-19, 08:44   #12
Kirishima
Member
 
Joined: Oct 2011
Posts: 757
Default

Quote:
Originally Posted by Arsunt View Post
65535 for every weapon.
Nevertheless shotgun can display 9422 maximum, because its displayed ammo divided by 6. I mean... technically in the program code shotgun shell has 6 shots inside it, and shotgun makes all 6 shots at once.
That makes sense. Answers my question as to why the shotgun was always given less ammo when using an all weapons cheat, at least on the ps1 versions.
Kirishima is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 11:36.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Tomb Raider Forums is not owned or operated by CDE Entertainment Ltd.
Lara Croft and Tomb Raider are trademarks of CDE Entertainment Ltd.