Scripts / Pcs Thank You.

Author
Message
PCS
Reviewed GameGuru on Steam
3
Years of Service
User Offline
Joined: 7th Jul 2016
Location: South Africa
Posted: 1st Dec 2018 20:13 Edited at: 1st Dec 2018 20:15
HI all.
I want to start this thread for only one reason, and that is to say thank you.
Thanks to all the modelers and programmers and anyone else who has given me free models or free scripts or free advice or just an inspiring thought.

So i want to say thank you by giving away any scripts that i have that can maybe help other users.

i know exactly how it feels if you have an idea that feels brilliant but you do not have the models or the scripts to go with it.
so any free script that can help to make a project / game better is always welcome.
hopefully some people will be able to use some of the scripts that i will post here.

i am a slow learner so don't expect to see a lot of scripts coming in. but as soon as i have some scripts that can be of use i will post it here.
no fancy scripts at this time , but plain ones that can do useful stuff.

Please bear in mind i am a newbie here , i am no programmer, my programming skills are at a level of learn as you play.
So for all the programmers out there when i make mistakes , and i will , feel free to correct me, or if you just want to make the scrip better also feel free to do that and also if you want , post the modified script here again to help anyone who wants to use it.

Ok so i have this 3 scripts to determent if a player is inside or out side off a building.
i know there is scripts out there that also cover this but this is my take on it.
the difference of my script is i use g_time in the zone scripts to get like a time stamp the see when the player goes in or out of a zone.
this helps so the player can not move in and out between the zones and try to confuse the game .
1. player_in_or_out.lua
2. outside_zone. lua
3. inside_zone.lua







This picture also explain were you have to place the zones if you have a building with more than one entrance.
i know you can just use one big zone in the test map were you have a flat normal surface,
but as soon as you have a complex building or a building with elevated levels it helps to place the zones at the in and out side of each door.
you can use as many zone's as you like depending on how many doors the building have.


i also have attached the test map so that you can test the scripts. just put the scripts in the script bank and re select them , because i run them out of my own folder.

i hope this can help someone.

Please correct me if i have done any mistakes.

Thank you.
Pcs.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11

Attachments

Login to view attachments
PM
JPH-GAMES
3D Media Maker
5
Years of Service
User Offline
Joined: 13th Feb 2015
Location: Belgique
Posted: 1st Dec 2018 20:34
A big thank you PCS, you have a very good mentality.

Intel Pentium CPU G3220 3.000 GHz , 8 GB Ram , NVIDIA GeForce GTX 745 2GB 1920 x 1080 , Windows 10 64-bit.
GameGuru , S2Engine HD , Shoot EM Up , CopperCube 6 , Clicteam Fusion 2.5 , Platfinity .
PCS
Reviewed GameGuru on Steam
3
Years of Service
User Offline
Joined: 7th Jul 2016
Location: South Africa
Posted: 1st Dec 2018 21:01
its a pleasure.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
PM
PCS
Reviewed GameGuru on Steam
3
Years of Service
User Offline
Joined: 7th Jul 2016
Location: South Africa
Posted: 2nd Dec 2018 16:57 Edited at: 2nd Dec 2018 17:16
Just a reminder of two original scripts that i have modified on previous threads if anyone is still interested.
Credit to Lee

Ai_soldier_wanderer.lua
https://forum.game-guru.com/thread/219523#msg2598381
Ai_pedestrian.lua
https://forum.game-guru.com/thread/219233#msg2594310
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
PM
Pink Panther
10
Years of Service
User Offline
Joined: 1st Feb 2010
Location:
Posted: 11th Dec 2018 16:13
Thank you PCS!
PM
PCS
Reviewed GameGuru on Steam
3
Years of Service
User Offline
Joined: 7th Jul 2016
Location: South Africa
Posted: 11th Dec 2018 17:39
Np
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
PM
PCS
Reviewed GameGuru on Steam
3
Years of Service
User Offline
Joined: 7th Jul 2016
Location: South Africa
Posted: 14th Dec 2018 05:25
Hi.
for any new users this is a script i use to pick up a battery.
hope it can help you. modify it to suit your need.


Pcs
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
PM
PCS
Reviewed GameGuru on Steam
3
Years of Service
User Offline
Joined: 7th Jul 2016
Location: South Africa
Posted: 12th Feb 2019 12:18 Edited at: 12th Feb 2019 12:24
I have been fiddling around with a script that can hide the players weapon, and if the weapon is hide then they wont shoot you.
because my scripting capabilities is limited there is still bugs that need to be sorted out.
To be able to achieved this i had to use a variable named : hasweapon == 1 in the ai soldier scripts.
module_agro.lua , module_combatmelee.lua , module_combatshoot.lua , module_combatcore



