Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / ammo pool help

Author
Message
gendestroier
14
Years of Service
User Offline
Joined: 5th Jun 2010
Location: Brazil
Posted: 14th May 2011 18:19
i hope there's info enought in the title.


guys, the thing is, i wanna make a gun pool 3 different kinds of ammo

but i still don't know if i shoud do like this:

poolammo = x
poolammo = x
poolammo = x

or like that:

poolammo1 = x
poolammo2 = x
poolammo3 = x

like that, is working:

poolammo = x
poolammo = x
poolammo = x

but somehow, ammo from the shotgun is getting inside a rifle or any other weapon that is in the same entity directory, why ?

mods for creating a inteligent game,at least
gendestroier
14
Years of Service
User Offline
Joined: 5th Jun 2010
Location: Brazil
Posted: 14th May 2011 18:40
everything is getting inside everything cuz the ammo poolling i'm using just use the same model, them it all get messed up, is that right ?

mods for creating a inteligent game,at least
gendestroier
14
Years of Service
User Offline
Joined: 5th Jun 2010
Location: Brazil
Posted: 14th May 2011 19:39
no no forget it doesn't work at all, the fps creator was just putting in action the third line, wont work like poolammo =X
poolammo =X
poolammo =X

mods for creating a inteligent game,at least
bobochobo
16
Years of Service
User Offline
Joined: 9th Jul 2008
Location: My house, in the middle of my street
Posted: 14th May 2011 22:49
What does poolammo do? Is it for a mod?

All browsers should come with compulsory spell checks.

gendestroier
14
Years of Service
User Offline
Joined: 5th Jun 2010
Location: Brazil
Posted: 15th May 2011 01:20
pool ammo is a stock feature, what it does ?

it allow's you to share the same kind of ammo for multiple guns.

example: if you have blaster and a assaultrifle, you can make them share the same ammo, that's in this case, a ionized gas cartridge.

how to use:

just add this command to your gun's gunspec: poolammo = X

X is equal to the name of the item that you wish to use as poolammo
it has to be a FPE file, and in the "main script area" it has to be pointed has "ammo.fpi" or "ammoglow.fpi" any kind of ammo script.

detail:you need to put the same name in each weapon's gunspec, got it ?

d'you need a coded example ?

mods for creating a inteligent game,at least
bobochobo
16
Years of Service
User Offline
Joined: 9th Jul 2008
Location: My house, in the middle of my street
Posted: 15th May 2011 19:41
No, I don't recognize the gunspec commands. I thought it was a .fpi command.

All browsers should come with compulsory spell checks.

gendestroier
14
Years of Service
User Offline
Joined: 5th Jun 2010
Location: Brazil
Posted: 16th May 2011 21:58
not at all

mods for creating a inteligent game,at least

Login to post a reply

Server time is: 2024-11-24 08:33:38
Your offset time is: 2024-11-24 08:33:38