Scripts / [STICKY] Smallg's free scripts

Author
Message
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 15th Dec 2020 10:04 Edited at: 15th Dec 2020 15:33
edit: new fishing.lua added which will add a timer so the fish will "escape" if it still gets stuck
i know Gtox's fish move just by being animated, it looks like it's causing issues with the visuals of the script - try the new fish.lua and fishing.lua scripts attached and see if it helps, was some weirdness happening with the fish getting stuck while biting so hopefully it's fixed now

p.s. i've add some fish i made to the original post - not animated though
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 15th Dec 2020 13:17
released the version of bullet holes and blood splatter seen on the previous post
might add some version of explosion effect for RPGs and grenades next..
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
bluemeenie195
6
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 15th Dec 2020 15:09
Thank you for the bullet hole script smallg. I think a lot of people will love the blood splatter added to the script.

I added some gravity to make it run down the walls. Looks pretty cool.

PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 15th Dec 2020 17:25
I'd suggest a slight randomness to the shotgun effect.
Been there, done that, got all the T-Shirts!
PM
chromatic3d
13
Years of Service
User Offline
Joined: 7th Oct 2011
Location: rnd
Posted: 16th Dec 2020 02:46
smallg

The new fish scripts crashes gg. No error message. Also in the old code when in a boat floating over fish this error triggers.

fish.kua:215 att to perform arithnetic on field '?' a nil value

I am using dvaders boat script. I can redisign so you can't ride over "fishing" fish but not sure what is causing it.
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 16th Dec 2020 10:33
it looks like the error is implying it didn't get the terrain height for that location.. is it possible to remove the terrain completely if you dig far enough down? i'll have to set a value if the check fails perhaps.

if the new script is crashing GG it sounds like you have something conflicting with it - i assume you just overwrote the original and don't have 2 copies on the map etc?
can you do a test on a new map just to see if it works for you then
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
chromatic3d
13
Years of Service
User Offline
Joined: 7th Oct 2011
Location: rnd
Posted: 16th Dec 2020 16:35 Edited at: 18th Dec 2020 05:03
Edit
Script works fine in test mode but only says press e to start fishing in standalone. I go to zone without any pole or bait. I go with pole and bait. Both ways it just says press e to start fishing. Pressing e does nothing. E works on boats and other stuff. Fishing works great in test mode even after playing standalone. Not sure what more to do to trouble shoot.


My fault yet again. I added a g_fishscore+1 to your script to use for a hud score display and did not put it in new script.

New script is working with best gear. Will do test with all gear.

edit tested with all gear. Works gtreat with everything. Thank you for your hekp. As for the error I just moved the catchable fish out of the boat lane. The error goes away when you click on it. Are the fish trying to attack?
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 20th Dec 2020 22:58
so everything is working now? bit hard to tell with the edits
yes the fish can attack you - if you don't want them to attack but always flee change the part in the init(e) of fish.lua
if math.random(1,10) < 10 then
f.attackrange = 0
end
to just
f.attackrange = 0
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
chromatic3d
13
Years of Service
User Offline
Joined: 7th Oct 2011
Location: rnd
Posted: 21st Dec 2020 03:39
Script works fine in test mode but in standalone game only says press e to start fishing. I go to fishing zone without any pole or bait. I go with pole and bait. Both ways it just says press e to start fishing. Pressing e does nothing. E works on boats and other stuff. Fishing works great in test mode even after playing standalone. Not sure what more to do to trouble shoot.

When in test mode I have the rod but no bait. The rod pic shows up . It still says press e to start fishing but it won't let you because you don't have bait. In the standalone the rod picture never shows up.

So I do a new game with nothing but fish,rod, bait, zone,and fishing lua on a chair. Same thing in test mode eberything works fine but the standalone won't let you fish. It just keeps saying press e to start fishing. Not sure why there is a difference in the standalone unless I am not including something in the compile.
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 21st Dec 2020 14:23 Edited at: 21st Dec 2020 16:34
copy over the images folder from inside scriptbank\smallg\fishing to your standalone and it should work fine - if you need it to encrypt the files you might be able to link to them via an image zone which should make the standalone process pick them up automatically

Quote: " I go to fishing zone without any pole or bait"

