+ Reply to Thread
Results 1 to 10 of 10

Thread: Adv SWEP Controller

  1. #1
    Wire Noob Scrumplesplunge's Avatar
    Join Date
    Sep 2008
    Posts
    2

    Post Adv SWEP Controller

    I don't know whether this has been suggested before as it could really be called anything.

    Basically, the idea is that you have a tool in the tool list which spawns an adv SWEP controller, and when you press E on it, it gives you a weapon that, when equipped, sends all your presses such as W A S D Mouse1 etc to the controller instead of to you so you stay still whilst your contraption moves - a bit like the remote control.

    It is, essentially, a more portable version of the adv Pod controller - the advantage being that you do not need to get in a pod to use it, all you have to do is equip the weapon.

    PS: if this HAS been suggested before, then I am sorry for posting it again..

    PPS: if this HAS been suggested before and someone has made it in an unofficial addon, where can i find it? can it be made official?

    Edit:

    I have just found this:
    Wire RC controller SWep

    it is essentially what I just posted, but mine explains in a little more depth what the idea should feature.
    Last edited by Scrumplesplunge; 07-18-2009 at 05:29 AM. Reason: Sudden realisation of other people thinking on the same brainwaves.

  2. #2
    Bug Buster TomyLobo's Avatar
    Join Date
    Feb 2009
    Posts
    2,796

    Default Re: Adv SWEP Controller

    how is this different from the remote controller we already have?
    "It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup

    Lífið læðist lúmskt áfram

  3. #3
    Wire Sofaking BlackholeWM's Avatar
    Join Date
    Dec 2008
    Posts
    805

    Default Re: Adv SWEP Controller

    What remote controller? The numpad or something? The laser pointer?

  4. #4
    Bug Buster TomyLobo's Avatar
    Join Date
    Feb 2009
    Posts
    2,796

    Default Re: Adv SWEP Controller

    no, the remote control tool
    "It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup

    Lífið læðist lúmskt áfram

  5. #5
    Wire Noob Scrumplesplunge's Avatar
    Join Date
    Sep 2008
    Posts
    2

    Default Re: Adv SWEP Controller

    basically it is possible to do most of this stuff with the remote control, but this does not require you to spawn the remote control swep every time you spawn, it simply requires you to press 'e' on the swep controller block to get the weapon back, essentially linking you to it.

    it could also have extra stuff that adv pod does not have, such as outputting your position and direction etc directly throught the device without having to discover it in e2 or likewise.

    the reason i feel this would be useful is that with it you could essentially make your own sweps. You design a weapon with wire, link it up to the controller and WHAM! you have a swep.
    Scrumplesplunge


  6. #6
    Wirererer Jeremydeath's Avatar
    Join Date
    Jun 2008
    Location
    Texas, USA
    Posts
    383

    Default Re: Adv SWEP Controller

    How about we do two things,
    1. Make it so that if you press use on an adv. pod controller it gives you the remote swep
    2. Allow the beacon sensor to take an entity input

    This way, you can wire the Pod Controller's "Entity" output to the input on the beacon sensor, and get all of the info that the beacon sensor can give you.

    No need for a new entity.

    EDIT: When I looked at the code for the beacon sensor, it works A LOT differently than I originally thought. (It really needs to be rewritten in a different way)

    Just use the E2 to get entity info. I have one that I always use:

    Code:
    @name Adv Beacon Sensor
    @inputs T1:entity
    @outputs Pos:vector X Y Z Distance Name:string Type:string
    @persist 
    @trigger all
    
    runOnTick(1)
    
    #Target 1
    Pos = T1:pos()
    
    X = T1:pos():x()
    Y = T1:pos():y()
    Z = T1:pos():z()
    
    Name = T1:name()
    Model = T1:model()
    Type = T1:type()
    
    Distance = T1:pos():distance(entity():pos())
    Last edited by Jeremydeath; 07-18-2009 at 11:11 PM.
    Jeremydeath's Wire Addons - Try Them... NOW!

  7. #7
    Wire Sofaking ahref's Avatar
    Join Date
    Jul 2008
    Posts
    520
    A-Z Materials - Released!!!!!!!

  8. #8
    Wirererer Jeremydeath's Avatar
    Join Date
    Jun 2008
    Location
    Texas, USA
    Posts
    383

    Default Re: Adv SWEP Controller

    Oh, yeah. I forgot that I made the patch...

    Here it is:

    [highlight=LUA]function ENT:Use( User, caller )
    if User and User:IsValid() and User:IsPlayer() then
    if !User:GetWeapon("RemoteController"):IsValid() then
    User:Give("RemoteController")
    end

    if self.Entity:Link(User,true) then
    User:PrintMessage(HUD_PRINTTALK,"You are now linked!")
    User.Linked = true
    else
    User:PrintMessage(HUD_PRINTTALK,"Link failed!")
    end
    end
    end[/highlight]
    Attached Files Attached Files
    Jeremydeath's Wire Addons - Try Them... NOW!

  9. #9
    Bug Buster TomyLobo's Avatar
    Join Date
    Feb 2009
    Posts
    2,796

    Default Re: Adv SWEP Controller

    needs SIMPLE_USE
    also, I'd love to know how to use this remote control
    "It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup

    Lífið læðist lúmskt áfram

  10. #10
    Wirererer Jeremydeath's Avatar
    Join Date
    Jun 2008
    Location
    Texas, USA
    Posts
    383

    Default Re: Adv SWEP Controller

    In the patch file attached, I added self.Entity:SetUseType(SIMPLE_USE) to ENT:Initialize(), so it is using it, I just didn't include it in the code snippet.

    The controller is fairly simple, just link the controller to the pod with a left-click (pressing use on the controller with my patch auto links you).

    Then, whenever you are wielding the Remote Controller, if you press the use key, it will act as if you are in a pod that is linked to that Adv. Pod Controller.
    This allows you to have sort of a "virtual pod" that allows you to control the outputs of the pod controller anywhere without being in a pod.
    Jeremydeath's Wire Addons - Try Them... NOW!

+ Reply to Thread

Similar Threads

  1. E2 Remote swep
    By davik91 in forum Ideas & Suggestions
    Replies: 18
    Last Post: 07-14-2009, 07:24 AM
  2. Wire Transmitter SWEP
    By Lancelot in forum Ideas & Suggestions
    Replies: 14
    Last Post: 03-07-2009, 10:36 AM
  3. Simple remote SWep
    By .:WINNAR:. in forum Ideas & Suggestions
    Replies: 1
    Last Post: 04-22-2008, 11:08 PM
  4. Wire RC controller SWep
    By andy1976uk in forum Ideas & Suggestions
    Replies: 12
    Last Post: 04-04-2008, 09:32 AM
  5. A seperate Wireing swep
    By timas in forum Ideas & Suggestions
    Replies: 6
    Last Post: 11-08-2007, 06:57 PM

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