Scripts / new scripting updates

Author
Message
MChapman
8
Years of Service
User Offline
Joined: 19th May 2015
Location: USA
Posted: 29th Apr 2017 02:46 Edited at: 29th Apr 2017 21:26
is there A way to find all the newer scripting commands?


more specifically though I was wondering if making stamina was possible? or temporary sprint ?
Markchapman10 is my Skype let's have some dev talk.
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 30th Apr 2017 01:47
Commands can be found in the global.lua file in the scriptbank folder.

Did you check out this thread, as smallg has made a few of these scripts aready.
https://forum.game-guru.com/thread/207801
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

MChapman
8
Years of Service
User Offline
Joined: 19th May 2015
Location: USA
Posted: 30th Apr 2017 03:16
yes, I check his post from time to time. I thought i seen a movement command for the player or a sprint command but i wasn't sure. I haven't yet used any scripts that weren't mine though. ( no offence smallg cause I have had to look at alot of your scripts to get mine where they are today.) , i checked the global but i didn't see what i was looking for, there is so much in there i didn't want to miss anything though.
Markchapman10 is my Skype let's have some dev talk.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 30th Apr 2017 18:02
no worries, it's always nice to hear that i helped but nothing better than doing your own as it makes sure the game is what you want it to be, sometimes it's hard to get your vision across to someone else

as for sprinting you should be able to use
g_KeyPressSHIFT = 1
to determine if the player is attempting to sprint, the rest would just be controlled by a variable or 2.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
MChapman
8
Years of Service
User Offline
Joined: 19th May 2015
Location: USA
Posted: 2nd May 2017 02:51
I honestly never thought of that.... lol, to save the day again! I thought there was going to be a way of increasing speed, and to disable sprinting, I think i was over thinking it though. Thanks Smallg.
Markchapman10 is my Skype let's have some dev talk.
MChapman
8
Years of Service
User Offline
Joined: 19th May 2015
Location: USA
Posted: 8th Jul 2017 22:05
is the main lua guide up to date with all the new lua features? I looked through it and I didn't see anything new.
Markchapman10 is my Skype let's have some dev talk.
MrEaKing(YT)
7
Years of Service
User Offline
Joined: 9th Mar 2017
Location: Ontario
Posted: 14th Jul 2017 06:48 Edited at: 14th Jul 2017 06:54
ya you can now make a stamina code. Here is what I came up with.
Just paste into your scripts folder both the stamina folder with graphics and the script then attach script to barrel and make always active. I tried to comment the code as much as I could so I hope you can figure it out and alter it to your own needs.

oh and I was able to increase speed to with my adrenaline shot i made. but what i had to do was make a global variable then change the code inside the gameplayercontrol.lua and changed this SetGamePlayerControlMaxspeed to multiply by 2 if my variable was true. hope that helps
Youtube - www.Youtube.com/MrEaKing Twitch - www.Twitch.com/MrEaKing Steam - Mr EA King

ELC - Explore, Learn and Create.

Desktop - HomeBuilt- Win 7 - AMD-FX 8300 Eight Core 3.30 Ghz
12 GB RAM
GeForce GTX 1050 Ti 4GB

Attachments

Login to view attachments
Tauren
8
Years of Service
User Offline
Joined: 25th Jun 2015
Playing: PUBG,Conan Exiles,WoW,HoMM III,MoO 2,Master of Orion 2016
Posted: 14th Jul 2017 20:06
MrEaKing(YT), big thanks for this useful code with detailed comments!
Desktop: Phenom II x3@2900Mhz, 16Gb DDR3 1600, Radeon 7770 1Gb GDDR5, Win7 64Bit
Notebook: i3@1800Mhz, 8Gb DDR3 1600, no external video, Win7 64Bit+Ubunta(novice)
PM

Login to post a reply

Server time is: 2024-04-26 18:49:39
Your offset time is: 2024-04-26 18:49:39