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 … 13 14 15 16 17 18 Next »
Starfall Help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pages (5): « Previous 1 2 3 4 5 Next »
Threaded Mode
Starfall Help
26-05-2015, 02:47 PM,
#21
Alanzote Offline
TSCM Member
***
Posts: 123
Threads: 40
Joined: Oct 2013
RE: Starfall Help
(25-05-2015, 11:13 PM)SuperPlayer Wrote: Well this what i am showing you now i have never tested so i dont know if it works


function redAllert()
for I = 1,#Props/2 do
setSubMaterialB(Props[I], "cmats/base_metal_light", "cmats/flash_red")
end
timer.simple(1,function()
for I = #Props/2 ,#Props do
setSubMaterialB(Props[I], "cmats/base_metal_light", "cmats/flash_red")
end
end)
end

Maybe it works. I dont know. But when i am in game again i will try to find a solution for you.

SuperPlayer
Ops quota execeeded my ship is TOO BIG!

[Image: stargate_kawoosh_animation_HD_by_SergeyDruid.gif] [Image: kecepatan-cahaya-light-speed-warp-drive2....gif?w=640]
Find
Reply
26-05-2015, 03:57 PM,
#22
SuperPlayer Offline
TSCM Super Member
****
Posts: 234
Threads: 30
Joined: Oct 2014
RE: Starfall Help
The only way i can think of right now is to set the timer value up. Maybe from 1 to 2. But today after school i will look into your problem if it isnt solved then.
I am sorry i cant help you more right now.

SuperPlayer
Find
Reply
26-05-2015, 05:52 PM,
#23
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Starfall Help
Basically, you need to make use of something I added yesterday for this purpose:
local Corridors = ents.self():getConstraints( function( Ent )
return Ent:class() == "prop_physics" and Ent:model():find( "models/whatever/path/you/want" )
end )
Do that once at the start of the code and then use the Corridors table for when you change the sub-materials later. I'd hope you don't have a massive amount of corridor props compared to exterior props so it should be fine ops-wise later, and the filter should make sure you don't exceed when starting up.

If you for some reason have way too much going on in the code on first run you might still hit issues, in that case, just delay it like so:
local Corridors
timer.simple( 1, function()
Corridors = ents.self():getConstraints( function( Ent )
return Ent:class() == "prop_physics" and Ent:model():find( "models/whatever/path/you/want" )
end )
end )
and I'd hope that'll work fine.
Find
Reply
26-05-2015, 09:51 PM, (This post was last modified: 26-05-2015, 10:48 PM by Alanzote.)
#24
Alanzote Offline
TSCM Member
***
Posts: 123
Threads: 40
Joined: Oct 2013
RE: Starfall Help
(26-05-2015, 05:52 PM)Person8880 Wrote: Basically, you need to make use of something I added yesterday for this purpose:
local Corridors = ents.self():getConstraints( function( Ent )
return Ent:class() == "prop_physics" and Ent:model():find( "models/whatever/path/you/want" )
end )
Do that once at the start of the code and then use the Corridors table for when you change the sub-materials later. I'd hope you don't have a massive amount of corridor props compared to exterior props so it should be fine ops-wise later, and the filter should make sure you don't exceed when starting up.

If you for some reason have way too much going on in the code on first run you might still hit issues, in that case, just delay it like so:
local Corridors
timer.simple( 1, function()
Corridors = ents.self():getConstraints( function( Ent )
return Ent:class() == "prop_physics" and Ent:model():find( "models/whatever/path/you/want" )
end )
end )
and I'd hope that'll work fine.
Still havn't see if it works, but what I do If there are more than 1 model I want to search?
EDIT: tested it, not working, it doesn't search

[Image: stargate_kawoosh_animation_HD_by_SergeyDruid.gif] [Image: kecepatan-cahaya-light-speed-warp-drive2....gif?w=640]
Find
Reply
27-05-2015, 02:11 AM,
#25
TheOneAndOnlyTee Offline
GMod Admin
Posts: 755
Threads: 47
Joined: Oct 2013
RE: Starfall Help
Alan i'd recommend checking out how Rouing does it in his Aura EVE chip.

