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 / Trying to make an invisability script. Need help!

Author
Message
JohannesM
19
Years of Service
User Offline
Joined: 22nd Nov 2005
Location: Espoo, Finland
Posted: 20th Oct 2007 11:12 Edited at: 20th Oct 2007 11:13
Hey guys!

This is my first script and I thought I might make a script where the player is invisable. This is what I have so far. (The timegreater isnt propably mandatory). I just can't get my guy invisable. Dosen't work.



Any help would be appreciated.

JM


Click the pic to get to my latest project!
Avid
17
Years of Service
User Offline
Joined: 24th Jun 2007
Location:
Posted: 20th Oct 2007 13:54
The 'plrcannotbeseen' flag does not make the player invisible, it's a check to see if an entity can see the player.
JohannesM
19
Years of Service
User Offline
Joined: 22nd Nov 2005
Location: Espoo, Finland
Posted: 20th Oct 2007 14:42
Hm. Okay. That would explain it. Is there a way to make it so that the enemies do not see the player until an action is carried out?

JM


Click the pic to get to my latest project!
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 20th Oct 2007 14:49
hmmm....
this is gonna be like the arbiter outta Halo 2 isn't it????
i'd to have "active camo"....
actually why dont you try make a transparent texture for weaps to switch to when AC is active
JohannesM
19
Years of Service
User Offline
Joined: 22nd Nov 2005
Location: Espoo, Finland
Posted: 20th Oct 2007 16:07
Quote: "actually why dont you try make a transparent texture for weaps to switch to when AC is active "


How do you do that?

JM


Click the pic to get to my latest project!
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 20th Oct 2007 17:59 Edited at: 20th Oct 2007 18:00
I would ask in the Media board for that answer. It deals with retexturing the models. If you don't mind not having a smooth transition to camo, then just tell the models to use a black.bmp and set the transparent value to 2.

If you want some sort of distortion effect on the gun, then you'd need to alter the shader used as well. This would cause a problem, since you can't actively change the shader file using a script. THAT would need a source change in order to accomplish.


The one and only,
~PlystirE~

Dammit, Jim! I'm a programmer not a graphic designer!!!

(P)suedo code (L)inguist, (Y)ou (Sti)ll (R)eap (E)verything
Pain
FPSC Reloaded TGC Backer
17
Years of Service
User Offline
Joined: 4th Apr 2007
Location: Lake Orion, MI - USA
Posted: 22nd Oct 2007 18:22
i got my guys to go transparent it can be done in v7

but i want to keep it a secret until I am done with my game.. it was actually an issue i ran into i didn't want them to go invisible and i might use it as.. like a special thing that i know how to do to make my game special. sorry.

pain

Me = noob

and i love The TGC : )
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 23rd Oct 2007 15:42
Lol, @pain

I know how you feel, if someone posted asking for a way to do something that I have in my contest entry that no one else has done before, then I'd probably post what you did.


The one and only,
~PlystirE~

Dammit, Jim! I'm a programmer not a graphic designer!!!

(P)suedo code (L)inguist, (Y)ou (Sti)ll (R)eap (E)verything
Avid
17
Years of Service
User Offline
Joined: 24th Jun 2007
Location:
Posted: 23rd Oct 2007 18:00
It is possible to make something invisible with an effect. If you apply the gloss shader, it only works if the entity has transparency. As soon as it becomes transparent, the shader will start working (or at least in theory).
JohannesM
19
Years of Service
User Offline
Joined: 22nd Nov 2005
Location: Espoo, Finland
Posted: 23rd Oct 2007 22:02
I need the player invisable, not any npcs.

JM


Click the pic to get to my latest project!
Pain
FPSC Reloaded TGC Backer
17
Years of Service
User Offline
Joined: 4th Apr 2007
Location: Lake Orion, MI - USA
Posted: 24th Oct 2007 18:32
o u mean to Make U the PLAYER? feel ur invisable?

pain

Me = noob

and i love The TGC : )
JohannesM
19
Years of Service
User Offline
Joined: 22nd Nov 2005
Location: Espoo, Finland
Posted: 24th Oct 2007 19:26
Yes so that the enemies will not see you. Like not respond to you. But if you don't have the invisability "power up", they react.


Click the pic to get to my latest project!
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 25th Oct 2007 02:49
This would require some serious scripting power. I've made the enemies in my game "not react to the player" if the player turned the lights off on them and snuck around in the dark... would be the same concept.

I think your real problem here is how to make the person behind the screen not see the character they are using.

Once you can get that then you'll be free to script into the enemies to not react to the player when the player turns on the invisiblility.

The way I did it, is kinda going to remain a secret until the end of the PGPS compo.


The one and only,
~PlystirE~

Dammit, Jim! I'm a programmer not a graphic designer!!!

(P)suedo code (L)inguist, (Y)ou (Sti)ll (R)eap (E)verything
JohannesM
19
Years of Service
User Offline
Joined: 22nd Nov 2005
Location: Espoo, Finland
Posted: 25th Oct 2007 13:44
Ok. At least I know that it is possible to make such a script

JM


Click the pic to get to my latest project!
Pain
FPSC Reloaded TGC Backer
17
Years of Service
User Offline
Joined: 4th Apr 2007
Location: Lake Orion, MI - USA
Posted: 26th Oct 2007 18:18 Edited at: 26th Oct 2007 18:19
i thinks its deffintly possible just would take alot of work.. look at some of the stock scripts.. get an idea off of them.

pain

Me = noob

and i love The TGC : )
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 26th Oct 2007 19:49
Quote: "look at some of the stock scripts.. get an idea off of them."


That, is the true nature of a programmer. To look at another's work and create your own from it.

We programmers do not enjoy re-inventing the wheel.


The one and only,
~PlystirE~

Dammit, Jim! I'm a programmer not a graphic designer!!!

(P)suedo code (L)inguist, (Y)ou (Sti)ll (R)eap (E)verything
Pain
FPSC Reloaded TGC Backer
17
Years of Service
User Offline
Joined: 4th Apr 2007
Location: Lake Orion, MI - USA
Posted: 29th Oct 2007 19:06
lol yup

pain

Me = noob

and i love The TGC : )
107295
17
Years of Service
User Offline
Joined: 26th May 2007
Location:
Posted: 2nd Feb 2008 14:59
Anyway, plrcannotbeseen is a condition, not an action.

So a Shepard said to his flock; "Thou shalt be confuseth!" and so they were.
CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 3rd Feb 2008 11:06
Why did you bump this, it's been dead for 3-4 months, so the guy's probably moved on or forgotten it by now....

Login to post a reply

Server time is: 2024-11-24 03:37:39
Your offset time is: 2024-11-24 03:37:39