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

Register

Team Spartan Cookies & Milk Forums Feedback Suggestions and improvements v
« Previous 1 … 3 4 5 6 7 … 36 Next »
Starfall --@dupefinished
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
Starfall --@dupefinished
20-01-2021, 05:35 PM, (This post was last modified: 20-01-2021, 05:40 PM by 57e11a. Edited 1 time in total.)
#1
57e11a Offline
Cheating Donating Member
***
Posts: 198
Threads: 68
Joined: Apr 2019
Starfall --@dupefinished
I suggest an addition of a directive starfall, related to waiting for the the duplication that this starfall chip is running on to finish pasting.

Something like

--@dupefinished
This would delay the execution of the starfall until the duplication that the chip is on has finished pasting.

I suggest this because when the SF runs (specifically when being duplicated), it may run before other entities/wirelinked entities are created, therefore when you check if the wirelink/entity is valid when the sf first runs, you could run into problems where it eventually is valid, just takes a moment to become valid.

she/her
Founder of The Anisu Corporation
[Image: iZUefQi.gif]
Find
Reply
20-01-2021, 06:36 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Starfall --@dupefinished
You should be using hooks to detect this. There's a "postentitypaste" hook that fires once all entities have been restored, and the "input" hook will be triggered when wiring is established.
Find
Reply
22-01-2021, 08:10 AM,
#3
Veegi Offline
Marker Translator
Posts: 90
Threads: 6
Joined: Sep 2013
RE: Starfall --@dupefinished
Use those in conjunction with starfall.isSpawnedFromDuplicator to either wait for the postentitypaste hook to run if the chip actually has been placed from the duplicator and then to do your setup, or to do it instantly if it wasn't placed as part of a dupe.

ohai
Find
Reply
23-01-2021, 01:12 AM,
#4
Red The Blue Color Offline
TSCM Super Donating Member
****
Posts: 422
Threads: 34
Joined: Feb 2015
RE: Starfall --@dupefinished
Before I forget to also mention another hook, I don't know specifically what you are doing with it but PreEntityCopy is incredibly useful to save all used wirelinks and etc data.

"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
« Next Oldest | Next Newest »


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