Steam Profile
My Discord Server
Need help with E2 or SF? , just ask me and i'll try to help.
[Image: 98Dkcoz.gif]
Find
Reply
27-05-2015, 08:33 AM,
#26
Red The Blue Color Offline
TSCM Super Donating Member
****
Posts: 422
Threads: 34
Joined: Feb 2015
RE: Starfall Help
(27-05-2015, 02:11 AM)T-16 Wrote: Alan i'd recommend checking out how Rouing does it in his Aura EVE chip.
Last I checked the EVE chip doesn't work with big ships either.

"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016

[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.
Find
Reply
27-05-2015, 08:47 AM,
#27
TheOneAndOnlyTee Offline
GMod Admin
Posts: 755
Threads: 47
Joined: Oct 2013
RE: Starfall Help
seems rouing hasn't been able to fix his lib/getConstraints or the EVE chip since the deprecations were removed, tried fixing but with no luck.

Steam Profile
My Discord Server
Need help with E2 or SF? , just ask me and i'll try to help.
[Image: 98Dkcoz.gif]
Find
Reply
27-05-2015, 02:12 PM,
#28
Alanzote Offline
TSCM Member
***
Posts: 123
Threads: 40
Joined: Oct 2013
RE: Starfall Help
(26-05-2015, 05:52 PM)Person8880 Wrote: Basically, you need to make use of something I added yesterday for this purpose:
local Corridors = ents.self():getConstraints( function( Ent )
return Ent:class() == "prop_physics" and Ent:model():find( "models/whatever/path/you/want" )
end )
Do that once at the start of the code and then use the Corridors table for when you change the sub-materials later. I'd hope you don't have a massive amount of corridor props compared to exterior props so it should be fine ops-wise later, and the filter should make sure you don't exceed when starting up.

If you for some reason have way too much going on in the code on first run you might still hit issues, in that case, just delay it like so:
local Corridors
timer.simple( 1, function()
Corridors = ents.self():getConstraints( function( Ent )
return Ent:class() == "prop_physics" and Ent:model():find( "models/whatever/path/you/want" )
end )
end )
and I'd hope that'll work fine.
it can only use 3 models(check with if and elseif)

[Image: stargate_kawoosh_animation_HD_by_SergeyDruid.gif] [Image: kecepatan-cahaya-light-speed-warp-drive2....gif?w=640]
Find
Reply
27-05-2015, 05:40 PM,
#29
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Starfall Help
Considering you're likely using a single part set, all the corridor parts should be in the same folder path. For modbridge you'd just have:
local Corridors = ents.self():getConstraints( function( Ent )
return Ent:class() == "prop_physics" and Ent:model():find( "models/cerus/modbridge/core" )
end )
That will find every interior modbridge prop.
Find
Reply
27-05-2015, 09:36 PM,
#30
Alanzote Offline
TSCM Member
***
Posts: 123
Threads: 40
Joined: Oct 2013
RE: Starfall Help
(27-05-2015, 05:40 PM)Person8880 Wrote: Considering you're likely using a single part set, all the corridor parts should be in the same folder path. For modbridge you'd just have:
local Corridors = ents.self():getConstraints( function( Ent )
return Ent:class() == "prop_physics" and Ent:model():find( "models/cerus/modbridge/core" )
end )
That will find every interior modbridge prop.
It finds all and no crash, until I write "/computer alert red" part of my ship becomes red and the other continues white.

[Image: stargate_kawoosh_animation_HD_by_SergeyDruid.gif] [Image: kecepatan-cahaya-light-speed-warp-drive2....gif?w=640]
Find
Reply
« Next Oldest | Next Newest »
Pages (5): « Previous 1 2 3 4 5 Next »


  • View a Printable Version
Forum Jump:


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

Powered By MyBB, © 2002-2026 MyBB Group.