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

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 2 3 4 5 … 18 Next »
Release Chat Warp (Chat Driven Warp Chip)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Release Chat Warp (Chat Driven Warp Chip)
17-11-2021, 01:45 AM,
#2
The17thDoctor Offline
TSCM Average Enjoyer
****
Posts: 1,100
Threads: 249
Joined: Oct 2015
RE: Chat Warp (Chat Driven Warp Chip)
A pretty good starfall by the looks of it !
A few suggestions that could make your code more interesting would be to merge Warp Names and Vectors into a single variable called WarpDestination like this :
WarpDestination = {Name = "Hiigara", Vec = Vector(x, y, z)}
This way, your destination informations would be pretty easy to access in one time.

You could also run the wirelink each time you execute a command that would require such wirelink to be made like the warp command.
This way you would avoid to re-run the code every second and thus wasting precious quota (even though the loss is minimal given the function ran every sec)

I would also suggest to avoid adding prevLoc = Vector(), setting it to nil or to the chip's current position would be wiser to make sure users can't accidentally warp back to a destination they've never been to, especially when this destination is 0 0 0. To go further, you could also make it a warp history, with the ability to rewind destinations until the first one registered by the chip.

The17thDoctor: Server take me to the most handsome person
srcds_linux: I cant send people to themselves...
Website Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Chat Warp (Chat Driven Warp Chip) - by Avorius - 17-11-2021, 12:42 AM
RE: Chat Warp (Chat Driven Warp Chip) - by The17thDoctor - 17-11-2021, 01:45 AM
RE: Chat Warp (Chat Driven Warp Chip) - by Avorius - 17-11-2021, 11:11 PM
RE: Chat Warp (Chat Driven Warp Chip) - by Avorius - 18-11-2021, 03:15 AM

  • 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.