Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Wiremod Camera Bot

Loading...

Sign in or sign up now!
6,301
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 14, 2009

This is a camera bot I made in GMod using wiremod. It is programmed to follow you and hover over your player's left shoulder and aim where you aim. For more info go to:
http://www.wiremod.com/forum/contraptions-saves/12096-camera-bot.html

IMPORTANT NOTE: If you are making this yourself, make sure you use snap on tool and the expression is in the middle! The balance needs to be perfect because I haven't set up the interval components of the PID system of the rotation control. That's why the camera is parented!

*****The latest expression is at the above *****website

Here is the version 1 expression:

@name CameraBot
@persist E:entity TargAlt Zpos Epos:vector2 XY:vector2 TargPos:vector2
@persist AngP AngY AngR
@trigger none
interval(20)
if(first()) {E = entity():isWeldedTo()}

Zpos = E:pos():z()
Epos = vec2(E:pos())

TargPos = vec2(owner():right())*50 *-1 + vec2(owner():pos())
if(!owner():isCrouch())
{
TargAlt = owner():pos():z() + 100
}
else
{ TargAlt = owner():pos():z() + 50
}

Z = (TargAlt+100 - Zpos) * 10 + $Zpos * -200
XY =(TargPos - Epos) * 10 + $Epos * -200

ApplyForce = vec(XY,Z)

ApplyAng = ang()

AngP = E:elevation(owner():aimPos())
ApplyAng = ApplyAng:setPitch(-AngP * 10 + $AngP * -1000)

AngY = E:bearing(owner():aimPos())
ApplyAng = ApplyAng:setYaw(-AngY * 10 + $AngY * -1000)

AngR = E:angles():roll()
ApplyAng = ApplyAng:setRoll(-AngR * 10 + $AngR * -1000)

E:applyForce(ApplyForce)
E:applyAngForce(ApplyAng)

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (Teh1337bix)

  • how do you film in 1st person like that?

  • @TedThePenguin85 How would I not? Recorder, source or third party.

  • what do you use to record?

  • @cheatmaster702

    Source recorder.

  • @Teh1337bix Sorry not source recorder, this one I used a ZDsoft recorder or something. But then I switched to source recorder.

  • dude know what be assome for space build build one with a life support then you could go almost any were

  • @asdfg2560 Nice idea. But it would only work inside a planet or space station, so if you're travelling through space in a spaceship you would have to turn it off and attach it to something and only bring it out on a planet.

see all

All Comments (35)

Sign In or Sign Up now to post a comment!
  • Wow that is so cool

  • Do you have to download the Parenting because I can't find it?

  • This will be perfect for rp tv chanel

  • this would be perfect for my gmod film!

  • HEN YOU SAID STUPID SCROLL WHEEL IW WAS LIKE WHERE I CAN FIND THAT HAHA

  • is it possible for me to make it so it changes players?

  • umm is your wiremod version newer than mine? i got teh expression tool thingy i think umm i cant do anything

  • now thats epic for zombie survival

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more