Skip to content

Commit 2be7341

Browse files
committed
Added issue #7
1 parent 23cb1ae commit 2be7341

File tree

6 files changed

+22
-2
lines changed

6 files changed

+22
-2
lines changed

Build/Enhanced-Changes.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
Black Shades Enhanced v1.1.2 and Black Shades Revenge Mod v1.0.1
2+
- Fixed an issue where you could spam open the main menu by pressing ESC (z33ky:mainmenu-spam)
3+
- Fixed the shotgun's laser (z33ky:shotgun-laser)
4+
- Fix Sniper zoom orientation (z33ky:sniper-zoom-orientation)
5+
- Fixed an issue where the Sniper Rifle zooms out on idle (issue #7)
6+
- Revenge Mod: Fixed an issue where the sniper rifle dosen't zoom out on death.
7+
8+
Dev stuff:
9+
- The mods are now compilable on Linux! (z33ky:fix-linux)
10+
111
Black Shades Enhanced v1.1.1R and Black Shades Revenge Mod v1.0
212
- Added a seperate gameplay mod called "Revenge Mod", where the player has to defend themselves against assassins.
313

Build/blackshades.exe

0 Bytes
Binary file not shown.

Build/blackshades_revenge.exe

0 Bytes
Binary file not shown.

blackshades/Source/GameLoop.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@ static void DoSDLKey(Game *g, SDL_Event *event)
318318
}
319319

320320
mackey = sdlkeymap[event->key.keysym.sym];
321+
322+
if(mackey == MAC_CONTROL_KEY)
323+
press = SDL_GetModState() & (KMOD_LCTRL | KMOD_RCTRL);
321324

322325
if (mackey != -1) {
323326
index = mackey / 8;

blackshades_revenge/Source/GameLoop.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,9 @@ static void DoSDLKey(Game *g, SDL_Event *event)
318318
}
319319

320320
mackey = sdlkeymap[event->key.keysym.sym];
321+
322+
if(mackey == MAC_CONTROL_KEY)
323+
press = SDL_GetModState() & (KMOD_LCTRL | KMOD_RCTRL);
321324

322325
if (mackey != -1) {
323326
index = mackey / 8;

blackshades_revenge/Source/GameTick.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3719,9 +3719,12 @@ void Game::Tick(){
37193719

37203720
if(person[whichhit].type==zombietype)person[whichhit].maxhealth-=10;
37213721

3722-
/*
37233722
if(whichhit==0){
37243723

3724+
zoom=0;
3725+
3726+
/*
3727+
37253728
bulletstrength=1;
37263729
37273730
person[0].health=100;
@@ -3742,7 +3745,8 @@ void Game::Tick(){
37423745
37433746
SoundFX::inst()->playFX(gSampleSet[bodywhacksound], gLoc, 1.0);
37443747
//alSourcei(gSourceID[src_bodywhacksound], AL_BUFFER, gSampleSet[bodywhacksound]);
3745-
}*/
3748+
*/
3749+
}
37463750

37473751
person[whichhit].longdead=1;
37483752

0 commit comments

Comments
 (0)