Raised This Month: $51 Target: $400
 12% 

Invisible parachute


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GalegO
Member
Join Date: May 2010
Location: Brazil
Old 10-01-2011 , 16:05   Invisible parachute
Reply With Quote #1

Hi, I have this plugin (http://forums.alliedmods.net/showthread.php?p=425820), can I modify the parachute entity to have only 25% of visibility?

Like we do with the player:
PHP Code:
set_user_rendering(idkRenderFxNone000kRenderTransAlpha25
Thanks!
__________________
Sou brasileiro e não desisto NUNCA!
I'm Brazilian and NEVER give up!

Loucademia de CZ (lcz # GalegO)
CZ CrazyAcademy
189.1.164.85:27017

GalegO is offline
Stereo
Veteran Member
Join Date: Dec 2010
Old 10-01-2011 , 17:00   Re: Invisible parachute
Reply With Quote #2

Use this (set_user_rend...) and modify the index "id" to index of the entity
Stereo is offline
Old 10-01-2011, 17:09
.Dare Devil.
This message has been deleted by .Dare Devil..
GalegO
Member
Join Date: May 2010
Location: Brazil
Old 10-01-2011 , 17:23   Re: Invisible parachute
Reply With Quote #3

and how can I discovery the parachute's id?
__________________
Sou brasileiro e não desisto NUNCA!
I'm Brazilian and NEVER give up!

Loucademia de CZ (lcz # GalegO)
CZ CrazyAcademy
189.1.164.85:27017

GalegO is offline
Nur56
Member
Join Date: Apr 2007
Old 10-02-2011 , 14:12   Re: Invisible parachute
Reply With Quote #4

The same way you find any entities ID, by looking at code.

If you didn't get it it is para_ent[id]

so you do

PHP Code:
set_user_rendering(para_ent[id], kRenderFxNone000kRenderTransAlpha25

Last edited by Nur56; 10-02-2011 at 14:15.
Nur56 is offline
GalegO
Member
Join Date: May 2010
Location: Brazil
Old 10-03-2011 , 20:19   Re: Invisible parachute
Reply With Quote #5

Nur56, thank you, I thinking this but I was not sure...

And, I know, it's strange, but I'll ask:

Scenario: In my plugin, I have a invisible player and when he uses the parachute, I want the parachute becomes invisible too.

But how the better way to do this? In my plugin, I can access the entity data? Or in the Parachute plugin I can access my invisible player ID? Or I need to put the Parachute code inside my plugin to do this?
__________________
Sou brasileiro e não desisto NUNCA!
I'm Brazilian and NEVER give up!

Loucademia de CZ (lcz # GalegO)
CZ CrazyAcademy
189.1.164.85:27017

GalegO is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 10-05-2011 , 11:40   Re: Invisible parachute
Reply With Quote #6

You could register a native to your main plugin and use it to check whether client is invisible or not in the parachute plugin. If the player is invisible, make the parachute invisible.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
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 20:16.


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