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 / Power Ups script

Author
Message
Lyonheart
16
Years of Service
User Offline
Joined: 21st Jul 2008
Location:
Posted: 21st Jul 2008 11:49
Ok just to make it more clear its a little like Team Fortress but not necessarily multiplayer, even though Ive never played that game,I want to make a single player story with depending on which character you choose, you get a certain power.

My question is if it's possible for a script that can make an item give you the ability to become invisible to enemies and other players (like in a multiplayer) for a temporary amount of time, Invincibility and a Speed increase as well. It doesnt have to be an item , it can be an ability your character has already. I searched the forums and all I found was a permanent invincible key script or transparent wall and segments. I was actually aiming at the character being able to do these abilities without requiring an item to be picked up. I have an idea of a game that would need these abilities implemented in the player.

Is this a bit hard? I don't know where to start except reading the manual that helps a little but only gets me so far as to come back to this forum.
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 21st Jul 2008 17:25
Well, even making the player choose what cheracter they are is impossible. This is a great concept that I will play around with, but I doubt that this will work. Good Luck.

Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 21st Jul 2008 20:04 Edited at: 21st Jul 2008 20:05
Quote: "Well, even making the player choose what cheracter they are is impossible. This is a great concept that I will play around with, but I doubt that this will work. Good Luck."


Yes it is possible Use plys mod set up a few characters, edit plys character scripts so it shows you some huds when you start you game, set up some keypressed's to control what character you control and there you have it.

I dont think the invisiablity thing is possible. But the Invincable things very easy. There should be a script somewhere on the forums that you can easily adapt it to your needs
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 21st Jul 2008 21:52
Invincibilty is very possible, I know that Ply made an armour script that grabs the players health value, then heals it when they get injured and deducts it from the armour variable......

If you remove the armour deduction part, then you have invincibility! Strap on a timer, and you're ready to roll.....

Lyonheart
16
Years of Service
User Offline
Joined: 21st Jul 2008
Location:
Posted: 21st Jul 2008 22:38
Cool thanks for the tips, I thought maybe Invisivility wouldve been possible with like a transparent skin in multiplayer but not against the computer. Then again how would your player change skins in the middle of the game? Or for that matter a script that makes the enemy stop shooting you @_@ Sounds a bit hard, I have very little experience in scripting if any, but I will try and fail, but I will still try!! Maybe some one with a little more experience is interested in this concept. How do you strap on a timer on that script? I found an invincibility script by some one, you press a key to activate it but theres no timer on it.
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 21st Jul 2008 22:47
Yes, with ply's mod, but choosing options, such as when you are this cheracter, you can do this, but not that, is very difucult, to the point where some power ups require different entities that need different levels to set up, which is impossible. This is hard to explain. It might be possible, but very dificult.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 22nd Jul 2008 00:04
Oh, COME ON, GUYS!!! I thought I taught you all better than that.


To choose a different character for the player to play as:

- Have a "Decision" HUD at the beginning of the game.
- The decision will give a SINGLE variable a value depending upon what the player chose. (Let's say there are 3 options, then who the player chooses, it'll give this variable a value of 1, 2, or 3)
- Now, use THIS variable to determine everything else in the game.


How to make enemies react differently to your character depending on which character the player chose:
- Use a script like this for their Main AI:



How to make an enemy not "see" the player:
- When the player "activates" their invisibility power, set a certain variable to a value of 1, and when it is not active have the variable set to 0.
- Now you can simply use this condition to see if the enemy will "see" the player:



TADA!!!


Honestly, that's not a very hard concept. I'm ashamed of you three. *tsk tsk tsk*


For Multiplayer, you will be very hardpressed to achieve much of anything unless you know what you're doing and can effectively "trick" FPSC into letting you use scripts. That is, unless you are going to use Lemur Free for MP.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 22nd Jul 2008 00:26
Aww, come on, I'm tired........

Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 22nd Jul 2008 17:12
Tes, it is not a hard concept, but I think that he was tending to the lines of Team Fortess Gameplay where speed is a variable. I thought that he would have wanted to set the polayer speed because of his reference to the game. As you know, different speeds mean different player starts and different levels, which is impossible. Yes, most of it it possible, but I mus understood and thought that a lot of it was impossible.

Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 22nd Jul 2008 19:22
just what i was thinking Ply...

I know not what WWIII will be fought but I do know that WWIV will be fought with sticks and stones-Albert Einstein
Indicium
16
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 22nd Jul 2008 20:01
come on ply.. I helped
For invisabilty could you set the alt Texture to pure black (0,0,0) and set the alphafade to 0? And your method

Login to post a reply

Server time is: 2024-11-24 12:02:32
Your offset time is: 2024-11-24 12:02:32