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 / Gencheff's Scripts 2011

Author
Message
Gencheff
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: UK by way of USSR
Posted: 1st Feb 2011 17:08 Edited at: 2nd Feb 2011 13:04
Hey folks,
I've been working on a serious project for quite some time now and I've been writing a lot of scripts lately.

I wanted to share some of those scripts , as well as new ones I write from time to time.

I hope you find these useful and if you have any questions,don't hesitate to ask.

I'll start off with something simple.

----------------------------------------------------------------------------------------
Game Timer saved in a variable
----------------------------------------------------------------------------------------
Q:Why is this useful?
A:The idea for this came from Bootlicker's "Run" game.I thought to myself,wouldn't it be nice if instead of a few messages on the screen based on timergreater conditions,you have the actual time on the screen and have it at your disposal the whole time.

So this script helps achieve that.Using any mod's variable print functions,you can show on the screen the current play time.
Using external scripts,you can add time penalties whenever you want and affect the player's performance.

So anyway , here's 2 versions of the script (1 for 1.18+ and Project Blue , and one for RPG Mod).

1.18+ and PB :


RPG Mod :


To use it,place it as a main script in a trigger zone or dynamic light.

To show the current time on the screen , you'd have to use the appropriate commands for the mod you are using (the basic logic is - :always:print timer variable here).The stock engine does not support it currently as far as I know (If it does,someone correct me)

----------------------------------------------------------------------------------------
Bonus - 5 Second penalty after killing a friendly character :
----------------------------------------------------------------------------------------



The script above must be applied to the destroy script of a character.

----------------------------------------------------------------------------------------
Poison Gas Zone [rough draft]
----------------------------------------------------------------------------------------
When within a 5 segment radius,the player is prompted to use the [V] key and put on a gas mask,otherwise he starts to lose health when within that radius.



Can be placed in a trigger zone and accompanied by a particle effect,simulating the poison gas.


I'll be updating this thread frequently,so stay tuned .


PC Specs:Windows 7 Ultimate 64-bit,Intel Core i7 960 @ 3.20GHz,NVIDIA GeForce GTX 480,12GB RAM,2x Western Digital 997GB HDD
Soviet176
15
Years of Service
User Offline
Joined: 19th Sep 2009
Location: Volgograd
Posted: 1st Feb 2011 17:22
Hey Gencheff! this is awesome thank you very much! Russian programming FTW! I have bookmarked this thread. Will be watching closely.

Putting fear back into sliced bread since 4th May 2010
mgarand
16
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: The Netherlands
Posted: 1st Feb 2011 17:45
great stuff man!

Gencheff
14
Years of Service
User Offline
Joined: 12th Jun 2010
Location: UK by way of USSR
Posted: 1st Feb 2011 18:03 Edited at: 2nd Feb 2011 13:05
Glad you find it useful.

Next on the list is an achievement sheet , which is long overdue...Should have done it 2 months ago.

EDIT - before the achievement sheet,I updated the thread with a Poison Gas zone script.


PC Specs:Windows 7 Ultimate 64-bit,Intel Core i7 960 @ 3.20GHz,NVIDIA GeForce GTX 480,12GB RAM,2x Western Digital 997GB HDD

Login to post a reply

Server time is: 2024-11-24 12:31:19
Your offset time is: 2024-11-24 12:31:19