AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Entity Constants help && values request (https://forums.alliedmods.net/showthread.php?t=20425)

haimmaik 11-08-2005 07:58

Entity Constants help && values request
 
which entity constant makes an entity transperent?

and how do i know what each line do there?
http://www.amxmodx.org/funcwiki.php?go=module&id=3

for example:
Code:

EV_FL_ltime,
EV_FL_nextthink,
EV_FL_gravity,
EV_FL_friction,
EV_FL_frame,

is there a tutorial that explain what each line do there?

another question:
these part of code was taken from AMX_GORE plugin. this part is the decals that are beeing painted on the ground and walls around a guy that got hit. (or killed)

Code:
// Blood decals #if CZERO     static const blood_small[8] = {202,203,204,205,206,207,208,209} #else     static const blood_small[7] = {190,191,192,193,194,195,197} #endif

Code:
// Blood decals #if CZERO     static const blood_large[2] = {216,217} #else     static const blood_large[2] = {204,205} #endif

those numbers are for red decals...(190,191,192,193,194,195,197,204,205 )
what are the numbers for the green decal?

v3x 11-08-2005 10:25

If you want to make an entity invisible, use set_entity_visibility.

haimmaik 11-08-2005 12:47

no that will set it completely invisable.. i need transparcy 0 - 255

v3x 11-08-2005 13:22

set_rendering

XxAvalanchexX 11-08-2005 14:52

Code:
set_rendering(ENTITY,kRenderFxNone,0,0,0,kRenderTransTexture,AMOUNT);
AMOUNT should be somewhere from 0-255, 0 being completely invisible and 255 being completely visible


As for your other problem, I believe the colors for decals are hard-coded in and cannot be changed. This means the only way you could get green blood decals is if they already exist somewhere in the game. Have you ever seen green blood decals?

haimmaik 11-08-2005 15:48

OMG.. -__- i saw green blood in HALF LIFE... the 1 falls off the monsters
FOUND IT
3,4,5,6,7,8


All times are GMT -4. The time now is 23:51.

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