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 / Remove previous level gun? w Project Blue

Author
Message
Yearcut
User Banned
Posted: 24th Nov 2009 08:17
Hi all,

Is there a way to remove previous level gun? I am using Project Blue UM addition. I just want to have single gun in each level. How to Remove ALL previous level guns in each level?

-YearCut

Your signature has been erased by a mod. please make it no larger than 9999999 x 9999999
A r e n a s
16
Years of Service
User Offline
Joined: 9th Jun 2008
Location:
Posted: 24th Nov 2009 08:31
I think that there is a command for that. Something like removeweap=(Slot/Weapon Directory)

Yearcut
User Banned
Posted: 24th Nov 2009 11:40
Can someone confirm the command?

Your signature has been erased by a mod. please make it no larger than 9999999 x 9999999
AdrianoJones Wannabe
15
Years of Service
User Offline
Joined: 2nd Jul 2009
Location: Ontario, Canada
Posted: 26th Nov 2009 02:33
Quote: "Can someone confirm the command?"


You can.

-Adrian

And I do, wanna love you... And I do, wanna try...
Because if falling for you girl is crazy, then I'm going out of my mind.
So hold back your tears this time...
Hockeykid
DBPro Tool Maker
17
Years of Service
User Offline
Joined: 26th Sep 2007
Location:
Posted: 26th Nov 2009 02:51
why not use the plrresetweapons command?

Yearcut
User Banned
Posted: 26th Nov 2009 08:14
RemoveWeap=X don't work (using triggers).

Quote: "why not use the plrresetweapons command?"


I will try it.

Your signature has been erased by a mod. please make it no larger than 9999999 x 9999999
Kalinka
15
Years of Service
User Offline
Joined: 24th Nov 2009
Location: White Forest
Posted: 26th Nov 2009 22:56
...Airmod

kalinka, kalinka, kalinka maja! v sadu jagada malinka, malinka maja!
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 28th Nov 2009 01:48
Yes, Airmod is part of PB, so you can just use the "plrresetweapons" command, as hockeykid suggested.


The one and only,


Yearcut
User Banned
Posted: 28th Nov 2009 10:16
plrresetweapons command don't work as i supposed. It removes all the weapons from previous level but it also removes the current gun (in current lvl) as well. Due to some restrictions of weapon, i put the weapon in the player start marker.


Please help me!!!

-YearCut

Your signature has been erased by a mod. please make it no larger than 9999999 x 9999999
Plystire
22
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 28th Nov 2009 23:39
Why not create a script that removes all of the player's weapons before picking up the new weapon? You could make a script that picks up the weapon no matter where the player is, thus they would receive it at the start of the level, just after the previous weapons are removed.

Quote: "Due to some restrictions of weapon"


If you're stuck because you don't have an entity for that weapon, I normally just make a temp entity for those. Besides, the player shouldn't see the weapon entity, right?


The one and only,


Crazy Cam10
17
Years of Service
User Offline
Joined: 18th Jul 2007
Location: Why The Hell Does You Want To Know
Posted: 29th Nov 2009 14:09
Just add the script AT the end of the level, so the player will use all guns before the next level

Cam Ownz You!!

www.gamingstuff.co.nr
Yearcut
User Banned
Posted: 2nd Dec 2009 08:07 Edited at: 2nd Dec 2009 08:07
Quote: "
Just add the script AT the end of the level, so the player will use all guns before the next level
"


Wow! its easy and it worked in my 3rd level cuz it contains a winzone, so i put a trigger zone with IsObjective=2 above the winzone, and now the player previous weapons are removed in level 4.

But it don't work for my first level cuz it don't contains a winzone, you have to kill an enemy in order to win, so is there a way to do so? please tell me please! this is sooo important for my game, my whole game will be destroyed if this can't be done!!!!

Your signature has been erased by a mod. please make it no larger than 9999999 x 9999999
charger bandit
15
Years of Service
User Offline
Joined: 10th Nov 2009
Location: Slovenia
Posted: 2nd Dec 2009 15:28
Add the plrresetweapons command in the destroy script of the character

A.K.A djmaster
Crazy Cam10
17
Years of Service
User Offline
Joined: 18th Jul 2007
Location: Why The Hell Does You Want To Know
Posted: 2nd Dec 2009 18:58
^
Yup
I'd personally make a copy of the destroy script and name it something like destroyscriptLV1 or something so you don't lose your weapons when you kill any enemy xD

Cam Ownz You!!

www.gamingstuff.co.nr
Yearcut
User Banned
Posted: 10th Dec 2009 15:48
Thanks man-with-blond-hair

Your signature has been erased by a mod. please make it no larger than 9999999 x 9999999

Login to post a reply

Server time is: 2025-05-27 19:05:38
Your offset time is: 2025-05-27 19:05:38