|
|
Lonjaxson's Smooth
When you make changes in the mod options, you have to open the F6 menu once more after you close it for the changes to apply.
If anyone knows how to fix this, let me know.
This mod applies cg_cameraSmoothing to any camera movements done with the keyboard and mouse. As a result, your camera doesn't make any sudden movements. Make sure you adjust your scroll speed to your liking!
Video example: http://www.youtube.com/watch?v=3aTMN6s0mzs
Thanks freestyler7 for putting that together.
Thanks to bangerz and biomass_se for helping me make my first mod! Thanks to AsiaPingPong, Quzzap, revan_xp, and leMi for making mods so I could look at your code
Changelog
Known issues, incompatibilities, etc.
To do
- When you click the minimap, you must remove the mouse from the map to resume smoothing.
- When you make changes in the mod-options, you have to open the F6 menu once more after you close it for the changes to apply.
- Can't move the camera while the game is paused.
Download
Add mod-options to disable the modAdd mod-option to change the rate at which the camera slows down (right now it seems to take about 5 seconds for the camera to fully stop after you stop moving the camera.)Add mod-option to enable/disable minimap smoothing- Add hotkey to disable the mod
Last edited by LonJAXsoN; 03-19-2011 at 11:05 PM.
I've been waiting for this! And then I saw this
And then I was this: FFFFFFFFFUUUUUUUUUUU~~~~~~~~~~Not compatible with MiniUi (yet).
it will be compatible as soon as I figure out how to edit miniui's minimap code
Sounds interesting, i dont really have any problems with the camera, but when mini ui support comes around il give it a shot. Yeah please make a mod options disable, i hate having to re apply mods to enable/disable, so much easier in mod options if i am still tweaking stuff.
Thanks and good luck with your first mod.
yeah miniui is pretty much a deal breaker for most people... including me. i'll get that working asap.
thanks :-)
Wow, as soon as your put a MiniUI compatibility, I'll start to use that ^^ I love smooth.
Well done bro, but u should really concider of compatibility:
In my case the error can occur because og Bang! Missclick Master.
Last edited by InSideR; 11-26-2010 at 05:52 AM.
I have a suggestion:
change:
to:Code:<editfile name="ui/game.interface">
this is so that it only changes the code in game.interface when miniUI is not enabledCode:<editfile name="ui/game.interface" condition = "not 'MiniUI'">
then add the miniUI minimap code:
I did exactly this but am currently unable to test thisCode:<editfile name="ui/miniminimap.package" condition = "'MiniUI'"> <find><![CDATA[<map name="minimap" texture="!minimap_texture" watch="Minimap" onclick="If(MinimapClick(param0, param1), BreakDrag());" onrightclick="If(MinimapRightClick(param0, param1), BreakDrag());"/>]]></find> <replace><![CDATA[map name="minimap" texture="!minimap_texture" watch="Minimap" onclick="Set(cg_cameraSmoothing,0); If(MinimapClick(param0, param1), BreakDrag());" onrightclick="If(MinimapRightClick(param0, param1), BreakDrag());" onmouseout="Set(cg_cameraSmoothing,1);"/>]]></replace> </editfile>
link: edited out due to problems
if it works, feel free to use the code
Last edited by JillSandwich; 12-02-2010 at 01:09 PM.
Playing StarCraft II? DotA? HoN? LoL? Diablo III? Or just finding a community to post and chill in? Visit www.fanaticnetworks.com now!
My Minimap is disabled, when i use your version. So it doesnt really work for mini ui users, at least not for me.
Is it possible to make the camera swing less time?
right now you touch the screen and it moves like 0,5 seconds. i would like to see it a bit more faster. A option to cusomize it would be nice.
so far gj
At first he was like
but thenOriginally Posted by DrScout
Originally Posted by DrScout
Playing StarCraft II? DotA? HoN? LoL? Diablo III? Or just finding a community to post and chill in? Visit www.fanaticnetworks.com now!
i actually tried that, but i couldn't get it to work. The miniminimap.package is applied through mini_hub.package...
Yeah, I thought of this while i was testing it. I'll add it to the to-do list... if anybody figures it out, let me know!
I'll do it tonight
Strange. I fixed those <find><![CDATA[ ]]> which werent working with Missclick Master just by adding right replacements for it and, ofc, conditions for them. Either if I apply Smooth with MCM or without MCM, this mod works on my PC in both cases.
As you could understood, i haven't changed the engine of mod provided in .package files. It seems to be ok. The reason of incompatibility of your mod with MCM and MiniUI is in your mod.xml which has to contain right replacements for minimap. Anyway, I'd appreciate if someone test my version of LonJAXsoN's mod and tell us if it works.
LonJAXsoN, I can try to help you to get your mod to work with MiniUI (if you'd like ofc). PM me in that case please. Anyway, the idea of the mod is great and I bet you'll sovle all the issues.
Last edited by LonJAXsoN; 11-26-2010 at 08:20 PM.
There is a scroll speed option in hon, increase it.
At first he was like
but thenOriginally Posted by DrScout
Originally Posted by DrScout