yes, you can't fish without a pole or bait - it will ask if you want to fish whenever you are in the zone but there are checks done in the script which will cancel the fishing - for if you don't have any bait left etc
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
chromatic3d
13
Years of Service
User Offline
Joined: 7th Oct 2011
Location: rnd
Posted: 21st Dec 2020 18:42
Copied the images folder and everything works now. Thanks for your help.
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 22nd Dec 2020 16:25 Edited at: 22nd Dec 2020 16:25
Quote: "Hello smallg
I don´t want to open a new thread because of my question to you.
I´ve set your blood (with spread) -script and tried to edit the "time, until blood will dissapear" to something like "bloodpool grows and then it stops growing and STAYS infinite after a set time".
Could you help me with that, please?"

sure
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
Super Clark
GameGuru TGC Backer
13
Years of Service
User Offline
Joined: 4th Apr 2011
Location: UK
Posted: 13th Jan 2021 06:15
Thanks for the scripts smallg love your work
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 26th Jan 2021 14:46 Edited at: 26th Jan 2021 14:49
was asked for a radio script so here it is
change the entity name to the number of stations (number of files set in the sound slots) and the entity health to adjust how quickly the sound will fade in / out based on player distance
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
=VX=Doggy
15
Years of Service
User Offline
Joined: 29th Nov 2009
Location: USA NC
Posted: 26th Jan 2021 21:32
Awesome script Ty smallg
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 15th Feb 2021 21:00 Edited at: 15th Feb 2021 21:04
updated my map script to include objectives and slightly modified the stock radar & objectives scripts so you can set them to spawn later too (i.e. use the spawn at start = no system - this also means the spawn system works with the default radar if you prefer rather than having it show a dot for objectives that aren't spawned yet)


same set up as the original but i have included everything you need to try it out so just modify it to suit
Quote: "1. create an image for the actual map background
to easily create an accurate map image zoom out and take a picture of your level (best to do this without zones and markers if possible if taking a picture from the editor, otherwise try f9 mode)
2. create an image to use as the player icon and another (optional) icon for the enemies
player icon will rotate so a directional icon is good, enemies wont rotate yet (as no way to get rotation from stock yet) so a circular icon is good.
3. create an (optional) image to use as fog of war (a simple square is all i used)
4. place a non-static entity with map.lua and set it always active
5. press M in game to open the map"


p.s. someone remind me to port it to max if i forget
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
bluemeenie195
6
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 15th Feb 2021 22:17
Works awesome smallg.
Thank you !
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 16th Mar 2021 13:58
boat battles scripts


make sure all entities are set to
static = no
alwaysactive = yes
physics = no
immobile = no

place a bunch of decals and cannon balls on the map somewhere nearby but out the way - these will get reused during the game but you will still need enough to start with.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
bluemeenie195
6
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 16th Mar 2021 15:32
Cool !
Thank you smallg
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 19th Mar 2021 18:03
new version of the boat battles that lets you choose whether the player will start in the boat or not and if he can leave or not - currently you can just get out the boat while it's stopped but leaving the boat just dumps you in the water as the boat doesn't have collision, i'm not sure what i'll do about that, might have to do a bunch of checks to find the nearest land but this'll do for now.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
bluemeenie195
6
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 19th Mar 2021 19:10
Great update !
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 1st Apr 2021 00:06 Edited at: 1st Apr 2021 10:40
post this here too
a function that will let you check if any alphanumeric key was pressed - i even added an option to allow you to specify if it's case sensitive or not
(i used the g_InKey as it's more user friendly than trying to memorise / workout which scan code you need so the actual end use function is way nicer but scancode will allow you to target the entire keyboard so it's probably best to have a function for both)
edit: new version that will detect correctly from multiple scripts


example usages
(shows the key presses locally and counts the number of times w or W is pressed)


(shows the key presses locally and counts the number of times R (not r) is pressed)
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 13th Apr 2021 17:38 Edited at: 13th Apr 2021 17:43
new script(s) for lock picking doors
lockpick script is fully commented but basically WASD moves the picks, Left click to try the lock, Q to stop picking
assign lockpick.lua to a suitable entity in your game (can have 1 unbreakable lock pick or let the player collect multiple as he goes through the game)
assign doorpickablelock.lua (pretty much the same script as the default door but has a small edit to trigger the lock picking) to your doors and define a key name in the key property field so it is locked (the key doesn't need to exist in the map if you don't want it to unlock with a key but you can let the player do either as seen in the video)


anyone have any small things like this they like in other games they would like recreated in GG?
p.s. if you have a project in Max at a later date remind me to update it
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 13th Apr 2021 21:12
really cool ..thanks smallg
PC 1 Specs:
AMD RYZEN 3800x OPTA CORE @3,90, 64GB RAM DDR4 @3200,
M/B GIGABYTE AX370, SVGA ATI XFX RX580 GTS XXX EDITION 8GB GDDR5 , 1X SSD M.2 TRANSCEND S110 1TB, 1X SSD SAMGUNG EVO QVO 870 1TB SATA3 ,1X HDD SEAGATE BARRACUDA 4TB, 1X HDD TOSHIBA 2TB



PC 2 Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA RADEON R9 380 4GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM
Tauren
9
Years of Service
User Offline
Joined: 25th Jun 2015
Playing: PUBG,Conan Exiles,WoW,HoMM III,MoO 2,Master of Orion 2016
Posted: 14th Apr 2021 03:10
Wow, very useful stuff. Thank you so much, smallg !
Thanks for your articles, explanations and examples. You are the best community I have met.
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 14th Apr 2021 17:37 Edited at: 14th Apr 2021 17:46
prone mode (crawling) in GG

holding Q now slows the player down drastically, disables sprinting and jumping.

overwrite your "gameplayercontrol.lua" script (make a back up first) - if you update GG this file will also get restored so remember not to update GG if you are using this in a project or remember to put this script back again
(make sure you put the "goprone.lua" in scriptbank\smallg but you don't need to assign it to an entity)
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
bluemeenie195
6
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 14th Apr 2021 18:54
Nice ! Thank you
PM
SilverBird
3
Years of Service
User Offline
Joined: 12th Apr 2021
Location:
Posted: 16th Apr 2021 23:27
Hello smallg

The new lockdoors is not working on me its invisible and pop error in game guru when i test it
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 16th Apr 2021 23:57
Quote: "prone mode (crawling) in GG


holding Q now slows the player down drastically, disables sprinting and jumping.

overwrite your "gameplayercontrol.lua" script (make a back up first) - if you update GG this file will also get restored so remember not to update GG if you are using this in a project or remember to put this script back again
(make sure you put the "goprone.lua" in scriptbank\smallg but you don't need to assign it to an entity)"



great work like always,..

any chance to have a lean/peek system or/and and hiding system (so the player is able to hide into locker, under bed and so on)??
PC 1 Specs:
AMD RYZEN 3800x OPTA CORE @3,90, 64GB RAM DDR4 @3200,
M/B GIGABYTE AX370, SVGA ATI XFX RX580 GTS XXX EDITION 8GB GDDR5 , 1X SSD M.2 TRANSCEND S110 1TB, 1X SSD SAMGUNG EVO QVO 870 1TB SATA3 ,1X HDD SEAGATE BARRACUDA 4TB, 1X HDD TOSHIBA 2TB



PC 2 Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA RADEON R9 380 4GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 17th Apr 2021 09:46 Edited at: 17th Apr 2021 09:47
Quote: "The new lockdoors is not working on me its invisible and pop error in game guru when i test it"

any hint on what the error is?
make sure the images and scripts are all there and in the correct place - you can't move them unless you edit the script

Quote: "any chance to have a lean/peek system or/and and hiding system (so the player is able to hide into locker, under bed and so on)?"

well you could use the prone script to hide under a bed... any logic related to being seen by whatever you're hiding from would need to be part of the AI script.
leaning would be good, i'll add it soon
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Tiger1980
3
Years of Service
User Offline
Joined: 21st Mar 2021
Location:
Posted: 17th Apr 2021 16:25
The Timer works great, i add an Trigger Zone and he now shows up when iam on the trigger.
But there is one problem, if i get on the Trigger Zone again the timer is not reset, he keeps counting.
If he once has reached zero then he kills me instantly if i get on de Trigger zone again.
I want to make an outside area timer, when the player goes outside the game location
PM
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 17th Apr 2021 16:59 Edited at: 17th Apr 2021 16:59
Quote: "[quote=]well you could use the prone script to hide under a bed... any logic related to being seen by whatever you're hiding from would need to be part of the AI script.
leaning would be good, i'll add it soon "


great.. i'll wait for lean

many thanks smallg.. lifesaver as always
PC 1 Specs:
AMD RYZEN 3800x OPTA CORE @3,90, 64GB RAM DDR4 @3200,
M/B GIGABYTE AX370, SVGA ATI XFX RX580 GTS XXX EDITION 8GB GDDR5 , 1X SSD M.2 TRANSCEND S110 1TB, 1X SSD SAMGUNG EVO QVO 870 1TB SATA3 ,1X HDD SEAGATE BARRACUDA 4TB, 1X HDD TOSHIBA 2TB



PC 2 Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA RADEON R9 380 4GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 17th Apr 2021 17:36
Quote: "The Timer works great, i add an Trigger Zone and he now shows up when iam on the trigger.
But there is one problem, if i get on the Trigger Zone again the timer is not reset, he keeps counting.
If he once has reached zero then he kills me instantly if i get on de Trigger zone again.
I want to make an outside area timer, when the player goes outside the game location"

it's not intended to work with zones as zones can't be always active the timer would stop working once you're out of range.
there isn't a way to pause the time in that script currently, i think having it work with checkpoints to extend the timer would be a good idea though.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 19th Apr 2021 14:46 Edited at: 21st Apr 2021 16:43
bow and arrows scripts
there's a few different parts to it but i included a demo map so you can see how it fits together
make sure your gunID matches the intended weapon you will use (GG assigns this so Prompt(g_PlayerWeaponID) to see it.
use [ and ] to swap ammo type


attachment should have everything you need to test it out, just drop it in your GG folder - any problems with the demo let me know
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
granada
Forum Support
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 19th Apr 2021 14:49
Looks great , very nice work

Dave
Windows 10 Pro 64 bit
GeForce RTXâ„¢ 2070 GAMING OC 8G
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
3840 x 2160 ,60 Hz
PM
bluemeenie195
6
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 19th Apr 2021 15:32
Another great one from smallg !
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 19th Apr 2021 16:21 Edited at: 19th Apr 2021 16:43
Quote: "any chance to have a lean/peek system or/and and hiding system (so the player is able to hide into locker, under bed and so on)??"


hold Q and then press A/D to peek to the side or W to peek over obstacles

overwrite your "gameplayercontrol.lua" script (make a back up first) - if you update GG this file will also get restored so remember not to update GG if you are using this in a project or remember to put this script back again

at the top you have 2 new settings for how far the "peek" is
local leanDistSide = 30
local leanDistUp = 20
not sure i will worry about fixing the player wobble (he still thinks he's moving) but if it's a big issue i can look into it.

would be a lot easier to use if we had more buttons but Q was the best one that works that isn't being used imo

p.s. it overwrites the prone version as it requires the Q key logic so prone is not possible with this... i guess you'll just have to make do with crouching or ask Lee to add more g_KeyPress commands
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 19th Apr 2021 16:59
great smallg ...cant wait to try it
PC 1 Specs:
AMD RYZEN 3800x OPTA CORE @3,90, 64GB RAM DDR4 @3200,
M/B GIGABYTE AX370, SVGA ATI XFX RX580 GTS XXX EDITION 8GB GDDR5 , 1X SSD M.2 TRANSCEND S110 1TB, 1X SSD SAMGUNG EVO QVO 870 1TB SATA3 ,1X HDD SEAGATE BARRACUDA 4TB, 1X HDD TOSHIBA 2TB



PC 2 Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA RADEON R9 380 4GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 19th Apr 2021 17:01
Quote: "old Q and then press A/D to peek to the side or W to peek over obstacles

overwrite your "gameplayercontrol.lua" script (make a back up first) - if you update GG this file will also get restored so remember not to update GG if you are using this in a project or remember to put this script back again

at the top you have 2 new settings for how far the "peek" is
local leanDistSide = 30
local leanDistUp = 20
not sure i will worry about fixing the player wobble (he still thinks he's moving) but if it's a big issue i can look into it.

would be a lot easier to use if we had more buttons but Q was the best one that works that isn't being used imo

p.s. it overwrites the prone version as it requires the Q key logic so prone is not possible with this... i guess you'll just have to make do with crouching or ask Lee to add more g_KeyPress commands"



cool... could we have an option to vault over obstacles too?? only little one s?
PC 1 Specs:
AMD RYZEN 3800x OPTA CORE @3,90, 64GB RAM DDR4 @3200,
M/B GIGABYTE AX370, SVGA ATI XFX RX580 GTS XXX EDITION 8GB GDDR5 , 1X SSD M.2 TRANSCEND S110 1TB, 1X SSD SAMGUNG EVO QVO 870 1TB SATA3 ,1X HDD SEAGATE BARRACUDA 4TB, 1X HDD TOSHIBA 2TB



PC 2 Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA RADEON R9 380 4GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 19th Apr 2021 21:55
Even 100
Epic Games
Coders couldn't put prone into Fortnite! And now you've outdone them again with flaming arrows>>
Every Flame
Bow Hits
PM
bluemeenie195
6
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 20th Apr 2021 00:40
Hi smallg,
I can't seem to get your bow and arrow scripts to work.
Its giving me an error 403
PM
bluemeenie195
6
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 20th Apr 2021 00:41
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 20th Apr 2021 09:03 Edited at: 20th Apr 2021 09:08
ah i think it's because i made the arrow, i forgot to include it
please try the new attachment (on the original post) and see if it works now
p.s. you will need to overwrite the map again as your one will likely have removed the arrows as they were missing
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
osiem80
5
Years of Service
User Offline
Joined: 24th Jan 2019
Location: Poland
Posted: 20th Apr 2021 12:32
oh yea, the leaning script was one of the things i asked for a long time!
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 20th Apr 2021 13:02 Edited at: 20th Apr 2021 15:54
vaulting script, allows you to climb on obstacles or vault over them etc


overwrite your "gameplayercontrol.lua" script (make a back up first) - if you update GG this file will also get restored so remember not to update GG if you are using this in a project or remember to put this script back again
it requires a slightly altered version of physlib.lua (because i had to add a new function to it based on one of the originals) so follow the same advice for this file too

you will see new settings at the top of the script to adjust the settings, play around with them to suit your game


p.s. this version has the lean logic included too

edit: new version which can make camera look up/down while vaulting
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
PCVeteran
User Banned
Posted: 23rd Apr 2021 21:47
Could enhanced mobility like Titanfall or COD Advanced Warfare be done in the GameGuru engine and if so, how?

Example footage:

https://www.youtube.com/watch?v=1p-sMWets3Q

Not looking for anything this polished, just something basic with double jumping and dashing.
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 24th Apr 2021 15:21 Edited at: 24th Apr 2021 15:27
Quote: "Could enhanced mobility like Titanfall or COD Advanced Warfare be done in the GameGuru engine and if so, how?
Example footage:

Not looking for anything this polished, just something basic with double jumping and dashing."

done

and done

remember to back up your gameplayercontrol.lua first

double tap the move key to dodge in the desired direction (or press space while moving if you enable it)

press space again while jumping to double jump

settings for both can be found at the top of the script
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 25th Apr 2021 22:36
HI smallg.. I tried the lean/peek + vault script and it works like a charm ..btw i would to ask if could be possible to MAKE the movement more soften as it is very fast...some way to make it feel more natural...

btwe graeat work like usaulyy and many thanks for your effort with gg scripting..
PC 1 Specs:
AMD RYZEN 3800x OPTA CORE @3,90, 64GB RAM DDR4 @3200,
M/B GIGABYTE AX370, SVGA ATI XFX RX580 GTS XXX EDITION 8GB GDDR5 , 1X SSD M.2 TRANSCEND S110 1TB, 1X SSD SAMGUNG EVO QVO 870 1TB SATA3 ,1X HDD SEAGATE BARRACUDA 4TB, 1X HDD TOSHIBA 2TB



PC 2 Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA RADEON R9 380 4GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 25th Apr 2021 23:23
Quote: "HI smallg.. I tried the lean/peek + vault script and it works like a charm ..btw i would to ask if could be possible to MAKE the movement more soften as it is very fast...some way to make it feel more natural...
"

top of the script has settings for you to tweak as always
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
JC LEON
14
Years of Service
User Offline
Joined: 22nd Apr 2010
Location:
Posted: 26th Apr 2021 16:41
Quote: "top of the script has settings for you to tweak as always"


thanks i'll give a look at it tonight
PC 1 Specs:
AMD RYZEN 3800x OPTA CORE @3,90, 64GB RAM DDR4 @3200,
M/B GIGABYTE AX370, SVGA ATI XFX RX580 GTS XXX EDITION 8GB GDDR5 , 1X SSD M.2 TRANSCEND S110 1TB, 1X SSD SAMGUNG EVO QVO 870 1TB SATA3 ,1X HDD SEAGATE BARRACUDA 4TB, 1X HDD TOSHIBA 2TB



PC 2 Specs:
AMD QUADCORE 880K @4.5GHZ, 32GB RAM DDR3 1600, M/B ASUS A88XM-PLUS
SVGA RADEON R9 380 4GB , SSD KINGSTON A400 1TB, 2X HHD SEAGATE BARRACUDA 4TB
PM

Login to post a reply

Server time is: 2024-12-22 02:29:37
Your offset time is: 2024-12-22 02:29:37