• GMod - What are you working on? October 2015 (#50)
    345 replies, posted
[QUOTE=JustMondo;48874678]Is that Spy's Base? Also have you considered using Call of Duty viewmodels?[/QUOTE] yes it is, and i did, but i couldn't find any proper cod weapon models
[QUOTE=EthanTheGreat;48874776] I've done some research for this problem. The player movement system uses a time regulator. Server pings the client every couple of seconds, and the player's movement speed gets changed depending on the reaction time. Maybe that's how I'll achieve regular FPS performance. [/QUOTE] What? I have remade the entire player movement system in lua, so I dare to say I have quite an experience in the subject. There is absolutely nothing like this in there..
[video=youtube;enAVEJ-C-Dg]http://www.youtube.com/watch?v=enAVEJ-C-Dg[/video] Figured I'd further showcase the weapon base given the positive feedback. So the base has support for multiple camos/skins, weapon attachments, attachment reticles and arm rigs. Sprinting is sticky keyed like Call of Duty and reloading is canceled when beginning a sprint. The weapons have reload timers so you can get a quicker reload if you sprint the second your mag gets insert into your gun to shave a couple frames off the reload animation. Support exists for melee weapons, though it is small considering there aren't a lot of animation assets to use. The weapons use Ironsight animations and shooting while going between ADS to hipfire is seamless and doesn't snap. The base uses clientside prediction so it still feels smooth up to 200 latency. Boost jumping and wall running are also a feature, I'm not particularly a giant fan of these mechanics but, I thought it would be neat to include.
[video=youtube;9pKF2FmXpAQ]https://www.youtube.com/watch?v=9pKF2FmXpAQ[/video] I got bored
[QUOTE=LUModder;48875119][video=youtube;9pKF2FmXpAQ]https://www.youtube.com/watch?v=9pKF2FmXpAQ[/video] I got bored[/QUOTE] That definitly fucks my eyes
[QUOTE=MDave;48874828]What? I have remade the entire player movement system in lua, so I dare to say I have quite an experience in the subject. There is absolutely nothing like this in there..[/QUOTE] [url=http://wiki.garrysmod.com/page/Player/SetLaggedMovementValue]SetLaggedMovementValue[/url] [code] Serverside... Slows down the player movement simulation by the timescale, this is used internally in the HL2 weapon stripping sequence. It achieves such behavior by multiplying the FrameTime by the specified timescale at the start of the movement simulation and then restoring it afterwards. NOTE: This is reset to 1 on spawn. NOTE: There is no weapon counterpart to this, you'll have to hardcode the multiplier in the weapon or call Weapon:SetNextPrimaryFire / Weapon:SetNextSecondaryFire manually from a Predicted Hook. [/code] This server command sends a timescale value to the client. The client regulates the incorrect timescale.
[QUOTE=EthanTheGreat;48875467][URL="http://wiki.garrysmod.com/page/Player/SetLaggedMovementValue"]SetLaggedMovementValue[/URL] Serverside... Slows down the player movement simulation by the timescale, this is used internally in the HL2 weapon stripping sequence. This server command sends a timescale value to the client. The client regulates the incorrect timescale.[/QUOTE] Touché. But this is really not meant for what you want to use it for
FrameTime is not the solution. As much as I want it to be. This sort of physics needs high-calculation times, hense why I'm considering just porting it into a C++ binary module... So I would have more control. Would you know of any useful headers I could refer to? Currently I'm referencing to SpaceTech's Navi-Mesh code, since it deal with high-calculated Vector math. LUA is too slow.
I am working on a code obfuscator Here's some code it spat out after I fed it a test script I made. Run it, it's working code! [lua] ----------"CRYPTED"---------- math.randomseed(tonumber(util.CRC("7V6scgT1ErVPHlOAmEZD7EEqic9bdGZX"))) local _db53f5515a0232d7028dbe8a937491e2a14e2190 = math.random(0,980) local _6b5b8456591c5f440a6b875c148dfb17d8f36966 = math.random(0,893) local _e5a16afe113f3a20e452e55ad0cf29b2c317a6a5 = math.random(0,402) local _b28f446c69fd0086ab218e195f5a70f87d280002 = math.random(0,280) local _7cf204188df14ed1dba4606ca44b8170c3bd383f = math.random(0,676) local _0f59d378606932a1946478ea15d74b943b2782a9 = math.random(0,164) local _d650b5d339f8e5585232a436b7f4952253d2d15f = math.random(0,167) local _1007b69a29b9c8b43bb280db6475b4e7bad702ef = math.random(0,145) local _a2124adbb8cade7388657f9d2d8cc2707640d060 = math.random(0,237) local _4425878f8f2cf88d033fa5a8f238f4c34252c67f = math.random(0,663) local _c2234e873e8ac5a69a3ab1ea22c8c2ee022f0eb2 = math.random(0,123) local _b805fb0ec0b8274a7f93e271a04f94236fea6782 = math.random(0,376) local _0d2f253071d63fd81b25c9b5ef23fe42a8f65d60 = math.random(0,124) local _fabd9dfcc52bbac0ce1498c7f4e89aa019592208 = math.random(0,182) local _39957e6c573530f55f0845e47fdf52ba8387c240 = math.random(0,249) local _42dc7383a5e31d8f521e5d57d94c61fc9f0a99a1 = math.random(0,601) local _5ea5ba8a274909458496fe6ffcc0be9c3a04cd9b = math.random(0,117) local _3efa4552100bc29e40e0bcff33f2d8789daa5aa4 = math.random(0,221) local _137b2bddaae10602ddff9c7d0c55c5674efad7cd = math.random(0,211) local _32f587b4b5bf25e908c2b7dabcfeb723a6f85055 = math.random(0,640) local _ea1f28e22d44035d258625789a8bf1ce5bec4e0f = math.random(0,133) local _6fb2e40c510d6b74cd99f43a70433e2e348ce90a = math.random(0,143) local _a18d80589fe64d5d0ab0c5314da88943f781b657 = math.random(0,248) local _41c177dc6e04442c6bce843aa57232deee143179 = math.random(0,274) local _d5d7d5e0499d8f4636ec8481a5b6764bd40bf28e = math.random(0,154) local _a5e74c573501c960fc56f88461bbdaa24dc887e9 = math.random(0,263) local _2fc091fb2a058e6f58a0ebc0ff3ccb356c079c23 = math.random(0,108) local _dfbe9c4267a377cc50ab981275ceed6d83380676 = math.random(0,727) local _63ea0c53cf089e132aa3d6f60a2bb7ff588ec92a = math.random(0,117) local _b806e49a837433b191d084235c2d3bd119ef6ee6 = math.random(0,232) local _f02f9cdc5936452369e487d51599d2be0aa83fa4 = math.random(0,421) local _8328f0217f9192e9b37f18ba2ef60df449bfe827 = math.random(0,378) local _dee8956f16cb3cbff28ee742c1e9fade79ebc055 = math.random(0,146) local _b023b2634ac3a65a2a8f6a0c7a3c03b87522b437 = math.random(0,151) local _8d94d3faaa801e1d14f1cd45ef6472b7c6bd5217 = math.random(0,221) local _cbd911b41780eb08e0b352885de671e4c5bafb64 = math.random(0,6581) local _04493cbe1933ff2ebca1ad9cd13ca3a0a66adde4 = math.random(0,384) local _4568cb6a9668e55656aad045db553aba46fb8b3e = math.random(0,200) local _602349ba84f3b81941de8c775df1483910e2f784 = math.random(0,246) local _0202cbb43f9831996a4bd427b2285fd7f00f687d = math.random(0,518) local _d85786fd32fa5a667c18923aa62b7542395bcd28 = math.random(0,310) local _958ddd77fe8cedb76dc334c3cac972d451af2b4f = math.random(0,158) local _d085c4a17ba1bd84f526911aa71b4f209d4e8bf6 = math.random(0,209) local _3bc1d5577ddb96f012daf8de12d8799b518c41d4 = math.random(0,433) local _63457e6efac1dbc3f91eabaaa4dcb5d7b41c123a = math.random(0,157) local _6c8aba0bfb2f0250bd7e7043d2b1b4f8b0d9bf7b = math.random(0,165) local _3d29e5a04124613dd817ee1ba81792b0c5c498d0 = math.random(0,243) local _9add3abf7a9b606dd14225170200453c8bbc2245 = math.random(0,206) local _16292af2b20d19519ee2ef1d1431aac02523a724 = math.random(0,695) local _c0c7e563f0e1292b374803084faa162bee80e37d = math.random(0,111) local _191b869dce428a8fac99c9c5b985f4c8df94e2e1 = math.random(0,34) local _139473aa5fca855c292d34fad0f1dae2821adde1 = math.random(0,826) local _002ff57dfa2c72e8bec351eb676ecb4851290da4 = math.random(0,185) local _3e47def14891dfde4a2955b88f34b82fd4a3b158 = math.random(0,113) local _3eed1e49f7c9ea770b1419646bd657424cd78395 = math.random(0,148) local _9b616d9f446136611bd67994f8dfe6392f9118f1 = math.random(0,279) local _a7429f218c465e172a5ae29cca552ee22b4cab1c = math.random(0,538) local _edb3b43c0828b0e20c97bc2fe0c50eccd4214d65 = math.random(0,450) local _4d1a1bf7822061d9c29609403404430eac54693d = math.random(0,150) local _b95fb812c0dbc0559fac211338445479788759c7 = math.random(0,522) local _0e3ee4b834b7219a1178c37293b02b9ecc4c6098 = math.random(0,899) local _c52b7ba2e7a976a47e8f5d985c10465116154a46 = math.random(0,190) local _853efe1e4f11f3c93d0d81bfb8f83da59152ef33 = math.random(0,122) local _a651f63cc3816f7e5179c6a464378a6c103c7e0c = math.random(0,91) local _df6119b3935fc2b3a596525947ce5fce0f627d5b = math.random(0,1) local _591747e662697148b2f815d649562bab85678d2c = math.random(0,193) local _3f769bdf390cb5df95b305dcd7ab42bb8d0980d6 = math.random(0,163) local _7d9f85bbb49b353c6509bb56e62144821c02cc92 = math.random(0,183) local _19687388f02951e5e7f78b02fb504a81ad69e77f = math.random(0,148) local _083e06583f071e2e9c2b9ded036098a99665b3a7 = math.random(0,92) local _d666de23109c0f593cbb11a47cb0ec5fb2ccd170 = math.random(0,562) local _858b6277165bbf2aa774194ac91b9d67726d4fcd = math.random(0,56) local _b764fe25c9e0454bca19627fd5a1ccc3ad8e4b66 = math.random(0,1258) local _46698892cd2abd48d3daa68aba16997f2dc28c46 = math.random(0,304) local _767d0f5ed8f01d5fdaf34834afd3dfaa121a17a8 = math.random(0,97) local _48ab8ef47306498d54ed51f2e850e25ec191eb21 = math.random(0,144) local _b2969c8ce5fe3dd25eb2e26d7f92cecc6383ba90 = math.random(0,130) local _ec11e19843d7b314b9fdb6fd596d5a077ee5508d = math.random(0,699) local _9ec7fdde3fcbcb212dd34d0263813cd249683e42 = math.random(0,881) local _26edfe97536677c2d5a0d699d194f6e4f85e392d = math.random(0,237) local _0c024d4ddd48afa066b29d7baf65888e7dc3bc59 = math.random(0,132) local _2e947ee867fe9209bb60d22a79fd0c0bb9e0a0cd = math.random(0,217) local _f1a2200001af5028e1c5e7f513c6822408f2eb78 = math.random(0,492) local _d6eb49d2b719868e7c62d4574fbb2e355bd40147 = math.random(0,5740) local _fd59893c56d39c4b6ed43e5b6fe1fdf81318495b = math.random(0,37) local _b4371b5278543e8f84a45b6e606e4370242af38a = math.random(0,127) local _727767be77627774c9710395cbe0857c511741d1 = math.random(0,245) local _f4e402aaa43036d421f6d4d433636de923e79985 = math.random(0,174) local _2e363f7a1281c56a68a7bf38d6fe5fda2273b7f5 = math.random(0,128) local _ed12c4f4224fbd1e8d2ce964c925af72f009f898 = math.random(0,6652) local _d52f230265a4dabe6052d778e41801e6fcabac32 = math.random(0,523) local _279c094aab98b5d3af7a133f3a5b3f016769de13 = math.random(0,1411) local _bff5630cc07c86e7374afc1d644c82b8b70bdeb7 = math.random(0,105) local _b6a037ccaee85e9f597ea8ba712473a1f637cab1 = math.random(0,127) local _25268fa0fefd798204dd7a83fb5d2d5ea0c79a9b = math.random(0,298) local _051addf7104df563e35ce3a2ab060442db3900af = math.random(0,227) local _fc071ccd383d82bf8fb9f3db42b014e0414baba3 = math.random(0,67) local _9bb5e0ee80d22874dd6c5cdc7dc3124975a24e79 = math.random(0,698) local _d1a21ec10106e9eb4fc8429ef116a0a983ca0328 = math.random(0,105) local _b10a18174e61fe5b980b127ac721d5f6b38a4872 = math.random(0,197) local _eadbe31eee805fb52723d2ce516806c8a784d4fe = math.random(0,213) local _026555101176c367cc00ef467a4d07787ce9198d = math.random(0,116) local _39f002e33b356c1fa34840f1cd99318d180265f9 = math.random(0,611) local _4d2e456a1b453e3cce83ae5cad9e41f2a0e88c43 = math.random(0,1398) local _4630350b3a325de5a40cade526efad33322a79a7 = math.random(0,198) local _0961669fc3b2776ce2b5513cf4e1d30305e46764 = math.random(0,212) local _f7436047cb00e1b0bb2c43c035ed93c6bc624da6 = math.random(0,296) local _65e2115cae1f30858ffb4cc1cdbb7540a8ef98af = math.random(0,81) local _9926783de432331f1523008da042528fa7e7d098 = math.random(0,850) local _0be671011b9c753fd5fa6ff0eda6a3f7a3ac7eba = math.random(0,136) local _d98d3b1ab1e14d9b18f8ab88f44e332aac9ff103 = math.random(0,127) local _b88c6f093ca846850b46c0eb36d649c0c5f4db6d = math.random(0,92) local _9bfd4e486a9f03b916eea9b17298f0d9e004e3a6 = math.random(0,129) local _be7243b3e5b9d1cefef0ea8e5b969c7d8e4329
[QUOTE=JustMondo;48875062][video=youtube;enAVEJ-C-Dg]http://www.youtube.com/watch?v=enAVEJ-C-Dg[/video] Figured I'd further showcase the weapon base given the positive feedback. So the base has support for multiple camos/skins, weapon attachments, attachment reticles and arm rigs. Sprinting is sticky keyed like Call of Duty and reloading is canceled when beginning a sprint. The weapons have reload timers so you can get a quicker reload if you sprint the second your mag gets insert into your gun to shave a couple frames off the reload animation. Support exists for melee weapons, though it is small considering there aren't a lot of animation assets to use. The weapons use Ironsight animations and shooting while going between ADS to hipfire is seamless and doesn't snap. The base uses clientside prediction so it still feels smooth up to 200 latency. Boost jumping and wall running are also a feature, I'm not particularly a giant fan of these mechanics but, I thought it would be neat to include.[/QUOTE] dayum , that hud and those weapons, awesome job ! you ported these weapons yourself ?
[QUOTE=Axarator;48847493]I'm working on an open source parkour gamemode, video and image come soon as it is early in progress.[/QUOTE] I apologize to my non-existant fanbase for the wait of my gamemode however I need some people to help me so I can fix the bugs before I release the in-complete "demo"? (I'm not sure what to call it.) Anyways, if you want to help, let me know by shooting me a PM so I can get the source code live, there I will tell you the bugs unless you are to request me to give the bug list on this thread. [IMG]http://download1516.mediafire.com/u8k2qmutn4ig/bfnuccbbdq1tipz/Untitled-1.gif[/IMG] [B]Here are some features (Not all) that I've worked on so far:[/B] [video=youtube;DNq8URPE_rg]https://www.youtube.com/watch?v=DNq8URPE_rg&feature=youtu.be[/video]
[QUOTE=LegoGuy;48877359]I am working on a code obfuscator Here's some code it spat out after I fed it a test script I made. Run it, it's working code! [lua] ----------"CRYPTED"---------- math.randomseed(tonumber(util.CRC("7V6scgT1ErVPHlOAmEZD7EEqic9bdGZX"))) local _db53f5515a0232d7028dbe8a937491e2a14e2190 = math.random(0,980) local _6b5b8456591c5f440a6b875c148dfb17d8f36966 = math.random(0,893) local _e5a16afe113f3a20e452e55ad0cf29b2c317a6a5 = math.random(0,402) local _b28f446c69fd0086ab218e195f5a70f87d280002 = math.random(0,280) local _7cf204188df14ed1dba4606ca44b8170c3bd383f = math.random(0,676) local _0f59d378606932a1946478ea15d74b943b2782a9 = math.random(0,164) local _d650b5d339f8e5585232a436b7f4952253d2d15f = math.random(0,167) local _1007b69a29b9c8b43bb280db6475b4e7bad702ef = math.random(0,145) local _a2124adbb8cade7388657f9d2d8cc2707640d060 = math.random(0,237) local _4425878f8f2cf88d033fa5a8f238f4c34252c67f = math.random(0,663) local _c2234e873e8ac5a69a3ab1ea22c8c2ee022f0eb2 = math.random(0,123) local _b805fb0ec0b8274a7f93e271a04f94236fea6782 = math.random(0,376) local _0d2f253071d63fd81b25c9b5ef23fe42a8f65d60 = math.random(0,124) local _fabd9dfcc52bbac0ce1498c7f4e89aa019592208 = math.random(0,182) local _39957e6c573530f55f0845e47fdf52ba8387c240 = math.random(0,249) local _42dc7383a5e31d8f521e5d57d94c61fc9f0a99a1 = math.random(0,601) local _5ea5ba8a274909458496fe6ffcc0be9c3a04cd9b = math.random(0,117) local _3efa4552100bc29e40e0bcff33f2d8789daa5aa4 = math.random(0,221) local _137b2bddaae10602ddff9c7d0c55c5674efad7cd = math.random(0,211) local _32f587b4b5bf25e908c2b7dabcfeb723a6f85055 = math.random(0,640) local _ea1f28e22d44035d258625789a8bf1ce5bec4e0f = math.random(0,133) local _6fb2e40c510d6b74cd99f43a70433e2e348ce90a = math.random(0,143) local _a18d80589fe64d5d0ab0c5314da88943f781b657 = math.random(0,248) local _41c177dc6e04442c6bce843aa57232deee143179 = math.random(0,274) local _d5d7d5e0499d8f4636ec8481a5b6764bd40bf28e = math.random(0,154) local _a5e74c573501c960fc56f88461bbdaa24dc887e9 = math.random(0,263) local _2fc091fb2a058e6f58a0ebc0ff3ccb356c079c23 = math.random(0,108) local _dfbe9c4267a377cc50ab981275ceed6d83380676 = math.random(0,727) local _63ea0c53cf089e132aa3d6f60a2bb7ff588ec92a = math.random(0,117) local _b806e49a837433b191d084235c2d3bd119ef6ee6 = math.random(0,232) local _f02f9cdc5936452369e487d51599d2be0aa83fa4 = math.random(0,421) local _8328f0217f9192e9b37f18ba2ef60df449bfe827 = math.random(0,378) local _dee8956f16cb3cbff28ee742c1e9fade79ebc055 = math.random(0,146) local _b023b2634ac3a65a2a8f6a0c7a3c03b87522b437 = math.random(0,151) local _8d94d3faaa801e1d14f1cd45ef6472b7c6bd5217 = math.random(0,221) local _cbd911b41780eb08e0b352885de671e4c5bafb64 = math.random(0,6581) local _04493cbe1933ff2ebca1ad9cd13ca3a0a66adde4 = math.random(0,384) local _4568cb6a9668e55656aad045db553aba46fb8b3e = math.random(0,200) local _602349ba84f3b81941de8c775df1483910e2f784 = math.random(0,246) local _0202cbb43f9831996a4bd427b2285fd7f00f687d = math.random(0,518) local _d85786fd32fa5a667c18923aa62b7542395bcd28 = math.random(0,310) local _958ddd77fe8cedb76dc334c3cac972d451af2b4f = math.random(0,158) local _d085c4a17ba1bd84f526911aa71b4f209d4e8bf6 = math.random(0,209) local _3bc1d5577ddb96f012daf8de12d8799b518c41d4 = math.random(0,433) local _63457e6efac1dbc3f91eabaaa4dcb5d7b41c123a = math.random(0,157) local _6c8aba0bfb2f0250bd7e7043d2b1b4f8b0d9bf7b = math.random(0,165) local _3d29e5a04124613dd817ee1ba81792b0c5c498d0 = math.random(0,243) local _9add3abf7a9b606dd14225170200453c8bbc2245 = math.random(0,206) local _16292af2b20d19519ee2ef1d1431aac02523a724 = math.random(0,695) local _c0c7e563f0e1292b374803084faa162bee80e37d = math.random(0,111) local _191b869dce428a8fac99c9c5b985f4c8df94e2e1 = math.random(0,34) local _139473aa5fca855c292d34fad0f1dae2821adde1 = math.random(0,826) local _002ff57dfa2c72e8bec351eb676ecb4851290da4 = math.random(0,185) local _3e47def14891dfde4a2955b88f34b82fd4a3b158 = math.random(0,113) local _3eed1e49f7c9ea770b1419646bd657424cd78395 = math.random(0,148) local _9b616d9f446136611bd67994f8dfe6392f9118f1 = math.random(0,279) local _a7429f218c465e172a5ae29cca552ee22b4cab1c = math.random(0,538) local _edb3b43c0828b0e20c97bc2fe0c50eccd4214d65 = math.random(0,450) local _4d1a1bf7822061d9c29609403404430eac54693d = math.random(0,150) local _b95fb812c0dbc0559fac211338445479788759c7 = math.random(0,522) local _0e3ee4b834b7219a1178c37293b02b9ecc4c6098 = math.random(0,899) local _c52b7ba2e7a976a47e8f5d985c10465116154a46 = math.random(0,190) local _853efe1e4f11f3c93d0d81bfb8f83da59152ef33 = math.random(0,122) local _a651f63cc3816f7e5179c6a464378a6c103c7e0c = math.random(0,91) local _df6119b3935fc2b3a596525947ce5fce0f627d5b = math.random(0,1) local _591747e662697148b2f815d649562bab85678d2c = math.random(0,193) local _3f769bdf390cb5df95b305dcd7ab42bb8d0980d6 = math.random(0,163) local _7d9f85bbb49b353c6509bb56e62144821c02cc92 = math.random(0,183) local _19687388f02951e5e7f78b02fb504a81ad69e77f = math.random(0,148) local _083e06583f071e2e9c2b9ded036098a99665b3a7 = math.random(0,92) local _d666de23109c0f593cbb11a47cb0ec5fb2ccd170 = math.random(0,562) local _858b6277165bbf2aa774194ac91b9d67726d4fcd = math.random(0,56) local _b764fe25c9e0454bca19627fd5a1ccc3ad8e4b66 = math.random(0,1258) local _46698892cd2abd48d3daa68aba16997f2dc28c46 = math.random(0,304) local _767d0f5ed8f01d5fdaf34834afd3dfaa121a17a8 = math.random(0,97) local _48ab8ef47306498d54ed51f2e850e25ec191eb21 = math.random(0,144) local _b2969c8ce5fe3dd25eb2e26d7f92cecc6383ba90 = math.random(0,130) local _ec11e19843d7b314b9fdb6fd596d5a077ee5508d = math.random(0,699) local _9ec7fdde3fcbcb212dd34d0263813cd249683e42 = math.random(0,881) local _26edfe97536677c2d5a0d699d194f6e4f85e392d = math.random(0,237) local _0c024d4ddd48afa066b29d7baf65888e7dc3bc59 = math.random(0,132) local _2e947ee867fe9209bb60d22a79fd0c0bb9e0a0cd = math.random(0,217) local _f1a2200001af5028e1c5e7f513c6822408f2eb78 = math.random(0,492) local _d6eb49d2b719868e7c62d4574fbb2e355bd40147 = math.random(0,5740) local _fd59893c56d39c4b6ed43e5b6fe1fdf81318495b = math.random(0,37) local _b4371b5278543e8f84a45b6e606e4370242af38a = math.random(0,127) local _727767be77627774c9710395cbe0857c511741d1 = math.random(0,245) local _f4e402aaa43036d421f6d4d433636de923e79985 = math.random(0,174) local _2e363f7a1281c56a68a7bf38d6fe5fda2273b7f5 = math.random(0,128) local _ed12c4f4224fbd1e8d2ce964c925af72f009f898 = math.random(0,6652) local _d52f230265a4dabe6052d778e41801e6fcabac32 = math.random(0,523) local _279c094aab98b5d3af7a133f3a5b3f016769de13 = math.random(0,1411) local _bff5630cc07c86e7374afc1d644c82b8b70bdeb7 = math.random(0,105) local _b6a037ccaee85e9f597ea8ba712473a1f637cab1 = math.random(0,127) local _25268fa0fefd798204dd7a83fb5d2d5ea0c79a9b = math.random(0,298) local _051addf7104df563e35ce3a2ab060442db3900af = math.random(0,227) local _fc071ccd383d82bf8fb9f3db42b014e0414baba3 = math.random(0,67) local _9bb5e0ee80d22874dd6c5cdc7dc3124975a24e79 = math.random(0,698) local _d1a21ec10106e9eb4fc8429ef116a0a983ca0328 = math.random(0,105) local _b10a18174e61fe5b980b127ac721d5f6b38a4872 = math.random(0,197) local _eadbe31eee805fb52723d2ce516806c8a784d4fe = math.random(0,213) local _026555101176c367cc00ef467a4d07787ce9198d = math.random(0,116) local _39f002e33b356c1fa34840f1cd99318d180265f9 = math.random(0,611) local _4d2e456a1b453e3cce83ae5cad9e41f2a0e88c43 = math.random(0,1398) local _4630350b3a325de5a40cade526efad33322a79a7 = math.random(0,198) local _0961669fc3b2776ce2b5513cf4e1d30305e46764 = math.random(0,212) local _f7436047cb00e1b0bb2c43c035ed93c6bc624da6 = math.random(0,296) local _65e2115cae1f30858ffb4cc1cdbb7540a8ef98af = math.random(0,81) local _9926783de432331f1523008da042528fa7e7d098 = math.random(0,850) local _0be671011b9c753fd5fa6ff0eda6a3f7a3ac7eba = math.random(0,136) local _d98d3b1ab1e14d9b18f8ab88f44e332aac9ff103 = math.random(0,127) local _b88c6f093ca846850b46c0eb36d649c0c5f4db6d = math.random(0,92) local _9bfd4e486a9f03b916eea9b17298f0d9e004e3a6 = math.random(0,129) local _be7243b3e5b9d1
[QUOTE=LegoGuy;48877359]I am working on a code obfuscator [lua]-obfuscated monstrosity-[/lua] It's a good start, but the solution is right there, so I'll have to keep working on it. I'm happy with what I got so far, though.[/QUOTE] I personally dislike code obfuscation, so I kinda took this as a challenge, and made a deobfuscator myself, so there is the above 'code', deobfuscated: [lua] math.randomseed(806731846) GlobalLib = { } LocalObject.Example = function(self, arg) MsgN('Local Example: ' .. arg) self.Example2(self, arg + 1) end LocalObject.Example2 = function(self, arg) MsgN('Local Example2: ' .. arg) end GlobalLib.Message = 'This is a test!' GlobalLib.DoThing = function() MsgN(GlobalLib.Message) end testFunc = function() MsgN('Test1') end LocalObject.Example(LocalObject, 5) GlobalLib.DoThing() testFunc() localTestFunc() math.randomseed(os.time()) [/lua] It has a few style problems, but nothing you could not fix under a few minutes
[QUOTE=MDave;48878938]I personally dislike code obfuscation, so I kinda took this as a challenge, and made a deobfuscator myself, so there is the above 'code', deobfuscated: [lua] math.randomseed(806731846) GlobalLib = { } LocalObject.Example = function(self, arg) MsgN('Local Example: ' .. arg) self.Example2(self, arg + 1) end LocalObject.Example2 = function(self, arg) MsgN('Local Example2: ' .. arg) end GlobalLib.Message = 'This is a test!' GlobalLib.DoThing = function() MsgN(GlobalLib.Message) end testFunc = function() MsgN('Test1') end LocalObject.Example(LocalObject, 5) GlobalLib.DoThing() testFunc() localTestFunc() math.randomseed(os.time()) [/lua] It has a few style problems, but nothing you could not fix under a few minutes[/QUOTE] Yep, still gotta work on it. Here's the original code: [lua] --asdf local LocalObject = {} GlobalLib = {} function LocalObject:Example(arg) MsgN("Local Example: "..arg) self:Example2(arg+1) end function LocalObject:Example2(arg) MsgN("Local Example2: "..arg) end GlobalLib.Message = "This is a test!" function GlobalLib.DoThing() MsgN(GlobalLib.Message) end testFunc = function() MsgN("Test1") end local localTestFunc = function() MsgN("Local Test1") end LocalObject:Example(5) GlobalLib.DoThing() testFunc() localTestFunc() [/lua]
[video]https://youtu.be/3LXBsTJn8vw[/video] Added a particle emitter effect to my weapon so it looks like it leaves behind a trail of particles when it fires. I also added a function to halo.lua that turns off the stencil so I can draw the full effect and not just the outline
[code]local BOTS = {} local botsName = {"Lego Guy", "a dumb guy", "John", "[KAWAII] Catgirl X3", "Kyle", "xXC00L_1337_KIDXx", "twitch.tv/somestreamer", "Dr. Hax", "Anonymous", "Everything is Awesome", "postal", "Craptasket", "garry :D", "Melted Bu11et"} concommand.Add("gz_create_bot",function(ply) local b = player.CreateNextBot(botsName[math.random(#botsName)]) table.insert(BOTS,b) end) hook.Add("StartCommand","MoveBots",function(ply,cmd) if ply:IsBot() then local target = table.Random(player.GetHumans()) cmd:ClearMovement() cmd:ClearButtons() --local ang = ((ply:EyePos() - Vector(0,0,10))-(target:EyePos() - Vector(0,0,10))):Angle() local ang = ((ply:EyePos() - Vector(0,0,10))-(target:EyePos() - Vector(0,0,10))):AngleEx( Vector(0,0,0) ) local lClamp = ang + Angle(0,180,0) ply:SetEyeAngles(Angle(math.Clamp(lClamp.p,-180,180),lClamp.y,math.Clamp(lClamp.r,-180,180))) cmd:SetViewAngles(Angle(math.Clamp(lClamp.p,-180,180),lClamp.y,math.Clamp(lClamp.r,-180,180))) if target:GetPos():Distance(ply:GetPos()) < 1000 && target:Alive() && ply:Visible(target) then cmd:SetButtons(IN_ATTACK) ply:SelectWeapon("weapon_ar2") end if(target:GetPos():Distance(ply:GetPos()) > 64) then cmd:SetForwardMove(750) end cmd:SetSideMove(math.cos(RealTime())*400) end end)[/code] Bots. Borrowed the code from the old WAYWO thread and fixed it up, for example using AngleEx to fix the bot spazzing out when you're on a curved surface and just other fixes. Works like a charm.
[QUOTE=timmybo5;48878184]dayum , that hud and those weapons, awesome job ! you ported these weapons yourself ?[/QUOTE] Indeed I did.
[QUOTE=AJ10017;48879601][video]https://youtu.be/3LXBsTJn8vw[/video] Added a particle emitter effect to my weapon so it looks like it leaves behind a trail of particles when it fires. I also added a function to halo.lua that turns off the stencil so I can draw the full effect and not just the outline[/QUOTE] Looks pretty cool, do you just move it based on velocity or what? Would be interesting to implement moving HUD in my game mode if you fall too fast.
[media]https://www.youtube.com/watch?v=OF8y2evHG4s[/media] Todo: - Fix some faction-bugs. - Add more buildings. - Start on AI for mobs. - Make some sort of PDA to select building-sketches. Not sure if I should: - make people process items in machines, that are used to build with. (Can obviously cause some entity lag). - make people buy machines (using coins from mobdrops). Where metal is used for the more advanced type of buildings or ammo.
I'm bad at making sweps. [video=youtube_share;ZalU4N2Pe3c]http://youtu.be/ZalU4N2Pe3c[/video] Tesla grenades, nothing special. Just had some nice sound files lying around and figured I should use them for something.
[QUOTE=LegoGuy;48879057]Yep, still gotta work on it. Here's the original code: [lua] big time hacks [/lua][/QUOTE] Mind releasing the obfuscator?
[QUOTE=ScarehGhoost;48883225]Mind releasing the obfuscator?[/QUOTE] I don't think I'm going to release it because: 1. The code makes me and will make other people cry. 2. Obfuscators... pretty much by definition work by a "security by obscurity" method, so releasing the code will make it slightly easier to get the original code as opposed to just working it out yourself. 3. Even if I could make it a web service of "Upload your Lua file and I'll give you garbage", (which I can) I won't because I don't want every idiot shoving their 5 second scripts into it then selling them on ScriptFodder. I made the obfuscator for the express purpose for preventing skids from "cracking" my Automatic-update/anti-leak system. The people who would figure the code out are people who understand the effort it takes to make things, and would respect that I choose to sell some of my work to make my life a little easier. TL;DR No.
That assumption about respect is a dangerous one.
This game has a massive map. The scale is: 20 x Normal Scale. If anyone wanted to know.. :V [video="youtube;9FZ5IEj_njo"]https://youtu.be/9FZ5IEj_njo[/video] I've done some final improvements on the physics. Also, I started adding buildings you can enter. There are already [U]10[/U] buildings that you can enter/exit. Truth about the FrameTime problem, it was a logical error in my code. If you can imagine, I needed to replace the system with [B]coroutines[/B]. For server-regulation. I.E: No speed hackers.... (All calculations are clientside for no lag). The player is not Clientside yet. [B]Still a WIP.[/B]
[QUOTE=FPtje;48883798]That assumption about respect is a dangerous one.[/QUOTE] Even so, programmers who actually know what they're doing tend to be more mature than those who don't. In related news, after making it "better" and tested it with a bigger script, I got this. [code] [ERROR] addons/arcbank/lua/autorun/server/arcload_1_1.lua:337: function or expression too complex near '.' 1. unknown - addons/arcbank/lua/autorun/server/arcload_1_1.lua:0 [/code] MY OBFUSCATOR IS SO GOOD, LUA CAN'T EVEN READ IT! Apparently functions cannot have >= 256 arguments.
[QUOTE=LegoGuy;48886269]Even so, programmers who actually know what they're doing tend to be more mature than those who don't. In related news, after making it "better" and tested it with a bigger script, I got this. [code] [ERROR] addons/arcbank/lua/autorun/server/arcload_1_1.lua:337: function or expression too complex near '.' 1. unknown - addons/arcbank/lua/autorun/server/arcload_1_1.lua:0 [/code] MY OBFUSCATOR IS SO GOOD, LUA CAN'T EVEN READ IT! Apparently functions cannot have >= 256 arguments.[/QUOTE] Are you doing this AST (Abstract Syntax Tree) based, or just simply text manipulaton? If not, you should really take a look at that. Since you want to use your obfuscator to hide the bigger structure and inner workings of an addon (and not just some stupidly simple backdoor..) I would advise to try to produce code that looks totally different from what it seems to be doing, instead of just fcking up locals and global variable accesses. You could try shuffling around a few statements, then make sure they execute in the correct order with goto, replace all loops with conditional gotos, replace ifs with inlined 'and .. or ..' expressions, randomly inline a few of your functions just to mention a few. The functional outcome is the same, but it is almost impossible to restore the original source code. These are the things that make reverse engineering something really difficult, not having to figure out the way to reverse the screwed up global indexes.
I think programming a program to undo the obfuscation of a program would be fun as fuck for some reason. I am a masochist.
"He's a got a thermal!" [video=youtube_share;XxEcvkcQkXw]http://youtu.be/XxEcvkcQkXw[/video] [video=youtube_share;cE0QSm2tNxw]http://youtu.be/cE0QSm2tNxw[/video] i suck at particles still
[QUOTE=wauterboi;48887450]I think programming a program to undo the obfuscation of a program would be fun as fuck for some reason. I am a masochist.[/QUOTE] .. in haskell :wideeye:
hey, Battlefront jetpacks :D found the sounds for them. [video=youtube_share;R8ugAK6-mP0]http://youtu.be/R8ugAK6-mP0[/video]
Sorry, you need to Log In to post a reply to this thread.