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 / Modify Weapon Swapping System

Author
Message
zenix
14
Years of Service
User Offline
Joined: 27th May 2010
Location: Somewhere out there
Posted: 24th Aug 2012 03:19
Hi guys, It´s me again and I need your help with this Weapon Swapping System created by "Meteorite", I want to modify it but it doesn´t work and I tried doing lot of things. http://forum.thegamecreators.com/?m=forum_view&t=131873&b=23

I only want that the player picks up the Weapon with "Enter" and that appear a message like "Need Empty Slot" when the player wants to change the gun for another one; and drop it with any key (I know how to do that )
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 28th Aug 2012 12:33
Can you post what you have tried?

It is easier to comment on what has been done. Plus you'll learn more this way, rather than I write the script for you.

zenix
14
Years of Service
User Offline
Joined: 27th May 2010
Location: Somewhere out there
Posted: 29th Aug 2012 05:03
Yes!...I use this script (of the Model Pack 53), the Take Weapon script.



And I tried combining some lines of this script that it´s seems that you drop the weapon with "Delete" (Supr I think)



What I did was to put the State 2 and 3 into the last lines of the first script and it don´t happen anything, and I know that I am missing the part of the first line, I don´t know where to put it...
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 29th Aug 2012 07:37
You've made a good start.

On the line that starts "state=10.." you need to add the condition "plrusingaction=1" this is the press enter to collect the weapon. You also need to change "state=1" to "state=2".

The "scancode..." line needs to be combined with the "state=2" line.

"state=0" on the last line should be "state=10"

zenix
14
Years of Service
User Offline
Joined: 27th May 2010
Location: Somewhere out there
Posted: 29th Aug 2012 18:06
Well, that´s what I made but I can´t drop the weapon. I know that it´s something wrong on the line "state=10"

Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 30th Aug 2012 02:32
maybe this helps? playerdropscurrent is not a working command! Use instead removecurrentweapon



Yes, i´m a noob, but i like it
http://forum.thegamecreators.com/?m=forum_view&t=196656&b=24
zenix
14
Years of Service
User Offline
Joined: 27th May 2010
Location: Somewhere out there
Posted: 30th Aug 2012 02:51
Hi, I have just test your script and it doesn´t work. Whean I am near the weapon I press "F" and there is a bug. The player "pickup" the weapon but automatically drop it...
Corno_1
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 30th Aug 2012 13:05
Hmmm,maybe this helps:


and if it works, you can use this:


Public void likeFpsc{ System.out.println("I like FPSC!" ;}
http://forum.thegamecreators.com/?m=forum_view&t=196656&b=24
zenix
14
Years of Service
User Offline
Joined: 27th May 2010
Location: Somewhere out there
Posted: 30th Aug 2012 19:34
Mmm now I can pick the gun but I can´t drop it. And other thing that happens it´s that when I pick two or more guns I can only use the last one that I pickep up.
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 30th Aug 2012 19:55
You may need to set the entity to "always active" for the drop to work.

zenix
14
Years of Service
User Offline
Joined: 27th May 2010
Location: Somewhere out there
Posted: 31st Aug 2012 00:46
Well I hav just tested and there are 2 problems:
1)The same as before, If I use two or more guns the player can only use the last ona that he picked up.
2)When I press "G" to drop the weapon it´s dissappear...
And I´ve checked the Script and I think that is correct.
Mr illusionest
15
Years of Service
User Offline
Joined: 5th Mar 2009
Location: Cairo , Egypt
Posted: 31st Aug 2012 00:50
Quote: "Just a thought for you to mull over...
Take the weapons into the next level and then try to drop them. Won't work because their scripts no longer exist.
The one and only,"

quoted from plystire

"I am the night visitor when everyone is sleep , and when the last light fades"
The illusionest
zenix
14
Years of Service
User Offline
Joined: 27th May 2010
Location: Somewhere out there
Posted: 31st Aug 2012 02:01
So, once I drop the weapons is impossible to get them back?
At least I can drop them, it works for me, I will handle it!!
Thanks for All!!

Login to post a reply

Server time is: 2024-11-23 22:42:05
Your offset time is: 2024-11-23 22:42:05