Scripts / [STICKY] Smallg's free scripts

Author
Message
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 9th May 2021 16:44 Edited at: 9th May 2021 16:48
couple scripts to simulate skating/skiing movement
i had something like this in mind

though mine is a very basic attempt - i just threw it together to see if it was possible in GG, if i get chance i should rewrite it to be a much better version

slopes work best on terrain mode but if you want to use actual objects as your ski surfaces (allows you to be more specific about when and where the player will ski/skate) you can assign skateable.lua to them (and make sure you set some value in skate_surface_name = )

make sure skating.lua is always active = yes
p.s. only works in third person right now, you need to add some nil checks if you want to use it in first person
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
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th May 2021 16:12 Edited at: 17th Jun 2021 16:10
wanted to attempt a dodge mechanic like the AI in Resident Evil - The Village
if you have the fantasy pack you can try this out on the priest model
(or if you have a model with similar animations you can adjust the frames at the top of the script)


edit 17/06/2021 - found a bug with the dodge code
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
5
Years of Service
Recently Online
Joined: 28th Oct 2018
Location:
Posted: 10th May 2021 16:52
Cool !
Thanks smallg
PM
Supe
GameGuru Tool Maker
4
Years of Service
User Offline
Joined: 4th Feb 2020
Location: WORLD
Posted: 21st May 2021 16:48
i cant turn on the radio is there any problems?
Desktop: corei5, ram32, graphic card6GB
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 21st May 2021 19:09
Quote: "i cant turn on the radio is there any problems?"

did you try turning it off and on again?
what radio is that?
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Supe
GameGuru Tool Maker
4
Years of Service
User Offline
Joined: 4th Feb 2020
Location: WORLD
Posted: 21st May 2021 19:48
radio.lua your script. i give this script to radio object and nothing happens. (i dont know why?)
Desktop: corei5, ram32, graphic card6GB
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 22nd May 2021 12:44
did you follow the instructions?
Quote: "--use the entity name to set the number of songs and health to set how quickly the sound fades"
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Supe
GameGuru Tool Maker
4
Years of Service
User Offline
Joined: 4th Feb 2020
Location: WORLD
Posted: 22nd May 2021 20:39
yes , and how i can add health. there is not a health bar to change it.
Desktop: corei5, ram32, graphic card6GB
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 22nd May 2021 20:56
if you have the not adjusted the health it is probably just too low volume for you to hear.
the health is set like any other entity in GG, adjust the strength property - most stock objects default to around 25 strength/health so this is a good starting value to try
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Supe
GameGuru Tool Maker
4
Years of Service
User Offline
Joined: 4th Feb 2020
Location: WORLD
Posted: 23rd May 2021 02:34
thank you i will test it.
Desktop: corei5, ram32, graphic card6GB
c4ever08
8
Years of Service
User Offline
Joined: 18th Sep 2015
Location:
Posted: 4th Aug 2021 02:31
Hi Smallg I was thinking today about something I haven't seen in GG yet Aim Assist when you can lock on to an enemy when you aim your weapon Can this be done ? I figured I post the Idea here cause it could be useful to a few of us
PM
MK83
GameGuru TGC Backer
17
Years of Service
User Offline
Joined: 10th Jun 2006
Location: Greeneville, TN USA
Posted: 9th Sep 2021 17:36
Quote: "lock on to an enemy when you aim your weapon"
That would be cool.
AMD Phenom x4 9850 2.70 Ghz , 6 Gb ram, 2GB EVGA Geforce GTX 750, Win 10 x64 Passmark score: 3091



PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th Sep 2021 11:59
it would be but i don't think it's possible with the way GG handles the gun/player arms to update them independently to the camera so it would likely end up just looking really silly or like you are battling a very jerky camera as it tries to move automatically to auto target and you are trying to move it / the player as well..
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
chromatic3d
12
Years of Service
User Offline
Joined: 7th Oct 2011
Location: rnd
Posted: 9th Oct 2021 13:43 Edited at: 9th Oct 2021 13:46
smallg I love the skating code. I am making a level to test it. Thank you.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 9th Oct 2021 17:42
thanks, it was an interesting one, made purely because i enjoyed the gameplay from 'it takes two' - it's certainly not polished but it does make for something rather different in GG.. it's always difficult to know how long / much effort to spend on such things
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
chromatic3d
12
Years of Service
User Offline
Joined: 7th Oct 2011
Location: rnd
Posted: 11th Oct 2021 09:48 Edited at: 11th Oct 2021 10:47


Here is a test run(without fanfair) just to layout the level. This script is fun to work with. The 'it takes two' clip reminds me of "the grinch who stoled xmas" and the sled full of presents(and the poor dog).

The capture is choppy but the game speed is great.

If the slope is to steep I get falling damage like at the top of the hill in the video. I just turn it off. What does raydownwhileon do? I don't want to use falling damage.

I like the sliding stop after sliding is turned off. Very cool script.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 11th Oct 2021 10:20 Edited at: 11th Oct 2021 10:21
nice course
to post a video you use only the end part of the link inside the embed commands
i.e. [video = youtube]rLxAhx_OfX4[/video] (without the spaces)

raydownwhilejumping is used when skating on objects to determine when you're close enough to landing again to automatically start skating on any skateable objects below you after a jump - rather than needing to press E after each jump
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
chromatic3d
12
Years of Service
User Offline
Joined: 7th Oct 2011
Location: rnd
Posted: 11th Oct 2021 11:17 Edited at: 24th Oct 2021 03:50


Quote: "nice course "


Just wait a week!
PCS
7
Years of Service
User Offline
Joined: 7th Jul 2016
Playing:
Posted: 6th Nov 2021 18:44 Edited at: 6th Nov 2021 18:44
HI Smallg, i just want to know if you would have to rewrite the ally script now , that you have made in 2014, would you change anything now after all these years or would you kept it the same.?
https://forum.game-guru.com/thread/207801?page=5#msg2500805
The reason i ask is, i have been thinking about Amenmoses Helicopter script were the Helli can attack NPC,
would it not be easier today to make a script were one NPC attack another one. ?
Windows 10 Pro 64-bit
Intel(R) Core(TM) i5-4590S CPU @ 3.00GHz
RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 6th Nov 2021 22:12
easier yes with ray casting but it still requires being custom coded for the weapons etc which is fine if i wanted to spend the time on it but kinda requires too much script setup for most people i'm sure.. - looks like GG classic will never get a stock way for NPCs to shoot each other but Max apparently has one so might be tempted to write something for that in future
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
NEXTGEN.DEV Flo
8
Years of Service
User Offline
Joined: 11th Feb 2016
Location:
Posted: 20th Nov 2021 11:48 Edited at: 20th Nov 2021 11:54
Hey
I try to use the infinite spawn Script and it works perfekt. Now i want to use it with a zombie, i chance the lines in the script and it works but the zombie dont walk. The npc stand on same place and show me the walking Animation. When i shot him he's die, the amination is right He is falling on the ground after them he stand up and show me walking Animation again.
Please can you help me and call me the solution so solve my problem?
Cheers and thanks Flo.
PM
Peri
Game Guru Backer
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location:
Posted: 22nd Jan 2022 18:37
Hi Smallg

about the sprint limit script, when the sprint count reach the 0 it crash for me, maybe the last update made the error
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 23rd Jan 2022 10:23 Edited at: 23rd Jan 2022 16:59
Peri wrote: "Hi Smallg

about the sprint limit script, when the sprint count reach the 0 it crash for me, maybe the last update made the error "

sounds like GG also ran out of energy
looks like the crash is caused by not setting a valid (or any) object name in the 'ifused' field
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Peri
Game Guru Backer
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location:
Posted: 23rd Jan 2022 19:58
Ho I see ,
I didn't saw the setup guide about this one
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 27th Jan 2022 15:27
new script for max which is a basic move and rotate script which can have many uses for animating simple movements of objects such as rotate and hover on the spot or bounce back and forth etc
give your object the script and then adjust the sliders to change the way it moves and rotates, if you set a time it will pingpong the movement (i.e. reverse the motion when the timer is reached)
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
5
Years of Service
Recently Online
Joined: 28th Oct 2018
Location:
Posted: 10th Feb 2022 20:01
Cool, thank you smallg
PM

Login to post a reply

Server time is: 2024-04-19 18:36:43
Your offset time is: 2024-04-19 18:36:43