Team Spartan Cookies & Milk Forums
Starfall Bugs - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: Starfall Bugs (/thread-1123.html)



Starfall Bugs - SuperPlayer - 20-07-2015

Today i had a very strange bug with the SF editor. I had so many tabs open that i closed all of them. After that I opened 4 new tabs. But the first tab had a problem. Its seems like it didnt knew what code to show. When changing between the tabs it first showed the right code then the code of a different script then now code. I also couldnt close the tab. I tried to reset the SF editor but the issue was still there. There was no console error. I fixed it by opening and closing multiple tabs.

I also found a bug/problem with the function Ply:inVehicle and stargate.isInVehicle( ply ). Both doesnt show if someone is in one of the Star Trek shuttles. I used following code to test it:


local Owner = ents.owner()
timer.create("1",1,0,function()
if Owner:inVehicle() then
print("ok")
elseif stargate.isInVehicle(Owner) then
print("ok2")
end
end)

The normal Ply:inVehicle() just works on chairs. The stargate thing works just on CAP ships.

EDIT:
There is another bug that i discovered. It seems like the Ori beam weapons are not calling the damage hook. But the ship takes damage. It works with every other weapons but not with beam weapons. Is that possible to fix?

I also will continue posting issues under this thread because i feel bad to open a new thread for every new issue. So everyone feel free to post SF issues here.


SuperPlayer


RE: Starfall Bugs - Person8880 - 20-07-2015

Ok, let's see...
  • First bug, should be fixed after the next server restart.
  • Second issue is not a bug. Strictly speaking, the shuttles are not vehicles, and the Stargate library is obviously only going to account for Stargate ships. However, there is a second return value to stargate.isInVehicle, which is the current "view entity". When in a shuttle, this will return the shuttle.
  • Third issue, I can't reproduce. When firing at a target with an Ori beam, the damage hook fires with the inflictor as an "energy_beam2" entity. Perhaps you're not expecting that as the inflictor?



RE: Starfall Bugs - SuperPlayer - 21-07-2015

Thanks for fixing the first issue.

For the second issue why isnt the shuttle a vehicle? Anyways i fixed that.

Also i found the problem in my Code for the third issue. I was expecting a player as the Attacker. But damn CAP made the attacker the weapon itself. So i am now checking for the owner twice.

Thanks for your help!


RE: Starfall Bugs - Person8880 - 21-07-2015

Vehicle means Source engine vehicle, i.e chairs, the jeep and the airboat.