Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Expression 2 v
« Previous 1 2 3 4 5 … 8 Next »
Release Warpdrive Chat Chip
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Release Warpdrive Chat Chip
17-06-2017, 01:41 PM,
#1
Unilew Offline
Valued donator
****
Posts: 11
Threads: 7
Joined: Sep 2016
Warpdrive Chat Chip
I've decided to release this Warp-Drive chip.
I made this quite a long while ago, though I've made the indentation better than it originally was.

The Instructions:
1.To warp to a place do "/e <destination>" without the "s and replacing <destination with the place you'd like to go.
(To check the exact name of a destination, you can find them all in the actual chip.)
2. To warp to a player type "/pp <player name>" without the "s and replacing <player name> with the player's name
If there appears to be any form of error in the code please tell me.
Since i fixed the indention I've not tested it so just remember that there could be some form of error.

To install it just copy and paste this into the editor or download it and then place the file into:
C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\data\expression2
Or at least that's where it should go.
Code:
@name Warpdrive Chat Chip @inputs @outputs Des:vector Warp @persist @trigger #[ INSTRUCTIONS: 1.To warp to a place do "/e <destination>" without the "s and replacing <destination with the place you'd like to go. (To check the exact name of a destination look at the code below) 2. To warp to a player type "/pp <player name>" without the "s and replacing <player name> with the player's name ]# runOnChat(1) #Setting the chip to run everytime the chat updates A = owner():lastSaid() #Setting the variable A to the last message that the owner of the chip said if (chatClk(owner())) { #Runs whenever the owner talks in chat S = A:explode(" ") # Setting the variable S to be an array of the words the owner last said in the chat if (A == "/e build") { #These if and elseif statements check what destination the owner wants to go to then sets the vector appropriatley. Des = vec(13000,14000,-15000), timer("1", 250) } elseif (A == "/e shak") { Des = vec(-7552,-7056,7832), timer("1", 250) } elseif (A == "/e station") { Des = vec(5408,-6912,8880), timer("1", 250) } elseif (A == "/e station") { Des = vec(-9776,0,-4672), timer("1", 250) } elseif (A == "/e lava") { Des = vec(-11237.2, 607.44 , -3639.9), timer("1", 250) } elseif (A == "/e hiigdown") { Des = vec(7140,9708,-7064), timer("1", 250) } elseif (A == "/e hiigd") { Des = vec(7140,9708,-6064), timer("1", 250) } elseif (A == "/e hiig") { Des = vec(7140,9708,-5064), timer("1", 250) } elseif (A == "/e earth") { Des = vec(3087.7 , 8204.9 , 8103.0), timer("1", 250) } elseif (A == "/e des") { Des = vec(10731.3, -11510.3, -9253.4), timer("1", 250) } elseif (A == "/e moon") { Des = vec(-4086.8 , 13826.8, 9952.0), timer("1", 250) } elseif (A == "/e stat2") { Des = vec(10262.6, -6909.9 , 9024.0), timer("1", 250) } elseif (A == "/e spawn") { Des = vec(-431.5 , 11.77 , 16080.0), timer("1", 250) } elseif (A == "/e build2") { Des = vec(10504.3, 15432.7, -16167.9), timer("1", 250) } elseif (S:string(1) == "/pp") { #This elseif is for warping to players, this allows it to easily eaxtrapolate the name of the target. Des = findPlayerByName(S:string(2)):pos() + vec(0,30,0), timer("1", 250) } } if (clk("1")) {Warp = 1, timer("2", 250)} #These two ifs run when timers end, one is to begin the warp and the other is to reset the trigger if (clk("2")) {Warp = 0, Des = vec(0,0,0)}


Attached Files
.txt   Warpdrive Chat Chip.txt (Size: 2.44 KB / Downloads: 35)
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.