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 / weapons pickup limitaions

Author
Message
Replay the Master of Time
15
Years of Service
User Offline
Joined: 15th Dec 2008
Location: Everywhere at every given time
Posted: 9th Jan 2009 13:23
is there a way to make it so that if you have 0-1 weapons you just pick it up but if you have 2 weapons the game say press certain key to swap like in halo? as this is a good weapon system(can't just stock up on weapons before going into enemy infested areas and just slaughtering them) also is there a way to have a limit on spare(not in gun) ammo?

None can withstand the awesome force that is time...
visit my site www.fpsc-ware.webs.com
Red Eye
16
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 9th Jan 2009 19:23
i dont think so, i think you want Ply's mod, i think his mod could do it


Red Eye - The Game: Work In Progress - W.I.P.
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 9th Jan 2009 23:49
you could in ply's mod you just wouldn't be able to pick it up if you dropped it.

I know not with what weapons WWIII will be fought but WWIV will be fought with sticks and stones-Albert Einstein
Gamer X
16
Years of Service
User Offline
Joined: 1st Feb 2008
Location: Planet X
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 13th Jan 2009 09:09
Why not increment a variable whenever the player picks up a weapon and when they get to 2, don't allow them to pick up a new one and instead pose them with a choice to drop one of their old ones?


The one and only,


Replay the Master of Time
15
Years of Service
User Offline
Joined: 15th Dec 2008
Location: Everywhere at every given time
Posted: 18th Jan 2009 06:57
yes that's an idea but which variable would i use? are there blank variables in your mod?

None can withstand the awesome force that is time...
visit my site www.fpsc-ware.webs.com
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 18th Jan 2009 18:23
you can make your own variables using the dimvar= command.they are automatically blank for your use.

I know not with what weapons WWIII will be fought but WWIV will be fought with sticks and stones-Albert Einstein
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 18th Jan 2009 21:47
Yes, you can make as many variables as you need.

For example, to make a variable called "WeaponCount", you will simply put:
dimvar=WeaponCount

After that, you can use taht variable name in any other variable commands.


The one and only,


Replay the Master of Time
15
Years of Service
User Offline
Joined: 15th Dec 2008
Location: Everywhere at every given time
Posted: 18th Jan 2009 23:10
would i have to mod to use this or do i just put this at the start of every script i need it? ie state=0:dimvar=WeaponCount

Crusader2
16
Years of Service
User Offline
Joined: 8th Aug 2008
Location: Somewhere...
Posted: 18th Jan 2009 23:19
No, you would just have to place it in the setuplevel.fpi file, and, in the weapon.fpi and weaponglowzone.fpi, you make it check what the variable is equal to and not allow the pickup if it is equal to 2.

Some people say that I'm crazy... And I agree.
USE PLY'S MOD!
Replay the Master of Time
15
Years of Service
User Offline
Joined: 15th Dec 2008
Location: Everywhere at every given time
Posted: 18th Jan 2009 23:23 Edited at: 18th Jan 2009 23:26
so if i do dimvar=WeaponCount then all i need to do is WeaponCount=0,1,2 in the rest of the script?

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 19th Jan 2009 02:19
Quote: "WeaponCount=0,1,2"


Nope, in order to set the var it goes like this:
setvar=WeaponCount 0

So, you use the "setvar" command and tell it first what variable to set and the value to give it. So that command would set "WeaponCount" to a value of 0.


The one and only,


Replay the Master of Time
15
Years of Service
User Offline
Joined: 15th Dec 2008
Location: Everywhere at every given time
Posted: 19th Jan 2009 03:09
k thanks

Login to post a reply

Server time is: 2024-11-24 18:19:56
Your offset time is: 2024-11-24 18:19:56