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)
18-11-2021, 03:15 AM,
#4
Avorius Offline
Valued donator and member
****
Posts: 128
Threads: 47
Joined: Dec 2015
RE: Chat Warp (Chat Driven Warp Chip)
Quick update for ya'll,

Just finished adding a rotation function into the chip as I realised earlier that I forgot to implement one. 

If you're already using it, you shouldn't have to update the chip (as it hopefully will do so automatically), in the case that you do you can just re-download it from my shared section.

For those of you who have no interest in using the chip and want to see the code for that section, here it is:

createCMD("rotate",function(PLC)
    if ValidDrives[1] ~= nil then
        if PLC ~= nil then
            broadcast("Rotating ship by ", PLC,"°")
            ValidDrives[1]["Angle Offset"] = Angle(ValidDrives[1]:entity():ang().p, tonumber(PLC), ValidDrives[1]:entity():ang().r)
            ValidDrives[1]["Destination"] = ValidDrives[1]:entity():pos()
            ValidDrives[1]["Activate"] = 1
        end
    else
        broadcast("You do not have a warp drive on your ship ",ents.owner():name()) return
    end
end,"r")

I also updated all the commands with this bit of code, to make sure the user knows if they don't have a Warp Drive on their ship, instead of the ship quietly blanking them:

else
    broadcast("You do not have a warp drive on your ship ",ents.owner():name()) return
end

Happy Warping! 

-George


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.