3rd Party Models/Media Chat / Getting EAI's ammo to work in gg - Assigning weapons to enemies

Author
Message
Duchenkuke
GameGuru VBOTB Developer
7
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 3rd Nov 2017 12:43
Hey Guys,

Months ago, I stumbled accross the awesome work from EAImedia. His Weapons are really nice and also a good alternation to the stock weaponry.
EAI's weapons seem to work very good in gameguru but sadly I can't say this for the ammo that comes with it.
Maybe some of you did solve this already but I want to ask:

How do I make the ammo work in gameguru? When I place it in the level, the character picks it up, but no ammo will be added to the inventory.
How to fix that? I am sure it requires just some minor FPE changes... I tried it many times but couldn't get it to work yet...

There is also another thing I want to learn, and that is assigning EAI's weapons to enemies. I know this has been done bevore. Redacted: Hired Gun did have enemies with EAI weapons for example.

I know this is quite a request, but I would be glad If someone could give me a helping hand here...
It is crucial for my project I am working on.


You know you watched too many of Lee's Live Brodcasts when you're at work and have an earwig from his twitch intro music....

By the way, I am a Modder, Soundtrack Composer and now Game Developer. Well, sort of.

Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, Geforce GTX 1050ti
Find some my work onYoutube:
(Music Channel) The German Music Dude: https://www.youtube.com/user/DeutscherVolker
(Games and Mods Channel ) DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA



Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 3rd Nov 2017 14:28
he model need to be named the same as the ammo type it uses, so if it is a shotgun type ammunition you need to name it the same as the default shotgun ammo, then when you place it you just add the ammo script to it.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
Duchenkuke
GameGuru VBOTB Developer
7
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 3rd Nov 2017 14:35
oh it's that simple ?? Okay, Will check right away.
You know you watched too many of Lee's Live Brodcasts when you're at work and have an earwig from his twitch intro music....

By the way, I am a Modder, Soundtrack Composer and now Game Developer. Well, sort of.

Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, Geforce GTX 1050ti
Find some my work onYoutube:
(Music Channel) The German Music Dude: https://www.youtube.com/user/DeutscherVolker
(Games and Mods Channel ) DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA



Duchenkuke
GameGuru VBOTB Developer
7
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 3rd Nov 2017 15:06 Edited at: 3rd Nov 2017 15:11
You mean like that? If yes, it does not work....

What did I do wrong?
You know you watched too many of Lee's Live Brodcasts when you're at work and have an earwig from his twitch intro music....

By the way, I am a Modder, Soundtrack Composer and now Game Developer. Well, sort of.

Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, Geforce GTX 1050ti
Find some my work onYoutube:
(Music Channel) The German Music Dude: https://www.youtube.com/user/DeutscherVolker
(Games and Mods Channel ) DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA



Attachments

Login to view attachments
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 3rd Nov 2017 15:24 Edited at: 3rd Nov 2017 15:30
No. It needs to be named for the ammo type, ie:

The default shotgun ones are named:

12 Gauge Shotgun (shotgun)
.38 Cartridges (Pistol)
7.62mm NATO (Rifle)
etc.

So if you had a different type of shotgun ammo called for example "Bob Ammo" it would be named

Bob Ammo (Shotgun)

Then you would have to change the script in properties to ammo.lua

You would also need to change the .fpe file to the weapon it's for, for the colt1911 it would be:

hasweapon = modern\colt1911

So if you had your weapons in a folder in the gamecore/guns called myguns and the weapon was called g22 then it would be :

hasweapon = myguns\g22

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
Duchenkuke
GameGuru VBOTB Developer
7
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 3rd Nov 2017 15:30
Will check it out and change the values. Thanks so far, belidos !
You know you watched too many of Lee's Live Brodcasts when you're at work and have an earwig from his twitch intro music....

By the way, I am a Modder, Soundtrack Composer and now Game Developer. Well, sort of.

Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, Geforce GTX 1050ti
Find some my work onYoutube:
(Music Channel) The German Music Dude: https://www.youtube.com/user/DeutscherVolker
(Games and Mods Channel ) DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA



Duchenkuke
GameGuru VBOTB Developer
7
Years of Service
User Offline
Joined: 7th Jun 2016
Location: Germany
Posted: 3rd Nov 2017 18:42 Edited at: 3rd Nov 2017 19:37
Okay so now there is a solution to this:
Thanks to GraPhix for figuring this out for me. He spent like an hour for this.. Kudos to you !

Make the ammo work:

edit the gunspec.txt of the desired weapon and add this line: poolammo = G22

and change any ref to fpi to lua in the fpe files. (ammo & weapon)

After that I figured out how to add the sounds. This is simply a line in the FPE file as well.
Just add:

soundset = audiobank\misc\ammo.wav

That should work

Hope this is useful for other people as well.
You know you watched too many of Lee's Live Brodcasts when you're at work and have an earwig from his twitch intro music....

By the way, I am a Modder, Soundtrack Composer and now Game Developer. Well, sort of.

Windows 10 64bit - Intel Core i7-2600 CPU @ 3.40GHz, 8,0 GB Ram, Geforce GTX 1050ti
Find some my work onYoutube:
(Music Channel) The German Music Dude: https://www.youtube.com/user/DeutscherVolker
(Games and Mods Channel ) DK Productions: https://www.youtube.com/channel/UCIqwvScXnJL_zNYqSsfTCqA



Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 3rd Nov 2017 18:53 Edited at: 3rd Nov 2017 18:56
That's another way to do it. My way should have worked too. Obviously I didn't know you hadn't already changed the fpi to fpe or that you were using a non-default gun for it or I would have said to do that too

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
GraPhiX
Forum Support
19
Years of Service
User Offline
Joined: 15th Feb 2005
Playing:
Posted: 3rd Nov 2017 19:34
you are welcome
Welcome to the real world!
Main PC - Windows 10 Pro x64 - Core i7-7700K @4.2GHz - 32GB DDR4 RAM - GeForce GTX 1060-6G 6GB - 1TB NVe SSD
Test PC - Windows 10 Pro x64 - G4400 @3.3GHz - 16GB DDR3 RAM - GeForce GTX 950 2GB - 500GB SSD

Login to post a reply

Server time is: 2024-04-20 02:13:24
Your offset time is: 2024-04-20 02:13:24