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 / -Grenade button?

Author
Message
Squelchy Tom
18
Years of Service
User Offline
Joined: 25th Aug 2006
Location:
Posted: 25th Aug 2007 22:47
Would it be possible to script a grenade button, i know there is ways to bind functions to keys as i have seen a objectives screen script that displayed the objectives at the tap of "ctrl".

So anyway, my question :/ Could someone make a script that throws a grenade at the tap of :/ say the "G" key, I am no scripter by any means but i suppose the problem would be, how would fpsc know that it is the grenade that has to be thrown, so i was thinking maybe have only one script, for one grenade. (So that fpsc dosent get confused which grenade to throw if you happen to be carrying 2 different types) Sadly this would limit your game/level to one grenade.

So yeh :/ anythings good, let me know if its possible and if it is, how far you got :0

Thanks
~SquelchyTom
vorconan
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Wales
Posted: 28th Aug 2007 02:38
Long Answer :

Not possible at all, all guns and throwing functions are hardcoded. You can have claymore mines etc. but not actual grenades. Unless you are of course going for the approach where you pick up an entity (grenade) with the right-click and then throw it into a triggerzone where it would explode. A very unreliable method, and I'm not sure if .fpi scripts can exlode an entity (last time I checked anyway).

Short Answer :

No



Squelchy Tom
18
Years of Service
User Offline
Joined: 25th Aug 2006
Location:
Posted: 28th Aug 2007 14:47
Oh :/ fair enough. Did you just suggest that the player could set mines? because i recently found out that i have the claymore script and entity hidden away in a dusty folder >___>
fata error
17
Years of Service
User Offline
Joined: 5th Mar 2007
Location:
Posted: 3rd Sep 2007 17:32 Edited at: 3rd Sep 2007 17:32
hmm you could do it with a button in game but you waould have to modify the grenade cfg file
vorconan
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Wales
Posted: 3rd Sep 2007 23:13
Quote: "hmm you could do it with a button in game but you waould have to modify the grenade cfg file"


Ummm okkk, there is no .cfg file, it requires scripting for an entity, I can't really be bothered to check if it is possible anymore, I only go back to FPSC to try out model pack 9 and have a bit of fun sniping Aikos.



Login to post a reply

Server time is: 2024-11-23 20:21:12
Your offset time is: 2024-11-23 20:21:12