This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Invisibility


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 05-01-2005 , 20:38   Invisibility
Reply With Quote #1

Hey all

Just working on invisibility as a skill, and I can't quite figure it out. This is what I have:

Code:
    set_user_rendering(id,kRenderFxNone, 0,0,0, kRenderTransTexture,PlayerSkill[id][SKILL_INVISIBILITY])

Where id is the player's id and PlayerSkill[id][SKILL_INVISIBILITY] is the players level of invisibility skill (0 - 100).

In testing, when you have a lvl 0 invisibility skill you are COMPLETELY invisible! When you have a lvl 100 skill you are semi-invisible. So, just wondering how this works. I assume that it is how opaque the texture is. 0 being you can't see it, what is the max opacity (so it looks like normal?)
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
DiscoBBQ
Veteran Member
Join Date: Jan 2005
Location: Clemson, South Carolina
Old 05-01-2005 , 21:10  
Reply With Quote #2

to make someone semi invisable-

Code:
set_user_rendering(id,kRenderFxNone, 0,0,0, kRenderTransAdd,5)

completly invisable

Code:
public invisible(id,alphaVal) { set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,alphaVal) }

I wonder if that helped?
DiscoBBQ is offline
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 05-01-2005 , 21:14  
Reply With Quote #3

no.. that didn't help at all thanx though

Quote:
public invisible(id,alphaVal) {
set_user_rendering(id,kRenderFxGlowShell,0,0, 0,kRenderTransAlpha,alphaVal)
}
alphaVal is a passed in value, so there is no way for me knowing what it is to make someone invisible . And as i said in the above post I know that 0 makes you completely invisible. What I need to know is what value makes you completely VISIBLE. It doesn't seem to be 100, so I have no clue what it could be.
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 05-01-2005 , 21:44  
Reply With Quote #4

In this case, the last parameter will be a number from 0-255. The higher it is, the more visible they are.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 05-01-2005 , 22:40  
Reply With Quote #5

Or...use the engine stock function set_visibility.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 05-01-2005 , 23:13  
Reply With Quote #6

damn.. 0 to 255, that makes sense, I shoulda been able to figure that out. Thanx avalanche, i'll devise some formula to convert it to 0 - 100 (or 100 - 0 technically) tomorrow
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode