[Script] Nightmode |
Radioactium « Citoyen » 1567553880000
| 3 | ||
Unfortunately, I am too busy now to program on tfm to actually finish and debug all of my code, so most of my code is unfinished (I may come back to tfm one day though). I don't expect this to get a lot of attention, but I'll post it here anyways. Night Mode is simply just a small function originally meant for a bigger project (rewriting #traitor), but because of time constraints, only this function might end up to be a little useful someday (no idea if someone has come up with this idea before and made a thread about it, so if you did, sorry about that). What Night Mode does is (hopefully) limit each player's "vision" (similar to the N="" parameter in map making). Night mode Night Mode Pastebin Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 tfm.exec.disableAutoTimeLeft(disable) Here's a small minigame that I created that uses the Night Mode function (duck to collect the ?s, may crash tho for unknown reasons from time to time). This is just an example of what you can do with this: Minigame Minigame Pastebin Code Lua 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 -- settings Unfortunately, this comes with some weird map constraints (A huge disadvantage to the usefulness of this code). Basically just don't move the purple background rectangles within the xml template, and only create grounds within those rectangles, and this will allow the module to work. (I don't expect anyone to actually create a map off of this template either, but just putting it out there in case anyone actually wants to) Xml Template Night Mode Pastebin a dit : To run all of this code, copy (using Pastebin or here), go to your tribehouse, /lua, paste. (prob pretty obvious for most of you tho) Dernière modification le 1567558500000 |
Radioactium « Citoyen » 1567554960000
| 0 | ||
(removed) Dernière modification le 1567558560000 |
Radioactium « Citoyen » 1567556040000
| 0 | ||
(also removed) Dernière modification le 1567558560000 |
Noooooooorr « Censeur » 1567860900000
| 0 | ||
Nice!! |
0 | ||
Great work! |
Grth_demon « Citoyen » 1688433180000
| 0 | ||
I like it :D |