SUPPORT ACCOUNT CLANS
Welcome, Unregistered.
 

Thread: Lonjaxson's Smooth [v1.5] (3/19/11)

Page 1 of 8 12345 ... LastLast
Results 1 to 20 of 157
  1. #1
    Offline
    Account Icon
    Join Date
    Sep 2009
    Location
    Duluth, MN, USA
    Posts
    2,530

    Lonjaxson's Smooth [v1.5] (3/19/11)

    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

    1.5: now compatible with BardUI++ 1.20
    1.4: Now compatible with the BardUI++ minimap.
    1.3: Changed halflife mod option to a textbox for more accurate customization, should now be fully compatible with MiniUI and Bang! Misclick Master
    1.2: Updated for 2.0, added mod option to disable smoothing, added mod option to change the halflife (amount of smooth), added mod option for minimap smoothing
    1.1: Added icon (feel free to make a better one), added link, now auto-updatable, now compatible with Bang! Misclick Master
    1.0: Initial release


    Known issues, incompatibilities, etc.
    • 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.
    To do
    • Add mod-options to disable the mod
    • Add 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
    Download
    Last edited by LonJAXsoN; 03-19-2011 at 11:05 PM.

  2. #2
    Offline
    Senior Game Master Account Icon
    Join Date
    Sep 2009
    Posts
    3,037
    I've been waiting for this! And then I saw this

    Not compatible with MiniUi (yet).
    And then I was this: FFFFFFFFFUUUUUUUUUUU~~~~~~~~~~

  3. #3
    Offline
    Account Icon
    Join Date
    Sep 2009
    Location
    Duluth, MN, USA
    Posts
    2,530
    it will be compatible as soon as I figure out how to edit miniui's minimap code

  4. #4
    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.

  5. #5

  6. #6
    Offline
    Account Icon
    Join Date
    Sep 2009
    Location
    Duluth, MN, USA
    Posts
    2,530
    yeah miniui is pretty much a deal breaker for most people... including me. i'll get that working asap.

    thanks :-)

  7. #7
    Offline
    Account Icon
    Join Date
    Sep 2009
    Location
    Salvador/Brazil
    Posts
    1,209
    Wow, as soon as your put a MiniUI compatibility, I'll start to use that ^^ I love smooth.

  8. #8
    nice
    Last edited by Jarge92; 11-26-2010 at 05:33 AM.

  9. #9
    Offline
    Senior Game Master Account Icon
    Join Date
    Sep 2009
    Posts
    3,037
    Quote Originally Posted by LonJAXsoN View Post
    yeah miniui is pretty much a deal breaker for most people... including me. i'll get that working asap.

    thanks :-)
    When can we expect it?

  10. #10
    Offline
    Account Icon
    Join Date
    Aug 2009
    Location
    Luxor
    Posts
    217
    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.

  11. #11
    Offline
    Account Icon
    Join Date
    Sep 2009
    Location
    Duluth, MN, USA
    Posts
    2,530
    Quote Originally Posted by qazqazqaz View Post
    When can we expect it?
    hopefully sometime today... after i get some sleep. black friday kept me up all night.

    Quote Originally Posted by InSideR View Post
    Well done bro, but u should really concider of compatibility:

    SNIP

    In my case the error can occur because og Bang! Missclick Master.
    Yeah, that mod deals with the minimap. I'll definitely look into that... but miniUI compatibility is definitely higher priority.

  12. #12
    I have a suggestion:
    change:
    Code:
    <editfile name="ui/game.interface">
    to:
    Code:
    <editfile name="ui/game.interface" condition = "not 'MiniUI'">
    this is so that it only changes the code in game.interface when miniUI is not enabled

    then add the miniUI minimap code:

    Code:
    <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>
    I did exactly this but am currently unable to test this
    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!

  13. #13
    Quote Originally Posted by JillSandwich View Post
    I did exactly this but am currently unable to test this
    link: http://dl.dropbox.com/u/4902702/smooth_edited.honmod
    if it works, feel free to use the code
    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
    Quote Originally Posted by DrScout
    For the mods: Stop being racistic and stop moving/deleting threads without reasoning.
    but then
    Quote Originally Posted by DrScout
    While, of course, I hate russians with all of my passion and love...

  14. #14
    Offline
    Senior Game Master Account Icon
    Join Date
    Sep 2009
    Posts
    3,037
    There is a scroll speed option in hon, increase it.

  15. #15
    Quote Originally Posted by Sucker` View Post
    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
    i probably did something wrong,

    well at least we know that the minimap code is in miniminimap.package

    Playing StarCraft II? DotA? HoN? LoL? Diablo III? Or just finding a community to post and chill in? Visit www.fanaticnetworks.com now!

  16. #16
    Quote Originally Posted by qazqazqaz View Post
    There is a scroll speed option in hon, increase it.
    you missunderstood me. i know that i can change the scroll speed, but i want to reduce the time, the camera moves after you have stopped touching the screen border. (related to the movement this mod implements)
    At first he was like
    Quote Originally Posted by DrScout
    For the mods: Stop being racistic and stop moving/deleting threads without reasoning.
    but then
    Quote Originally Posted by DrScout
    While, of course, I hate russians with all of my passion and love...

  17. #17
    would be cool to see a video of how this mod works.

  18. #18
    Offline
    Account Icon
    Join Date
    Aug 2009
    Location
    Luxor
    Posts
    217
    LonJAXsoN,
    I've just fixed the compatibility of this mod with Bang! Missclick Master. The code is tested and works great. Feel free to use it.

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <modification
    	application="Heroes of Newerth"
    	appversion="-1.*"
    	mmversion="1.3"
    	name="Lonjaxson's Smooth"
    	version="1.0"
    	description="This will make any keyboard camera movements smooth. This version is designed for the default UI."
    	author="Lonjaxson"
    	weblink=""
    	updatecheckurl=""
    	updatedownloadurl=""
    >
    
    	<copyfile name="ui/smooth.package" />
    	
    	<editfile name="ui/game.interface" condition="not 'Bang! Misclick Master'">
    		<find><![CDATA[<map x="0.5h" y="-0.5h" width="23.2h" height="23.2h" align="left" valign="bottom" name="minimap" texture="!minimap_texture" watch="Minimap" onclick="If(MinimapClick(param0, param1), BreakDrag());" onrightclick="If(MinimapRightClick(param0, param1), BreakDrag());"/>]]></find>
    		<replace><![CDATA[<!--<map x="0.5h" y="-0.5h" width="23.2h" height="23.2h" align="left" valign="bottom" name="minimap" texture="!minimap_texture" watch="Minimap" onclick="If(MinimapClick(param0, param1), BreakDrag());" onrightclick="If(MinimapRightClick(param0, param1), BreakDrag());"/>-->
    						<map x="0.5h" y="-0.5h" width="23.2h" height="23.2h" align="left" valign="bottom" 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>
    				
    		<find><![CDATA[<map x="-0.5h" y="-0.5h" width="23.2h" height="23.2h" align="right" valign="bottom" name="minimap_altview" texture="!minimap_texture" watch="Minimap" onclick="If(MinimapClick(param0, param1), BreakDrag());" onrightclick="If(MinimapRightClick(param0, param1), BreakDrag());"/>]]></find>
    		<replace><![CDATA[<!--<map x="-0.5h" y="-0.5h" width="23.2h" height="23.2h" align="right" valign="bottom" name="minimap_altview" texture="!minimap_texture" watch="Minimap" onclick="If(MinimapClick(param0, param1), BreakDrag());" onrightclick="If(MinimapRightClick(param0, param1), BreakDrag());"/>-->
    						<map x="-0.5h" y="-0.5h" width="23.2h" height="23.2h" align="right" valign="bottom" name="minimap_altview" 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>
    	
    	<editfile name="ui/game.interface">
    		<find><![CDATA[	<include file="tooltip_team_colors.package"/>]]></find>
    		<insert position="after"><![CDATA[
    	<include file="smooth.package"/>]]></insert>	
    	</editfile>
    	
    	
    	
    	<editfile name="ui/game.interface" condition="'Bang! Misclick Master'">
    		
    		<find><![CDATA[<map x="0.5h" y="-0.5h" width="23.2h" height="23.2h" align="left" valign="bottom" name="minimap" texture="!minimap_texture" watch="Minimap" onclick="If(MinimapClick(param0, param1), BreakDrag());" onrightclick="If(MinimapRightClick(param0, param1), BreakDrag());"
    			onmouseover=" If(bang_MCM_Minimap_Enabled and !bang_MCM_Minimap_Sleeping,  Split( Set(cg_enableMinimapRightclick, 0), Set(bang_MCM_Minimap_Sleeping, 1), CallEvent('bang_MCM_MapBiatch1') ) ); "	
    			onmouseout="If(bang_MCM_Minimap_Enabled, Split(Set(bang_MCM_Minimap_Sleeping, 0), Set(cg_enableMinimapRightclick, 0)));"
    		/>]]></find>
    		<replace><![CDATA[<map x="0.5h" y="-0.5h" width="23.2h" height="23.2h" align="left" valign="bottom" name="minimap" texture="!minimap_texture" watch="Minimap" onclick="Set(cg_cameraSmoothing,0); If(MinimapClick(param0, param1), BreakDrag());" onrightclick="If(MinimapRightClick(param0, param1), BreakDrag());"
    			onmouseover="If(bang_MCM_Minimap_Enabled and !bang_MCM_Minimap_Sleeping,  Split( Set(cg_enableMinimapRightclick, 0), Set(bang_MCM_Minimap_Sleeping, 1), CallEvent('bang_MCM_MapBiatch1') ) ); "	
    			onmouseout="If(bang_MCM_Minimap_Enabled, Split(Set(bang_MCM_Minimap_Sleeping, 0), Set(cg_enableMinimapRightclick, 0), Set(cg_cameraSmoothing,1)));"/>]]></replace>
    		
    		<find><![CDATA[<map x="-0.5h" y="-0.5h" width="23.2h" height="23.2h" align="right" valign="bottom" name="minimap_altview" texture="!minimap_texture" watch="Minimap" onclick="If(MinimapClick(param0, param1), BreakDrag());" onrightclick="If(MinimapRightClick(param0, param1), BreakDrag());" 
    			onmouseover=" If(bang_MCM_Minimap_Enabled and !bang_MCM_Minimap_Sleeping,  Split( Set(cg_enableMinimapRightclick, 0), Set(bang_MCM_Minimap_Sleeping, 1), CallEvent('bang_MCM_MapBiatch2') ) ); "	
    			onmouseout="If(bang_MCM_Minimap_Enabled, Split(Set(bang_MCM_Minimap_Sleeping, 0), Set(cg_enableMinimapRightclick, 0)));"
    		/>]]></find>
    		<replace><![CDATA[<map x="-0.5h" y="-0.5h" width="23.2h" height="23.2h" align="right" valign="bottom" name="minimap_altview" texture="!minimap_texture" watch="Minimap" onclick="Set(cg_cameraSmoothing,0); If(MinimapClick(param0, param1), BreakDrag());" onrightclick="If(MinimapRightClick(param0, param1), BreakDrag());" 
    			onmouseover="If(bang_MCM_Minimap_Enabled and !bang_MCM_Minimap_Sleeping,  Split( Set(cg_enableMinimapRightclick, 0), Set(bang_MCM_Minimap_Sleeping, 1), CallEvent('bang_MCM_MapBiatch2') ) ); "
    			onmouseout="If(bang_MCM_Minimap_Enabled, Split(Set(bang_MCM_Minimap_Sleeping, 0), Set(cg_enableMinimapRightclick, 0), Set(cg_cameraSmoothing,1);)))"/>]]></replace>
    	</editfile>
    
    	<editfile name="ui/game.interface">
    		<find><![CDATA[	<include file="tooltip_team_colors.package"/>]]></find>
    		<insert position="after"><![CDATA[
    	<include file="smooth.package"/>]]></insert>	
    	</editfile>
    
    </modification>
    .honmod download

  19. #19
    Offline
    Account Icon
    Join Date
    Sep 2009
    Location
    Duluth, MN, USA
    Posts
    2,530
    haha you guys are writing the mod for me. I'll be updating it soon.

  20. #20
    Offline
    Account Icon
    Join Date
    Sep 2009
    Location
    Duluth, MN, USA
    Posts
    2,530
    Quote Originally Posted by JillSandwich View Post
    I have a suggestion:
    change:
    Code:
    <editfile name="ui/game.interface">
    to:
    Code:
    <editfile name="ui/game.interface" condition = "not 'MiniUI'">
    this is so that it only changes the code in game.interface when miniUI is not enabled

    then add the miniUI minimap code:

    Code:
    <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>
    I did exactly this but am currently unable to test this
    link: http://dl.dropbox.com/u/4902702/smooth_edited.honmod
    if it works, feel free to use the code
    i actually tried that, but i couldn't get it to work. The miniminimap.package is applied through mini_hub.package...

    Quote Originally Posted by Sucker` View Post
    you missunderstood me. i know that i can change the scroll speed, but i want to reduce the time, the camera moves after you have stopped touching the screen border. (related to the movement this mod implements)
    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!


    Quote Originally Posted by revan_xp View Post
    would be cool to see a video of how this mod works.
    I'll do it tonight

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •