1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.37 Bug Reporting thread
    Solutions and more information may already be available.

stop making "rpmspin prop" spin faster when accelerating

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by chris_lucas, Jun 30, 2014.

  1. chris_lucas

    chris_lucas
    Expand Collapse

    Joined:
    Dec 12, 2012
    Messages:
    1,445
    Title explains it.
     
  2. Mythbuster

    Mythbuster
    Expand Collapse

    Joined:
    Aug 11, 2012
    Messages:
    782
    Wat.


    RPMspin
    clue is in the name?...
    Spins with rpm, so itll spin faster when you accelerate.
    Duh.
     
  3. theshark

    theshark
    Expand Collapse

    Joined:
    Aug 5, 2012
    Messages:
    137
    why? the enginerpm rises when acclerating.
     
  4. chris_lucas

    chris_lucas
    Expand Collapse

    Joined:
    Dec 12, 2012
    Messages:
    1,445
    Is there anything else that makes a mesh spin?


    600th post!
     
  5. metalmuncher

    metalmuncher
    Expand Collapse

    Joined:
    Aug 6, 2012
    Messages:
    257
    wat.

    Its tied to engine rpm. Last time I looked a higher engine rpm is somewhat linked to higher speed or something.

    IIRC you can make any mesh rotate with any of the inputs...
     
  6. dkutch

    dkutch
    Expand Collapse

    Joined:
    Mar 24, 2013
    Messages:
    818
    God has an influence.
     
  7. chris_lucas

    chris_lucas
    Expand Collapse

    Joined:
    Dec 12, 2012
    Messages:
    1,445
    I'm changing my question is there a way to make a mesh spin.
     
  8. metalmuncher

    metalmuncher
    Expand Collapse

    Joined:
    Aug 6, 2012
    Messages:
    257
    Yes.
    Code:
    local M = {}
    
    local function init()
    	electrics.values['spinmerightroundbaby'] = 0
    end
    
    local function updateGFX(dt)
        electrics.values['spinmerightroundbaby'] = (electrics.values['spinmerightroundbaby'] +  (dt * 100)) % 360
    end
    
    -- public interface
    M.updateGFX = updateGFX
    M.init      = init
    return M
    
    put into vehiclename/lua/luafilenamehere.lua. set a prop to use 'spinmerightroundbaby' as input source.
     
  9. chris_lucas

    chris_lucas
    Expand Collapse

    Joined:
    Dec 12, 2012
    Messages:
    1,445
    Thanks
     
  10. Davidbc

    Davidbc
    Expand Collapse

    Joined:
    Mar 20, 2013
    Messages:
    1,332
    Epic .
     
  11. AR162B

    AR162B
    Expand Collapse

    Joined:
    Aug 11, 2013
    Messages:
    831
    Is there a way to get a spotlight rotating? Putting a value or 'spinmerightroundbaby' under 'rotation' doesn't seem to make any difference, and spinmerightroundbaby as a function for a spotlight also doesn't.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice