Scripts / [STICKY] Smallg's free scripts

Author
Message
Meows
12
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 28th Nov 2016 18:09
Quote: "small_g:: That's correct, change the name of the zone in the properties and it will show that on screen.

For entity numbers you can hover the mouse over them and it will be in the bottom left of the game guru status bar (there's a long number too - ignore that, you want the one to the left).
Basically the first thing you place is always entity 1 (includes markers, zones etc) and then counts up from there.

To snap entities press B til it says snap in bottom right of the status bar.

And welcome back "


Awesome! Many Many thanks,

I would like to present four requests,
1- I need links regarding the HOW TOO'S of importing FPS Creator models into GameGuru, animated and non animated, I have a few thousand to do. I made a post for the General in Scripts, about this with the details of some of what I have unsuccessfully tried. Included if you need it is a list of ALL the CSI commands.

2- where is the script like we had in FPS Creator to show/hide the radar? Press R and it shows Press R again and it is hidden.

3- How do we MOVE a Entity from A to B then Move it back, just because it needs to be moved.

4. What is the secret to get the Medipack to allow the user to actually pick up health packs?

Bugsy
15
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 29th Nov 2016 03:06
hey smallG, you wrote this "remove weapons winzone" script for me a while ago, and while the build process seems to know to include the level it goes to, the win zone itself simply doesn't work. I don't know what's wrong, can you troubleshoot it? when i walk into the win zone, there isnt so much as a message, and in the built game, the second level files are there, but the win zone doesnt work in the level



that is the script. the weapons dont even go away when i walk in the zone.
Hire Me! I model, animate, cook, clean, and texture!
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 29th Nov 2016 18:57 Edited at: 29th Nov 2016 19:29
edit: double post
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
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 29th Nov 2016 19:29 Edited at: 29th Nov 2016 19:49
1. sorry, i can't help with that, i stay clear of importing into GG and only use the store or models already imported.
2. see attachment (press P to toggle)
edit;
you can set the toggle mode to off in the script (so same function as stock radar script)
but i also changed the default depth of the radar to appear behind other images - useful for reading notes in game etc.
3. perhaps amenmoses platform script fits this?
https://forum.game-guru.com/thread/216730
4. already in the list on the first post
https://forum.game-guru.com/outbound?url=https%3A%2F%2Fforum.game-guru.com%2Fthread%2F207801%3Fpage%3D9%23msg2526672


@Bugsy make sure your lua file is called winzone_no_weapons.lua
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: 30th Nov 2016 19:55
by request, new healing zone with some extra settings to improve it's usefulness
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
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 30th Nov 2016 21:13
I got a mention, woo hoo.

ezentitymover.lua is getting way more complex than I anticipated, I added a 'move forward' command and then realised that different directional entities have different ideas of what 'forward' is so that is one complication I'm fixing, next up is some weirdness called quaternions, all the rage apparently but a right bugger to get a handle on.

Once I'm happy with it I'll pull out the code that will be common with my cutscene and pickuppable scripts and put it into a library script so all three scripts can use it, anyone wanting to make a Portal style game should be well sorted.

Been there, done that, got all the T-Shirts!
PM
Bugsy
15
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 30th Nov 2016 22:48
@smallg:
that is exactly what it is named
Hire Me! I model, animate, cook, clean, and texture!
=VX=Doggy
14
Years of Service
User Offline
Joined: 29th Nov 2009
Location: USA NC
Posted: 1st Dec 2016 22:13
TY smallg!
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 3rd Dec 2016 12:36 Edited at: 3rd Dec 2016 12:38
replay system so that you can watch your level back once completed - note, very much a WIP.

apply save_replay.lua to an always active = yes object, set the next level in it's 'ifused' field and replay_winzone.lua to your winzone (note; also include the next level in this ifused too just for standalone reasons)
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
gd
7
Years of Service
User Offline
Joined: 21st Jul 2016
Location: Small Darkroom with no red light
Posted: 3rd Dec 2016 20:03 Edited at: 4th Dec 2016 15:37
Hi smallg, I was wondering whether you would help with a lua script I'm trying to make?

The script is to re-spawn ammo in about 8 seconds after I have taken them. I have looked in to using a timer and moving it out of range then back to its original location on the map. The issue I having is if you pick up another gun ammo type before the timer is up it will only re-spawn the first ammo to the last location. I guess I'm not storing my entity / locations variables correctly, etc.

Any help would be great... still new to lua scripting.


Thanks smallg or anybody who can help.
Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2 MDA mode, Water cooled with an old Victorian cast iron radiator and a industrial leather belt driven fan - That's what you call Steampunked.

Laptop - M17xR3

A new competition running for GG
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 5th Dec 2016 21:24
as the new update has given us some new weapon upgrading commands here's a couple scripts to upgrade your weapons.

pretty simple settings and a better explanation (i hope) in the video but if i get time i will add some for shotguns and the RPG at a later date (no promises).
*of course this is only suited for the modern weapons*
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: 5th Dec 2016 21:31 Edited at: 5th Dec 2016 21:44
@gd here's your request

@bugsy the script i posted before has a double _ in the main(e), should look like this

sorry about that
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
gd
7
Years of Service
User Offline
Joined: 21st Jul 2016
Location: Small Darkroom with no red light
Posted: 5th Dec 2016 21:36
Hi Smallg, thanks for that. I will test as soon as I get a a moment. Great work as always
Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2 MDA mode, Water cooled with an old Victorian cast iron radiator and a industrial leather belt driven fan - That's what you call Steampunked.

Laptop - M17xR3

A new competition running for GG
PM
Bugsy
15
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 5th Dec 2016 22:38
smallG you're awesome. I'll try this now, thank you.
Hire Me! I model, animate, cook, clean, and texture!
gd
7
Years of Service
User Offline
Joined: 21st Jul 2016
Location: Small Darkroom with no red light
Posted: 6th Dec 2016 19:20
Hi Smallg, I have a problem with the code you made me. The problem is It is just so bloody good and I need to focus on my scripting more.

Thanks again Smallg... I just wished I had you on speed dial, do you teach as well? lol
Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2 MDA mode, Water cooled with an old Victorian cast iron radiator and a industrial leather belt driven fan - That's what you call Steampunked.

Laptop - M17xR3

A new competition running for GG
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 6th Dec 2016 21:12
i didn't really do much, just changed your variables to arrays and it works already
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
cytrx123
7
Years of Service
User Offline
Joined: 7th Dec 2016
Location:
Posted: 8th Dec 2016 12:42 Edited at: 9th Dec 2016 11:58
hello smallg my name Tristan young I am making my first game I WOULD NOT KNOW HOW TO CODE I am this wondering if could anymore make a script with time limit of 5 mins and for your own character controller for both teams r and make zombies run at you you sorry about my speliing
PM
gd
7
Years of Service
User Offline
Joined: 21st Jul 2016
Location: Small Darkroom with no red light
Posted: 8th Dec 2016 20:15
Hi Smallg, after the last update from TGC for GG I can't get your team based AI with reloading to work. I even made a refresh install of GG but still the same issue.

The problem I'm having is; lets say I have two teams one named red, the other named blue and I name myself blue. Its the blue team that tries to kill me. What's that all about. It worked find before the update but not now. Can you help?

Thanks Small.
Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2 MDA mode, Water cooled with an old Victorian cast iron radiator and a industrial leather belt driven fan - That's what you call Steampunked.

Laptop - M17xR3


A new competition running for GG
PM
Earthling45
7
Years of Service
User Offline
Joined: 3rd Sep 2016
Location: Zuid Holland Nederland
Posted: 8th Dec 2016 21:58
Hi smallg, i have a question if it is possible to have a script which sets a timeclock for a certain task.

Say, the player leaves a zone which triggers the timeclock and if he does not perform the task in time it is game over, is that possible?
gd
7
Years of Service
User Offline
Joined: 21st Jul 2016
Location: Small Darkroom with no red light
Posted: 9th Dec 2016 00:32 Edited at: 9th Dec 2016 00:33
Hi Earthling45, I think this will be a good start for what you need. Smallg's - timed switch to find and open door. Just change it to a start trigger zone and the door to a finish trigger zone and change a little code for the door to end the game.
Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2 MDA mode, Water cooled with an old Victorian cast iron radiator and a industrial leather belt driven fan - That's what you call Steampunked.

Laptop - M17xR3


A new competition running for GG
PM
Earthling45
7
Years of Service
User Offline
Joined: 3rd Sep 2016
Location: Zuid Holland Nederland
Posted: 9th Dec 2016 02:07
Thanks gd
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 9th Dec 2016 18:47
Quote: "hello smallg my name Tristan young I am making my first game I WOULD NOT KNOW HOW TO CODE I am this wondering if could anymore make a script with time limit of 5 mins and for your own character controller for both teams r and make zombies run at you you sorry about my speliing"

multiplayer doesnt allow custom scripts but you can play team vs AI zombies already as far as i am aware (multiplayer has never worked for me so can't say for sure).

Quote: "Hi smallg, i have a question if it is possible to have a script which sets a timeclock for a certain task.
Say, the player leaves a zone which triggers the timeclock and if he does not perform the task in time it is game over, is that possible?"

seems you both want something similar in a timer to complete the level / task so here's something i put together real quick for you (more info in 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
Earthling45
7
Years of Service
User Offline
Joined: 3rd Sep 2016
Location: Zuid Holland Nederland
Posted: 9th Dec 2016 22:00
Thanks for the scripts smallg

For me it is indeed sufficient if the player reaches the winzone within a certain time.
Bugsy
15
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 10th Dec 2016 07:47
hey smallG, I ask a lot of you, but I have another request and a question that may become a request

one request is for a simple AI character who stands and shoots where you point him.

I also ask: how do you make separate loading screens for each level?
Hire Me! I model, animate, cook, clean, and texture!
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th Dec 2016 20:06 Edited at: 10th Dec 2016 22:04
Quote: "simple AI character who stands and shoots where you point him"

do you mean point him in editor?

i think this one (rookie.lua) only works for the robots in the video (i got them from the steampunk collection released here on the forums) but should be possible to swap the animations for the normal soldiers if they don't work already.

or like a follower in game?

been ages since i made this (ranger_ally.lua) one but i believe you just need to name it "melee" for sword users like the knight (or anything else will be ranged like the video) - made for the fantasy pack (i think) so it won't work with everything.
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
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 10th Dec 2016 20:11
Oh my god, that's awesome Smallg, I would love both of those scripts

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 10th Dec 2016 22:05
edited my post to include the scripts but as you can tell by the video dates those are old scripts so no promises they still work
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Bugsy
15
Years of Service
User Offline
Joined: 24th Nov 2008
Location: Savannah
Posted: 10th Dec 2016 23:13 Edited at: 11th Dec 2016 01:41
@ smallG:
i meant where you point him in editor. he would just stand there and fire every so often down the range. maybe reloading sometimes but thats not really important

edit: saw the video you posted. that looks just about exactly right. If I were to edit the animation frames in that script to be the animation frames for the corresponding animations on the default GG rig, would it work with default GG characters/character creator people?
Hire Me! I model, animate, cook, clean, and texture!
Meows
12
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 11th Dec 2016 02:08 Edited at: 11th Dec 2016 02:31
dbl post, sorry, i did not know,
Meows
12
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 11th Dec 2016 02:28
I have body Armour I am working on, I have the Armour put together and working OK,
The issue is when the healing script starts it just keeps on adding health to way over
100,000!
here is the model, scripts and artwork, with a FPM file, all that's needed is a good healing script, mine stinks, hope a genius here can help
http://www.78ez.com/images/armor.7z



Here is the armour script it works fine with a Trigger.

here are two images for the Armour i forgot if i added them to the armor.7z file,




smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 11th Dec 2016 09:42
The armour doesn't do anything except add an image?
For healing just use my healing zone
https://forum.game-guru.com/thread/207801?page=17#msg2563568
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
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 12th Dec 2016 18:11
updated the chainsaw brute script to include the chainsaw execution
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
Bolt Action Gaming
GameGuru Tool Maker
10
Years of Service
User Offline
Joined: 24th Oct 2013
Location: Harrisburg, PA (USA)
Posted: 12th Dec 2016 19:47
I know I could code this myself but I have a specific need for a script that I'm short on time for.
My 6yo son and I are making a game for my wife for xmas. The design phase is taking.. longer than expected.

The piece I need is a 'rescue' portion. Basically you find an NPC and 'rescue' them. They disappear and it toggles something (like a door) allowing further progress forward. I plan on having a total of 10 NPCs for this.

If you have time for it, I'd appreciate the assist. I plan on using either character creator or old classic entities as NPCs but that really shouldn't matter. They won't be doing anything intensive (like moving or walking)
Bolt Action Gaming
GameGuru Tool Maker
10
Years of Service
User Offline
Joined: 24th Oct 2013
Location: Harrisburg, PA (USA)
Posted: 12th Dec 2016 20:04
Also the chainsaw execution is wicked.
Meows
12
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 12th Dec 2016 22:18 Edited at: 12th Dec 2016 22:56
It may be me, but 1.133 seems to have broken the Pickup_Quest, placed a non fighting character id (2), 5 syringes, ID's (3-7)
two syfi health packs, ID's (11-12) all just as the script states,. Removed default scripts. only thing on map with a scrips is the player and the character.
The character asks you to collect the Explosives. but you never do. all he ever says is collect the barrels

UPDATE,,, It was missing a couple Press e to continue Prompts !
Up date here
don't use the second quest you can place anything and it will pick it up.



smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 12th Dec 2016 23:42
@bolt you could use this with a bit of editing to add some dialogue?
https://forum.game-guru.com/thread/207801?page=16#msg2561962
if you combine this with my conversation script (link to a couple on post #1) + an extra variable to toggle the zone script once the convo is complete it should work nicely.

i can put together a working example when i have time though, no worries
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
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 13th Dec 2016 20:21 Edited at: 13th Dec 2016 20:24
example for you, had to make a few minor changes and scripts but hopefully it fits what you're looking for.
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: 13th Dec 2016 22:19
fix for the ai_wanderer script to work on multiple characters
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
Bolt Action Gaming
GameGuru Tool Maker
10
Years of Service
User Offline
Joined: 24th Oct 2013
Location: Harrisburg, PA (USA)
Posted: 15th Dec 2016 03:27
That's good stuff but unfortunately your example map didn't work for me. I think you used a door I don't have?

It just shows as missing.
Anyways, I'll try to muddle through it.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 15th Dec 2016 10:43
ah ok, use this map instead.
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
TechCo
User Banned
Posted: 16th Dec 2016 06:10
smallg can u make a script where tank moves and can fire and player can ride on jeep.I need these for my game.So plz make it.
TechCo
User Banned
Posted: 16th Dec 2016 06:40
when i run ally.lua game guru shows runtime error.And game guru crashed.When i open vencheil gunner it doesn't work plz help me how to fix it..
Honkeyboy
3D Media Maker
8
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 16th Dec 2016 10:42
G that chainsaw script is horrible lol funny as but horrid now you just need one to chop everybody's head off and you have the perfect horror script lol quick question if i may i now have the enimy ai set up in the new project to drop random amounts of items so far just labeled "alien items" is there a way for me to sell these items to say a terminal or npc yet? I think i remember you showing me something like this a while back and i do use your shop script would it just be the reverse?
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on
Meows
12
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 16th Dec 2016 12:03
Trying to get two scripts to work and play together, the pickupquest and the new weapon_upgrader, I was thinking it would be great to use the pickup quest as a way for the player to get money to spend with the weapon_upgrader.



I thought that Local= cash was a global available to all scripts, so I changed money to cash so both scripts would have access.
However I could not figure out how to get the cash from the pickupQuest to go to the WeaponUpgrader.
the FPM is attached, as are the scripts. The horse is really a ghost, because it refuses to allow a image, (25 attempts ) I did everything, Enitymaker, ModelConverter , gameguru import and hand editing. One of the very few models that I have not been able to finish.

The edited pickup_questtest.lua


The weapon_upgrader_rapidfire.lua
*****************************************


the horse if you can put a texture to it, you can use it but never sell the model please.
horseOK.x
Had to put it in LUA as for some reason the is no option for direct x files?






Attachments

Login to view attachments
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 16th Dec 2016 12:45
Local Is not a global, it's local to the entity only, globals are prefixed by g_

You'll need to change it from

local cash =

To

g_cash =

Make sure you change all instances of cash to g_cash in all scripts that use it

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
Meows
12
Years of Service
User Offline
Joined: 12th Oct 2011
Location: Totally over the Rainbow
Posted: 16th Dec 2016 12:46 Edited at: 16th Dec 2016 12:47
Quote: "TechCo
Recently Online
Joined: 28th Nov 2016
Location: WW2
Profile
Posted: 16th Dec 2016 14:10
Link
smallg can u make a script where tank moves and can fire and player can ride on jeep.I need these for my game.So plz make it"
.

please check this post it is number 3 thread for script's rules

https://forum.game-guru.com/thread/210513
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 16th Dec 2016 12:58
Meow's, while you are right that this board is not for requests, this specific thread it is allowed (within reason) because the thread author specifically posted that he is taking requests.

TechCo is fine asking, however he could have been a bit less blunt when asking, maybe its a language ussue , but he did sound a bit demanding.

i5, NV960 2GB, 16GB memory, 2x 2TB Hybrid, Win10.
i3 , Intel integrated graphics, 6GB memory, 512GB Generic SATAIII Win8.1.
Intel Celeron (duel Core), Radeon integrated graphics, 4GB memory, 180gB Generic SATAII, WinVista.
Q6600, Intel integrated graphics, 8GB memory, 512GB Generic SATAII, Win7.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 16th Dec 2016 18:46
@meows as belidos said (thanks), cash shouldn't be classed as local if you want other scripts to access it and change it, i don't believe it is in my original script so once you change that it should work (you need to change both, not generally a good idea to call a global variable from 2 scripts though as the value will change depending on which script is called last, either remove 1 or check for it equalling nil first.)
as for modelling, sorry, not an area i know anything about but you could always release it in the free models, i'm sure someone can add a texture for you

@honkeyboy the script for the chainsaw is just to call animations already in the model, not possible to do it for all characters but it would be cool to have a chainsaw as a weapon that could really remove limbs at will
the selling of items is similar to a shop script yes and you'll also need to make sure you have variables which are global.
the basic logic is just checking the player is nearby

then if you actually have something to sell

then checking the player presses E to sell something

then remove 1 x item and give player money


of course there is more to it then that with things like the option to buy or sell, showing the sell price, selling in larger quantities etc but that's the base of the script at least.

@TechCo i'm afraid your request is very vague and there is already a great tank on the store.
& given your limited info on the ally.lua i can't help, the script does work because i very recently changed it to a fixed version... (no idea why people insist on using it when i have a much better version linked from the first page but there we go)

@all please remember to give useful errors or at least information if something isn't working - a lot of you are fine with this but you would be surprised how many messages i get which simply say "script doesn't work, fix it"... i will be first to admit i make mistakes but if there's no information given with your report then i will likely just assume it's user error.
also as it's xmas i don't have much time so sorry if i don't get to answer your requests but merry christmas and enjoy the holidays (those of you lucky enough to get one)!
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Honkeyboy
3D Media Maker
8
Years of Service
User Offline
Joined: 16th Sep 2015
Location: Doesnt know half the time ;)
Posted: 16th Dec 2016 19:23 Edited at: 16th Dec 2016 19:31
Cheers m8 those bit i do understand ty will give that a try and happy xmas to you as well, dont drink too much ....nah lol
Intel i5 4950 Quad core 3.3ghz AMD FX 6300 x6 cores 3.5ghz(unclocked)
8gb Ram 8gb Ram
AMD Radeon 7570 1gb AMD Radeon HD 6670 2gb
and a well fed mouse on a wheel

I only smile because i have absolutely no idea whats going on
gd
7
Years of Service
User Offline
Joined: 21st Jul 2016
Location: Small Darkroom with no red light
Posted: 16th Dec 2016 20:39
Hi Smallg, I don't know if you got the chance to look over your script for "Team AI" but it does not seam to work for me. Started from that last update from TGC for GG. I did post it above but you maybe a little busy with other member posts. Anyway the post was here:- https://forum.game-guru.com/thread/207801?page=17#msg2564371

I have tried it on three PC's now and still get the same issue on any map I use. Any help or you pointing me in the right direction will be great.

Thanks again smallg.

gd - Ed.
Dark Base 900 Pro OJ: Rampage V Ed.10, i7 6950x non-OC, DDR4-3333 64 GB RAM, Win 10/64, Asus Strix GeForce 1080 x 2 MDA mode, Water cooled with an old Victorian cast iron radiator and a industrial leather belt driven fan - That's what you call Steampunked.

Laptop - M17xR3


A new competition running for GG
PM

Login to post a reply

Server time is: 2024-04-20 01:55:21
Your offset time is: 2024-04-20 01:55:21