Ulysses
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Ulysses
»
General
»
Developers Corner
»
UDodge 2016
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: UDodge 2016 (Read 2862 times)
0 Members and 1 Guest are viewing this topic.
roastchicken
Respected Community Member
Sr. Member
Posts: 476
Karma: 84
I write code
UDodge 2016
«
on:
July 21, 2016, 03:01:12 PM »
I've been working a bit on UDodge, and I've gotten it to work without erroring, but I've run into a problem with the timed removal of the combine balls. The current code has an 'expire time' after which the pylon is removed from the pylons_firing table. Why is this? I don't understand the purpose of removing it from the table after a delay, because it prevents the combine ball removal code from running and the map gets filled with them. Hopefully you can remember your logic for this Megiddo.
The repo is on
GitHub
, and the code in question is in
lua/entities/pylon/init.lua
, if anyone wants to take a crack at it.
«
Last Edit: July 21, 2016, 11:57:50 PM by roastchicken
»
Logged
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.
Megiddo
Ulysses Team Member
Hero Member
Posts: 6214
Karma: 394
Project Lead
Re: UDodge 2016
«
Reply #1 on:
July 21, 2016, 07:16:06 PM »
The timer for removal is independent of the pylons_firing table. That is, the removal is scheduled when the cball is created, and nothing removes that timer.
If the cballs aren't being removed in the current GMod, the cause is something else.
Logged
Experiencing God's grace one day at a time.
An Error Has Occurred!
array_keys(): Argument #1 ($array) must be of type array, null given
Back