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 / Idea for Online Multiplayer Teams

Author
Message
ClipCS
18
Years of Service
User Offline
Joined: 2nd Apr 2006
Location:
Posted: 7th Apr 2006 03:21
Ok, let me start off by saying im a noob at FPSC, and i have a small, but large enough to know whats possible, programming background. Also, scripting is really new to me. Im not sure if conditionals and global variables are possible or not, so bear with me. Onto the basis for the idea

Theres two teams, each composed of 4 people. One team is all Swat Team Members (from model pack 2)(or whatever floats your boat) and the other are all Specialists. (see above () ). Would it be possible to add up the dead swat team members and set that number to a variable, do the same for the Specialists, and then if either of those variables are = 4, then end the game and print off a message saying var1 " team wins:" where var1 is the team whos dead members does not = 4?

like i said, this is an idea, and i am a uber n00b when it comes to FPSC and scripting. If this is possible, would someone mind sharing the scripts and where to put them with me? Its not that i dont want to learn to script, its just that i learn best by example and this will be my first FPSC game.

Thanks for you help
FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 7th Apr 2006 13:00 Edited at: 7th Apr 2006 13:03
Scratch this.I screwed up.

FLA
Benjamin A
19
Years of Service
User Offline
Joined: 31st Oct 2005
Location: The Netherlands
Posted: 7th Apr 2006 16:19 Edited at: 7th Apr 2006 16:24
Impossible, there aren't really variables in FPSC and you can't have teams in MP.

Even before asking for a script or help with a possible idea, read the manual.... completely. It contains all of the info and also scipting commands and you will quickly start to see that things like your idea are no go in FPSC.

Quote: "Its not that i dont want to learn to script, its just that i learn best by example and this will be my first FPSC game."


Good idea, learning by example, that's how I learned the FPSC Script also, but..... FPSC comes with are many many scripts which you can start learning from, so I suggested start learning.

Bored of indoor? Add outdoor to your FPSC games!
http://megagaming.taken.to
Need music for your games? Check the above link also!
ClipCS
18
Years of Service
User Offline
Joined: 2nd Apr 2006
Location:
Posted: 8th Apr 2006 05:55
Ok, i did as you suggested and read up. This time i didnt skip sections i felt unimportant. So here is some psudo scripting that maybe someone with more experience can onec again tell me im a n00blet or hopefully translate to pure scripting and fixup and send back to me.

HEALTH=0LRMOVETO=X
have x be equal to a location of a room set off in a corner or something then make that room a trigger zone and have it detect if there are 4 entities in there then end game

have one team be in a room at upper left say, and the other in lower right?

hope im not getting too annoying, but i really would like this to work.
ClipCS
18
Years of Service
User Offline
Joined: 2nd Apr 2006
Location:
Posted: 8th Apr 2006 07:15
Ok, sorry for posting again insted of editing, but my n00b status means the mods must check my post before its acutall posted so i can edit.

This is the edited more scprit like sudo scripting that i have come up with in the past half hour ish

the basic idea is you have 8 isolated rooms 4 for the 'swat' team and the others for the 'specailist' team. in each 'swat' room, add a random entity and do the same in the 'specailist' rooms. Then make a triggerzone in each of the rooms

inside the swat entity script
:health=0:plrmoveto=healthpack
inside the specailist entity script
:health=0:plrmoveto=smallhealth

then inside the swat trigger zone (this is the code im having trouble with)

:if a player is within a distance of another player and they are both inside the trigger zone then move one player to the seccond swat room. do the same for the seccond room to the third, and the third to the 4th.

:if a player is in the 4th room, print that 'specailists won the match'

: now do the same for all the specailist rooms.

I dont see why this wont be possible, but it might require some major scripting skillz. All of the commands i mentioned are inside the manual. plrmoveto, health=0, plrdistancewithin=x, and then triggerzones. before flaming remember im just a little n00blet intent on a team multiplayer game

Login to post a reply

Server time is: 2024-11-22 03:11:47
Your offset time is: 2024-11-22 03:11:47