As you can see there are still problems with how my script inter act with the soldier scripts
once the hide function is on then some of the Npc will still kick you but not shoot.
if anyone is interested to check it out or to improve my script, or maybe have a much easier way to achieve this , then i will post the scripts
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
PM
reyandekcire
4
Years of Service
User Offline
Joined: 18th Feb 2016
Location:
Posted: 12th Feb 2019 22:38
Hi PCS

You could try this

(make a back up of the original module_combatcore.lua and rename this one module_combatcore.lua )

Attachments

Login to view attachments
PM
PCS
Reviewed GameGuru on Steam
3
Years of Service
User Offline
Joined: 7th Jul 2016
Location: South Africa
Posted: 12th Feb 2019 22:50
reyandekcire, thank you will check it out.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
PM
PCS
Reviewed GameGuru on Steam
3
Years of Service
User Offline
Joined: 7th Jul 2016
Location: South Africa
Posted: 21st Jul 2019 14:36
ok here is a small little script for anyone who don't want the ai_soldier to stand in that awful gun stand no more.
if you want the ai to stand and idle like this:

until he needs to go in to ai_soldier mode then you can use this script or modify it as you like.
the script loop an idle animation and call ai_soldier.lua when needed.


hope someone can use this
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11

Attachments

Login to view attachments
PM
Pink Panther
10
Years of Service
User Offline
Joined: 1st Feb 2010
Location:
Posted: 24th Jul 2019 16:30
Thanks PCS! And thank you to reyandekcire as well. Your script works great!
PM
PCS
Reviewed GameGuru on Steam
3
Years of Service
User Offline
Joined: 7th Jul 2016
Location: South Africa
Posted: 24th Jul 2019 16:34
@Pink Panther , thanks , just hope you can use it.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
PM
PCS
Reviewed GameGuru on Steam
3
Years of Service
User Offline
Joined: 7th Jul 2016
Location: South Africa
Posted: 28th Jul 2019 12:03 Edited at: 28th Jul 2019 12:05
hi, just another small script that you can use to talk to an Npc that sits on a chair.

Link to see how script works. https://forum.game-guru.com/thread/220942#msg2618644
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
PM
PCS
Reviewed GameGuru on Steam
3
Years of Service
User Offline
Joined: 7th Jul 2016
Location: South Africa
Posted: 16th Aug 2019 18:03
Small little script to play a sound over and over in a zone and stops when you are out of the zone.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
PM
PCS
Reviewed GameGuru on Steam
3
Years of Service
User Offline
Joined: 7th Jul 2016
Location: South Africa
Posted: 24th Mar 2020 21:09 Edited at: 24th Mar 2020 21:09
Another small little script to start animation and stop or speed up and down.
Nothing fancy , but it do the job

Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
PM
JPH-GAMES
3D Media Maker
5
Years of Service
User Offline
Joined: 13th Feb 2015
Location: Belgique
Posted: 24th Mar 2020 21:32
Very interesting PCS, thanks for these script




Mainboard: ASrock 970M Pro 3 , CPU: AMD FX(tm)-8350 Eight-Core-Processor 4000 Mhz, 32 GB Ram , NVIDIA GeForce GTX 745 2GB 1920 x 1080 , Windows 10 64-bit.
GameGuru , S2Engine HD , Shoot EM Up , CopperCube 6 , Clicteam Fusion 2.5 , Platfinity .

Pink Panther
10
Years of Service
User Offline
Joined: 1st Feb 2010
Location:
Posted: 26th Mar 2020 18:13
Great PCS! Thanks for this script!
PM
PCS
Reviewed GameGuru on Steam
3
Years of Service
User Offline
Joined: 7th Jul 2016
Location: South Africa
Posted: 26th Mar 2020 20:53
Pink Panther, my pleasure. hope you can use it.
Windows 7 Professional 64-bit
Intel(R) Pentium(R) CPU G3260 @ 3.30GHz (2 CPUs), ~3.3GHz RAM 16GB NVIDIA GeForce GT 730
DirectX Version: DirectX 11
PM

Login to post a reply

Server time is: 2020-04-07 03:38:06
Your offset time is: 2020-04-07 03:38:06