+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: E2 Physgun Buildmode [Simple Version]

  1. #1
    Wire Noob MPAP25438's Avatar
    Join Date
    Mar 2010
    Location
    owner():pos()
    Posts
    23

    Default E2 Physgun Buildmode [Simple Version]


    YOU NEED setPos AND setAng FOR THIS TO WORK!


    Hello everyone
    this time i made something which is fo Builders who liked Physgun Buildmode
    but... after the new update of Garry's mod its broken...
    so I made a simple Version of it.

    [Chat Commands:]
    $help -> Prints Help to your Chat.
    $posprec -> <Position Precision> changes the Precision ofPposition snaping.
    $angprec -> <Angle Precision> changes the Precision of Angle snaping.

    [What it does]
    if you grab a prop and freeze it in the air (or somewhere else) it will instantly snap the position
    and the angles i.E. :
    if you hold a Prop at Position[0.755, 751.577, 1337.7331] it automaticly snaps in: [1, 752, 1338].
    You know ?
    And the same Sheme for the Angles

    Thats it

    here is the code:
    Code:
    @name Physgun Buildmode
    @persist [Pos Chat_Color]:vector Ang:angle
    @persist Position_Precision Angle_Precision
    @persist Freeze Frozen
    runOnTick(1)
    runOnChat(1)
    if(first()){
        Chat_Color = vec(125,0,0)
        Angle_Precision = 11.25
        Position_Precision = 2
        
        printColor(Chat_Color,"Physgun Buildmode [E2 Version] by MPAP Activated")
        printColor(Chat_Color,"Angle Precision set to  "+Angle_Precision)
        printColor(Chat_Color,"Position Precision set to  "+Position_Precision)
        printColor(Chat_Color,"Tip: you can chage The Angle/Position-Precision")
        printColor(Chat_Color,"Though the chat by saying: '$angprec <Angle Precision>'")
        printColor(Chat_Color,"or '$posprec <Position Precision>'")    
        printColor(Chat_Color,"You can show this message again by saying: '$help'")
    }
    O = owner()
    AE = O:aimEntity()
    Freeze = O:keyAttack2()
    LS = O:lastSaid():lower()
    LSE = LS:explode(" ")
    Said = chatClk(O)
    if(Said & LSE[1,string]=="$help"){
        hideChat(1)
        printColor(Chat_Color,"Tip: you can chage The Angle/Position-Precision")
        printColor(Chat_Color,"Though the chat by saying: '$angprec <Angle Precision>'")
        printColor(Chat_Color,"or '$posprec <Position Precision>'")    
        printColor(Chat_Color,"You can show this message again by saying: '$help'")
    }
    if(Said & LSE[1,string]=="$posprec"){
        hideChat(1)
        Position_Precision = LSE[2,string]:toNumber()
        print("Set Position Precision: to  "+Position_Precision)
    }
    if(Said & LSE[1,string]=="$angprec"){
        hideChat(1)
        Angle_Precision = LSE[2,string]:toNumber()
        print("Set Angle Precision to:  "+Angle_Precision)
    }
    Frozen = AE:isFrozen()
    if(O:weapon():type():find("physgun") & Freeze & $Freeze){
        Ang = AE:angles()
        Pos = AE:pos()
        AE:propFreeze(1)
        AE:setPos(round(Pos/Position_Precision)*Position_Precision)
        AE:setAng(round(Ang/Angle_Precision)*Angle_Precision)
        ModelArr = AE:model():replace("_"," "):replace(".mdl",""):explode("/")
        hint("Set Position of '"+ModelArr[ModelArr:count(),string]+"' to "+toString(round(AE:pos()/0.01)*0.01):replace(",",",   "),5)
        hint("Set Angle of '"+ModelArr[ModelArr:count(),string]+"' to "+toString(round(AE:angles()/0.01)*0.01):replace(",",",   "),5)
    }
    Please comment ^_^
    Last edited by MPAP25438; 05-12-2010 at 05:02 AM. Reason: Added Description
    Snake67: your Server crashes very often... <.<
    MGN | Chris: yea...
    Snake67: can't you do something against it?
    MGN | Chris: sure i just type nocrash 1 in the server.cfg
    Snake67: ...
    Snake67: this command exists ?!

  2. #2
    has a custom title mattwd0526's Avatar
    Join Date
    Apr 2009
    Location
    Born Bostonian
    Posts
    2,652

    Default Re: E2 Physgun Buildmode [Simple Version]

    Pichars!


    (Pictures)

  3. #3
    Wire Noob MPAP25438's Avatar
    Join Date
    Mar 2010
    Location
    owner():pos()
    Posts
    23

    Default Re: E2 Physgun Buildmode [Simple Version]

    Should i give you a Pic of an E2 Chip ? xD
    Snake67: your Server crashes very often... <.<
    MGN | Chris: yea...
    Snake67: can't you do something against it?
    MGN | Chris: sure i just type nocrash 1 in the server.cfg
    Snake67: ...
    Snake67: this command exists ?!

  4. #4
    Wirererer Xandaros's Avatar
    Join Date
    Apr 2007
    Location
    Bremerhaven, Germany
    Posts
    364

    Default Re: E2 Physgun Buildmode [Simple Version]

    That's what he asked for. By the way: lol at signature
    I love very poor avatars

    Quote Originally Posted by Dav1d View Post
    It's too big to copy all in one.

  5. #5
    has a custom title mattwd0526's Avatar
    Join Date
    Apr 2009
    Location
    Born Bostonian
    Posts
    2,652

    Default Re: E2 Physgun Buildmode [Simple Version]

    Pictures of what it does (or at the very least, a description!)

  6. #6
    Wirererer adeeda's Avatar
    Join Date
    May 2009
    Location
    California
    Posts
    135

    Default Re: E2 Physgun Buildmode [Simple Version]

    Quote Originally Posted by mattwd0526 View Post
    Pictures of what it does (or at the very least, a description!)
    Yes. I have no clue what this does.
    Anne drew Andrew and Drew, and Druanne drew Anne, Drew, Andrew, and Ru.
    AnDrEw in-game.

  7. #7
    Wirererer TGifallen's Avatar
    Join Date
    Feb 2010
    Posts
    141

    Default Re: E2 Physgun Buildmode [Simple Version]

    ohh btw physgun buildmode IS NOT broken after update, conflicting addons yo

  8. #8
    Wire Noob MPAP25438's Avatar
    Join Date
    Mar 2010
    Location
    owner():pos()
    Posts
    23

    Default Re: E2 Physgun Buildmode [Simple Version]

    In my opinion its broken
    Pictures ? Okay I try to make some
    I think Xandaros knows where my Signature is from ;-)
    Snake67: your Server crashes very often... <.<
    MGN | Chris: yea...
    Snake67: can't you do something against it?
    MGN | Chris: sure i just type nocrash 1 in the server.cfg
    Snake67: ...
    Snake67: this command exists ?!

  9. #9
    Wire Sofaking ShadowBrain's Avatar
    Join Date
    Oct 2008
    Location
    Where you live.
    Posts
    910

    Default Re: E2 Physgun Buildmode [Simple Version]

    I think it would be better if you made a vid demonstrating what this does instead of pictures of an E2 or a floating prop...
    I maek 3D mdoels adn paly veido gaems!

  10. #10
    Wire Noob MPAP25438's Avatar
    Join Date
    Mar 2010
    Location
    owner():pos()
    Posts
    23

    Default Re: E2 Physgun Buildmode [Simple Version]

    I think a Video is not really a good idea.
    If you want a Video with ~0.2 Fps okay but else...
    Snake67: your Server crashes very often... <.<
    MGN | Chris: yea...
    Snake67: can't you do something against it?
    MGN | Chris: sure i just type nocrash 1 in the server.cfg
    Snake67: ...
    Snake67: this command exists ?!

+ Reply to Thread
Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots