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 Product Chat / How to use the mod commands? Like fenix commands?

Author
Message
Zarqua
15
Years of Service
User Offline
Joined: 10th Jun 2011
Location:
Posted: 11th Jun 2011 21:41
Hey. Im new to FPSC. Atm im trying out some mods, but i have found a mod called fenix. But i dont understand how to use the commands like:

Quote: "fireweapon -forces the player to shoot the current weapon
disablefire=x -disables weapon fire if x is 1 enables if x is 0
dropweapon=x -drops the weapon in slot specified by x
jumpoff -disables jumping
jumpon -enables jumping"


or

Quote: "flashlightrange=x -gives the flash light a new range specified by x (deafault is around 1000)
newdamage=x -changes the current gun out damage to x
newfirerate=x -changes the current gun out fire rate to x
newsimplezoom=x -changes the current gun out simple zoom to x
newreloadqty=x -changes the current gun out reload quantity to x
newrange=x -changes the current gun out range to x
playerspeed=x -x sets the players speed specified by x
movecamera=x -sets how far back the camera is"


All the commands in the fenix manuel looks nice, but as a beginner in FPSC, it can be really hard how mods works.

In the fenix manual, isn't there anything about how to use theese commands, and im really stucked atm, since i want to use theese commands.

I hope that someone really could help me

Please give me a example ^^

Zarqua
Shakleford
FPSC Reloaded TGC Backer
16
Years of Service
User Offline
Joined: 15th Jun 2010
Location: on the flip side
Posted: 11th Jun 2011 23:53 Edited at: 12th Jun 2011 00:11
Those commands are used in .fpi scripts, just like the commands for vanilla FPSC(non modified). You can go to your FPSC directory, then the "files" folder, and then find the scriptbank folder to see all of your scripts.

Here is a script that comes with FPSC.


This script would be assigned to a triggerzone. What it is telling
the game to do is.... If the player is within the zone(plrwithinzone), then he will lose health(plraddhealth=-1)

The commands in Fenix work the same way. Here is link to athread that has some tutorials on scripting.
http://forum.thegamecreators.com/?m=forum_view&t=62366&b=23

Make sure you read those tutorials,and open up scripts to see how they work. Scripts can be made in notepad, or you can download .Fpi Edit Pad, which will tell if something is wrong with your script.

EDIT: Here is a script I made with another mod, but I just substituted that mods command for the fenix mod command "playerspeed=". This script will slow the players speed down as his health drops. Assign the script to a trigger zone.
It is set for the player starting with 250 heatlth, and 80 speed. You can chnage it how you like to suit your needs.


Just copy this and paste it in notepad(or FPI Edit Pad) and save it as a .fpi file. Then put it somewhere in your scriptbank folder.

I recently learned to sleep with my eyes open. ..... God am I tired
Zarqua
15
Years of Service
User Offline
Joined: 10th Jun 2011
Location:
Posted: 12th Jun 2011 00:34
Quote: "Those commands are used in .fpi scripts, just like the commands for vanilla FPSC(non modified). You can go to your FPSC directory, then the "files" folder, and then find the scriptbank folder to see all of your scripts.

Here is a script that comes with FPSC.
+ Code Snippet

This script would be assigned to a triggerzone. What it is telling
the game to do is.... If the player is within the zone(plrwithinzone), then he will lose health(plraddhealth=-1)

The commands in Fenix work the same way. Here is link to athread that has some tutorials on scripting.
http://forum.thegamecreators.com/?m=forum_view&t=62366&b=23

Make sure you read those tutorials,and open up scripts to see how they work. Scripts can be made in notepad, or you can download .Fpi Edit Pad, which will tell if something is wrong with your script.

EDIT: Here is a script I made with another mod, but I just substituted that mods command for the fenix mod command "playerspeed=". This script will slow the players speed down as his health drops. Assign the script to a trigger zone.
It is set for the player starting with 250 heatlth, and 80 speed. You can chnage it how you like to suit your needs.
+ Code Snippet
;Artificial Intelligence Script

;Header

desc =Plr Speed Decreases as Health Drains

;Triggers

:plrhealthless=230:playerspeed=75
:plrhealthless=210:playerspeed=70
:plrhealthless=190:playerspeed=65
:plrhealthless=170:playerspeed=60
:plrhealthless=150:playerspeed=55
:plrhealthless=130:playerspeed=50
:plrhealthless=110:playerspeed=45
:plrhealthless=90:playerspeed=40
:plrhealthless=70:playerspeed=35
:plrhealthless=50:playerspeed=30
:plrhealthless=30:playerspeed=20
:plrhealthless=10:playerspeed=10
:plrhealthless=11:playerspeed=20
:plrhealthgreater=31:playerspeed=30
:plrhealthgreater=51:playerspeed=35
:plrhealthgreater=71:playerspeed=40
:plrhealthgreater=91:playerspeed=45
:plrhealthgreater=111:playerspeed=50
:plrhealthgreater=131:playerspeed=55
:plrhealthgreater=151:playerspeed=60
:plrhealthgreater=171:playerspeed=65
:plrhealthgreater=191:playerspeed=70
:plrhealthgreater=211:playerspeed=75
:plrhealthgreater=231:playerspeed=80


Just copy this and paste it in notepad(or FPI Edit Pad) and save it as a .fpi file. Then put it somewhere in your scriptbank folder."


Thanks you Shakleford

But i have 1 more question . With your script that makes your speed lower as the health drops right? It was a triggerzone. But are the triggerzone added into the whole map so it will be activated the whole time? or im wrong?
Shakleford
FPSC Reloaded TGC Backer
16
Years of Service
User Offline
Joined: 15th Jun 2010
Location: on the flip side
Posted: 12th Jun 2011 06:41
Yes putting a script in a trigger zone will run it all the time. You dont have to stretch the triggerzone across the whole map tho. Just one square will do the trick.

I recently learned to sleep with my eyes open. ..... God am I tired
Zarqua
15
Years of Service
User Offline
Joined: 10th Jun 2011
Location:
Posted: 12th Jun 2011 09:14
Quote: "Yes putting a script in a trigger zone will run it all the time. You dont have to stretch the triggerzone across the whole map tho. Just one square will do the trick."


Okay Cool thanks

But are almost all scripts used by a triggerzone?
Shakleford
FPSC Reloaded TGC Backer
16
Years of Service
User Offline
Joined: 15th Jun 2010
Location: on the flip side
Posted: 12th Jun 2011 14:56
No alot of scripts are assigned to the entities that they control. Anything from a box, or a Level Boss will have a script.

You dont even have to put that script i gave you in a triggerzone. you could assign it to an entity and it would work. Im guessing the reason why alot of people put scripts like this in triggerzones is that they take up less memorsince theres no polygons or anything else.

I recently learned to sleep with my eyes open. ..... God am I tired

Login to post a reply

Server time is: 2026-07-01 09:06:36
Your offset time is: 2026-07-01 09:06:36