Kudos for laysdra7265! Thank you for updating one of my favorite mods!
I too support the idea of creating a new topic for 1.7.10 version. I'd be glad to spread the word.
There's a minor visual bug with SS on Forge 1272 (with no other mods or MCPatcher): the hue/color of the HUD (hunger bar, HP bar etc) changes depending on block you are looking at, only on the 3rd person view, and it becomes transparent (see attachment).
----
For those who are seeing this topic for the 1st time, this is what Shoulder Surfing mod do:
----
EDIT:
I've just figured out what is affecting the HUD transparency, it's the block outliner/highlighter. If the cursor hovers a block, the HUD becomes blue, if you are not looking at a block or there's no block on cursor reach, the HUD becomes red.
Thanks for the update, you are awesome man, please fix the transparent bug.
I've just figured out what is affecting the HUD transparency, it's the block outliner/highlighter. If the cursor hovers a block, the HUD becomes blue, if you are not looking at a block or there's no block on cursor reach, the HUD becomes red.
Quote from EzerArchjump I've just figured out what is affecting the HUD transparency, it's the block outliner/highlighter. If the cursor hovers a block, the HUD becomes blue, if you are not looking at a block or there's no block on cursor reach, the HUD becomes red.
Quote from Talos91jumpThanks for the update, you are awesome man, please fix the transparent bug.
Quote from Talos91jumpThe 1.7.10 version is buggy, please someone fix it.
I believe this bug was caused by openGL blend function,but I don't know how to fix it.I haven't touched openGL before.
If someone know how to fix it please tell me.
code:
@SubscribeEvent
public void preRenderCrosshairs(RenderGameOverlayEvent.Pre event){
if(event.type == RenderGameOverlayEvent.ElementType.CROSSHAIRS){
if(!ShoulderSettings.IS_DYNAMIC_CROSSHAIR_ENABLED){
//note that the regular method will not be short circuited
return;
}
float tick = event.partialTicks;
GuiIngame g = ShoulderLoader.mc.ingameGUI;
ScaledResolution sr = new ScaledResolution(ShoulderLoader.mc, ShoulderLoader.mc.displayWidth, ShoulderLoader.mc.displayHeight);
I support ,too.
But the author of this mod has not reply my private message yet.:(
I think you could try to contact him via GitHub, as his last visit there was less than 1 month ago. I doubt he'll ever visit forum again, he hasn't logged in for 4 months.
ShoulderSurfing is a mod I created from scratch which replaces the default third person behind-the-body view (F5 key) with a more traditional "over the shoulder" view. This style of camera was pioneered by games like Capcom's Resident Evil 4.
This mod injects code into base files so it may not be compatible with other mods that modify the rendering engine.
This is also a forge mod, so it will require forge and go into the mods folder.
Hotkeys to move the camera a bit (default I-J-K-L)
Corrective cross-hair positioning
Dont show player head if camera gets too close to it
Download
Required: Forge universal files for your minecraft version (http://files.minecraftforge.net/)
The Forge files go into your minecraft jar.
Tested with Forge 9.10.0.828
Some pictures may display features from random mods I have installed.
Note that this mod only has the over-the-shoulder camera changes, nothing else!
More pics with some mods, different rotation/zoom settings, different FoV, etc.
Compatibility
Mods that heavily modify certain base classes may break this mod. Your forge client log will show if the code injection fails or not.
Installing
First install Forge universal files from files.minecraftforge.net. Make sure it is an up-to-date version for your version on minecraft.
Download ShoulderSurfing
Open the zip file
The JAR file needs to go into the MODS folder under Minecraft. Make sure to remove any previous versions from the COREMODS and MODS folder. This mod will not work if placed anywhere but the MODS folder!
Sharing / Modpacks
Feel free to use this in any mod pack you want, private or public! I would appreciate a link back to this page, but you don't have to
Todo/Known Issues
-Prevent camera from clipping into walls in tight spaces (fix behind-head raytrace)
Thanks
KeepCalm for excellent documentation on Forge, coremods, and ASM. If you want to learn it, look for this name!
Questions?
Just ask and I will do my best to answer. My free time is very limited so there may be a (huge) delay in replies, if I reply at all.
Please note this is new and I have only tested it locally so who knows what kind of bugs might creep up. I suggest testing with a clean minecraft jar and just forge, especially if you use a lot of things that edit base files.
I did find unofficial forks of the source code, but no official updates. Still, if you're claiming minecraft mod websites are giving an updated version, they're not.
The Meaning of Life, the Universe, and Everything.
Join Date:
8/6/2011
Posts:
245
Member Details
Hey laysdra just wanted to say thanks for keeping a great mod alive, also think a 1.8 port would be difficult? Please don't take that as sarcasm cause just reading that to me sounds like it. I mean with 1.8 do you think they changed enough code that it would be challenging to ya..... god just nvm Great work
Here is the release and source code:
ShoulderSurfing-1.7 Release
Edit.
Also thank you for helping the community in your first and second posts, not many people do so you deserve +1.
Kudos for laysdra7265! Thank you for updating one of my favorite mods!
I too support the idea of creating a new topic for 1.7.10 version. I'd be glad to spread the word.
There's a minor visual bug with SS on Forge 1272 (with no other mods or MCPatcher): the hue/color of the HUD (hunger bar, HP bar etc) changes depending on block you are looking at, only on the 3rd person view, and it becomes transparent (see attachment).
----
For those who are seeing this topic for the 1st time, this is what Shoulder Surfing mod do:
----
EDIT:
I've just figured out what is affecting the HUD transparency, it's the block outliner/highlighter. If the cursor hovers a block, the HUD becomes blue, if you are not looking at a block or there's no block on cursor reach, the HUD becomes red.
----
EzerArch.com | Armourer's Workshop Skins | MCHeli Content Pack Addons | Resource Packs | YouTube | G+ | Twitter
I've just figured out what is affecting the HUD transparency, it's the block outliner/highlighter. If the cursor hovers a block, the HUD becomes blue, if you are not looking at a block or there's no block on cursor reach, the HUD becomes red.
EzerArch.com | Armourer's Workshop Skins | MCHeli Content Pack Addons | Resource Packs | YouTube | G+ | Twitter
and i mean the shoulder surfing mod
I believe this bug was caused by openGL blend function,but I don't know how to fix it.I haven't touched openGL before.
If someone know how to fix it please tell me.
code:
@SubscribeEvent
public void preRenderCrosshairs(RenderGameOverlayEvent.Pre event){
if(event.type == RenderGameOverlayEvent.ElementType.CROSSHAIRS){
if(!ShoulderSettings.IS_DYNAMIC_CROSSHAIR_ENABLED){
//note that the regular method will not be short circuited
return;
}
float tick = event.partialTicks;
GuiIngame g = ShoulderLoader.mc.ingameGUI;
ScaledResolution sr = new ScaledResolution(ShoulderLoader.mc, ShoulderLoader.mc.displayWidth, ShoulderLoader.mc.displayHeight);
if(ShoulderLoader.mc.gameSettings.thirdPersonView == 0){
lastX = sr.getScaledWidth()*sr.getScaleFactor()/2;;
lastY = sr.getScaledHeight()*sr.getScaleFactor()/2;
bind(Gui.icons);
g.drawTexturedModalRect(sr.getScaledWidth()/2-7,
sr.getScaledHeight()/2-7,
0, 0, 16, 16);
}
else if(ShoulderLoader.mc.gameSettings.thirdPersonView == 1){
if(ShoulderRenderBin.projectedVector != null){
GL11.glEnable(GL11.GL_BLEND);
bind(Gui.icons);
if(ShoulderRenderBin.rayTraceInReach){
//GL11.glBlendFunc(GL11.GL_ONE_MINUS_DST_COLOR, GL11.GL_ONE_MINUS_SRC_COLOR);
GL14.glBlendColor(0.2f, 0.2f, 1.0f, 1.0f);
GL11.glBlendFunc(GL11.GL_ONE_MINUS_DST_COLOR, GL11.GL_CONSTANT_COLOR);
} else {
GL14.glBlendColor(1.0f, 0.2f, 0.2f, 1.0f);
GL11.glBlendFunc(GL11.GL_ONE_MINUS_DST_COLOR, GL11.GL_CONSTANT_COLOR);
}
float diffX = (ShoulderRenderBin.projectedVector.x - lastX) * tick;
float diffY = (ShoulderRenderBin.projectedVector.y - lastY) * tick;
g.drawTexturedModalRect((int)((lastX + diffX)/sr.getScaleFactor()-7), (int)((lastY + diffY)/sr.getScaleFactor()-7), 0, 0, 16, 16);
lastX = lastX + diffX;
lastY = lastY + diffY;
GL11.glDisable(GL11.GL_BLEND);
bind(Gui.icons);
GL11.glEnable(GL11.GL_BLEND);
GL14.glBlendColor(1.0f, 0.2f, 0.2f, 1.0f);
GL11.glBlendFunc(GL11.GL_ONE_MINUS_DST_COLOR, GL11.GL_CONSTANT_COLOR);
float diffX = (sr.getScaledWidth()*sr.getScaleFactor()/2 - lastX) * tick;
float diffY = (sr.getScaledHeight()*sr.getScaleFactor()/2 - lastY) * tick;
g.drawTexturedModalRect((int)((lastX + diffX)/sr.getScaleFactor()-7), (int)((lastY + diffY)/sr.getScaleFactor()-7), 0, 0, 16, 16);
lastX = lastX + diffX;
lastY = lastY + diffY;
}
}
/** SHORT-CIRCUIT THE RENDER */
if (event.isCancelable())
{
event.setCanceled(true);
}
}
I support ,too.
But the author of this mod has not reply my private message yet.:(
I think you could try to contact him via GitHub, as his last visit there was less than 1 month ago. I doubt he'll ever visit forum again, he hasn't logged in for 4 months.
EzerArch.com | Armourer's Workshop Skins | MCHeli Content Pack Addons | Resource Packs | YouTube | G+ | Twitter
Please UPdate to 1.7.2 or 1.7.10