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 / weapon swapping system

Author
Message
meteorite
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 19th Jun 2008 22:12 Edited at: 19th Jun 2008 22:37
Ah yes, what everyone wants, well its possible with the new playerdrop fix, oh boy!

And I've taken the liberty to make a script set for you, 3 different scripts... one for melee, one for secondary, and one for primary. Aren't I nice?

melee



secondary



primary


its not quite tested yet ()but im about to, will post an edit

-edit-

oopsies, i forgot i need to update still

-edit again-

ok, so, obviously, the weapon picks up fine, it drops, but above the ground. And here's the troublesome part, once its dropped, it cannot be retrieved. Also, you can push the said button anyways to drop it in return for nothing, I didnt mind this, except it could be potentially problematic if you cant pick it back up

So, in conclusion, this is a limited possibility until an update allowing you to recollect dropped items, I will try to contact lee about this.

added note, buttons-
melee=f1
secondary=f2
primary=f3
Dar13
15
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 19th Jun 2008 22:41
ok...this is interesting but not practical

I know not what WWIII will be fought but I do know that WWIV will be fought with sticks and stones-Albert Einstein
Dar13
15
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 19th Jun 2008 22:44 Edited at: 19th Jun 2008 23:42
sorry about double post but forums won't let me edit earlier one
but anyway yes you are a nice person.

I know not what WWIII will be fought but I do know that WWIV will be fought with sticks and stones-Albert Einstein
meteorite
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 20th Jun 2008 01:13
hee hee, i feel so happy!

I dunno about not practical tho, i've seen a lot around the forums on weapon swapping, I figured I'd give it a go
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 20th Jun 2008 08:05
@meteorite:

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,


Rampage
16
Years of Service
User Offline
Joined: 4th Feb 2008
Location: New Zealand
Posted: 20th Jun 2008 08:21
This is great, just like the online game Soldier Front, a primary(main weapon), secondary (pistol), and melee (a knife). GREAT! Thanks for this


Visual Game Studio Express Lead Programmer.
meteorite
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 20th Jun 2008 15:02 Edited at: 20th Jun 2008 15:04
ah, thats true ply, cursed limitations The person would have to use flatlanders script to drop all weapons at the end of the level, then they recollect basic ones at the next level

-edit-
to be honest, i didnt think this would work at all, I kinda figured the weapon drop would reappear, but the player would still have the weapon. I didnt realize the pickup was permantly bound to the weapon, I thought it was just for picking it up, then it was done with
cpt winter
15
Years of Service
User Offline
Joined: 27th Sep 2008
Location:
Posted: 12th Oct 2008 03:01
where do these scripts go? I'm new to game making so I wouldn't know.
Pbcrazy
15
Years of Service
User Offline
Joined: 25th Sep 2008
Location: ...pillow room...
Posted: 12th Oct 2008 05:28
kinda confused here, what button is scancodekeypressed=0?

ive look but i saw that the buttons just start from 1...

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 12th Oct 2008 08:55
@cpt winter:

I suggest not worrying about this type of thing until you've accustomed yourself with the user friendly FPSC workings.

By that time, you will probably know where they go and whatnot.


@Pbcrazy:

A scancode of 0 means that no key is being pressed.


The one and only,


Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.
meteorite
17
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 14th Oct 2008 01:46
This got crazy bumped

I love Jenkins forever :p
There is nothing to fear except fear itself... and FPSC bugs.

Login to post a reply

Server time is: 2024-03-29 08:59:55
Your offset time is: 2024-03-29 08:59:55