Commit 7b82d52
authored
TargetId: Let GM:TTTModifyTargetedEntity modify the target distance (#1828)
You can modify the target entity, but the distance value would remain
the same since it couldn't be changed. This can make targetids to appear
and disappear unexpectedly if the target entity was changed.
I've made `GM:TTTModifyTargetedEntity` read a second return value for
distance so devs can correct the distance or do as they please with it.
I've checked and it doesn't let you use entities from far away if you
force target them with distance set to 0.1 parent 87d7307 commit 7b82d52
File tree
2 files changed
+6
-1
lines changed- gamemodes/terrortown/gamemode/client
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
304 | 308 | | |
305 | 309 | | |
306 | 310 | | |
| |||
0 commit comments