Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
Editing DP SV CUSTOMIZEENTITYFORCLIENT
From Quake Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 13: | Line 13: | ||
* Making icons over teammates' heads which are only visible to teammates. For exasmple: | * Making icons over teammates' heads which are only visible to teammates. For exasmple: | ||
<pre> | <pre> | ||
− | float() playericon_customizeentityforclient = | + | float() playericon_customizeentityforclient = {return self.owner.team == other.team;}; |
− | { | ||
− | |||
− | }; | ||
</pre> | </pre> | ||
* Making cloaked players more visible to their teammates than their enemies. For example: | * Making cloaked players more visible to their teammates than their enemies. For example: | ||
<pre> | <pre> | ||
− | float() player_customizeentityforclient = | + | float() player_customizeentityforclient = {if (self.items & IT_CLOAKING) {if (self.team == other.team) self.alpha = 0.6;else self.alpha = 0.1;} return TRUE;}; |
− | { | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | }; | ||
</pre> | </pre> | ||
* Making explosion models that face the viewer (does not work well with chase_active). For example: | * Making explosion models that face the viewer (does not work well with chase_active). For example: | ||
<pre> | <pre> | ||
− | float() explosion_customizeentityforclient = | + | float() explosion_customizeentityforclient = {self.angles = vectoangles(other.origin + other.view_ofs - self.origin);self.angles_x = 0 - self.angles_x;}; |
− | { | ||
− | |||
− | |||
− | }; | ||
</pre> | </pre> | ||