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 Product Chat / Advanced Weapon System?

Author
Message
Hyperion
16
Years of Service
User Offline
Joined: 6th Dec 2009
Location: A mere figment in your imagination
Posted: 22nd Dec 2009 22:34
Well,not to advanced from what it is now,but i was wondering if anybody had a script or something that limits guns(not the CoD mod,i dont have Project Blue,i use Fenix)and something that lets you drop guns.If anybody already has a script or something like that,it would be much appreciated
-Hyperion


"War does not prove who is right,only who is left"
Bigsnake
17
Years of Service
User Offline
Joined: 7th Apr 2009
Location: England
Posted: 22nd Dec 2009 22:37
im not sure there, hmmm, I know Project Green has those scripts in though

fpsc-world, fpsc fan site
Vista, Amd Athlon 7750 (64 bit + Dual Core), ATI Readon HD 4870 1gb Edition, 4gb Ram.
Hyperion
16
Years of Service
User Offline
Joined: 6th Dec 2009
Location: A mere figment in your imagination
Posted: 22nd Dec 2009 22:41
Damn,If only you could use Fenix and Green at the same time


"War does not prove who is right,only who is left"
Takar
16
Years of Service
User Offline
Joined: 11th Aug 2009
Location:
Posted: 22nd Dec 2009 22:51 Edited at: 22nd Dec 2009 22:54
dropweapon=x -drops the weapon in slot specified by x

swapweapon -Will drop your current weapon for the one that has this command in its script

dropcurrentweapon -drops the players current weapon

These are all commands in fenix mod, they can be used with existing commands for example when you press "f" it drops the current weapon. Write your own script, it'll be good practise and it's much easier than it seems to write such a basic script.

http://download.fpsfree.com/n79q24t66ks8/scripts/fpi_script.htm

Use this tutorial for help, it's easier than it looks, especially for such a simple script.
Kravenwolf
17
Years of Service
User Offline
Joined: 14th Apr 2009
Location: Silent Hill
Posted: 22nd Dec 2009 22:54
There's a command in Fenix Mod called totalweapons=x, which limits the amount of weapons you can carry. I believe that's what you're looking for.

swapweapon let's you replace one of the weapons you have to pick up a different one. (Not in the current version of FM)

currentweaponweight=x and totalweaponweight=x (not in the current version of FM)) let's you assign weight to each weapon. So now, if you swap your pistol with a heavy SAW during game, you'll run slower because you're carrying heavier equipment.

Kravenwolf

Hyperion
16
Years of Service
User Offline
Joined: 6th Dec 2009
Location: A mere figment in your imagination
Posted: 22nd Dec 2009 23:01
Thanks Kraven and Takar,ill practice a bit and hopefully create 2 scripts,well maybe edited scripts of weapons even that let you swap weapons,using the dropweapon=x command


"War does not prove who is right,only who is left"
Takar
16
Years of Service
User Offline
Joined: 11th Aug 2009
Location:
Posted: 22nd Dec 2009 23:08
No problem mate, good luck.
Hyperion
16
Years of Service
User Offline
Joined: 6th Dec 2009
Location: A mere figment in your imagination
Posted: 22nd Dec 2009 23:56
@Kravenwolf
I just looked in the Fenix Mod offical thread,it does have the command swapweapon


"War does not prove who is right,only who is left"
Bigsnake
17
Years of Service
User Offline
Joined: 7th Apr 2009
Location: England
Posted: 23rd Dec 2009 03:29
Quote: "Damn,If only you could use Fenix and Green at the same time"


Well, Now you can when hockeykid has finished implanting Project Blue also

fpsc-world, fpsc fan site
Vista, Amd Athlon 7750 (64 bit + Dual Core), ATI Readon HD 4870 1gb Edition, 4gb Ram.
ambideXter
16
Years of Service
User Offline
Joined: 9th Jan 2010
Location: The Netherlands
Posted: 9th Feb 2010 23:43 Edited at: 9th Feb 2010 23:47
Quote: "a command in Fenix Mod called totalweapons=x, which limits the amount of weapons you can carry"


Well, you probably know more about scripting then me, and i think it is possible with scripting, but i think that it's not a command that limits nr of weapons by standard, but a simple check: "if player has amount of weapon=" example, if "totalweapons=6" was used, had you had 6 weapons it would return true, else false.
Alright got me manuall open.
This is from the Fenix manuall:
"totalweapons=x -if x= the total weapons the player is holding then this will return true else it will return false"

However, with scripting, it should be able after x amount/nr of weapons to disable the player pick up (or buy waever).
If i make something like this myself and it works i'll post here or new thread. I'm also looking for a way to force 1 weapon in a slot with max of 1 weapon for each slot (1st=possible, 2nd dunno)
Good luck m8

TerrorNation
16
Years of Service
User Offline
Joined: 18th Dec 2009
Location:
Posted: 11th Feb 2010 22:20
When Kravenwolf said that totalweapons=x, he meant that you could put that in a weapon pickup script, and if it returned true, you could use the swapweapon command to swap weapons, and if it returned false you could just instruct the engine to pick up the weapon.

Login to post a reply

Server time is: 2026-07-18 00:13:44
Your offset time is: 2026-07-18 00:13:44