Перейти к содержимому
View in the app

A better way to browse. Learn more.

Zloplay community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Опубликовано:

Who knows how do i change color of crosshair when its over enemy and when he shot and shot kill the enemy??

I connected to a server and i saw it...

Plz help me!

Thanks :)

Опубликовано:

Yes, u know how?? :D

Опубликовано:

[

Get a clean _damagefeedback.gsc (e.g. here: viewtopic.php?f=17&t=8768 ) and find the updateDamageFeedback( typeHit ) function,

change it so it looks like this:

 

updateDamageFeedback( typeHit )
{
  if ( !isPlayer( self ) )
     return;

  x = -12;
  y = -12;

  if ( getDvarInt( "camera_thirdPerson" ) )
     yOffset = self GetThirdPersonCrosshairOffset() * 240;
  else
     yOffset = getdvarfloat( "cg_crosshairVerticalOffset" ) * 240;

  if ( level.splitscreen )   
     yOffset *= 0.5;

  feedbackDurationOverride = 0;
  startAlpha = 1;

  if ( typeHit == "hitBodyArmor" )
  {
     self.hud_damagefeedback setShader("damage_feedback_j", 24, 48);
     //red color
     self.hud_damagefeedback.color = ( 1, 0, 0 );
     self playlocalsound("MP_hit_alert"); // TODO: change sound?
  }
  else if ( typeHit == "hitEndGame" )
  {
     self.hud_damagefeedback setShader("damage_feedback_endgame", 24, 48);
     //red color
     self.hud_damagefeedback.color = ( 1, 0, 0 );
     self playlocalsound("MP_hit_alert");
  }
  else if ( typeHit == "stun" )
  {
     return;   
  }
  else if ( typeHit == "none" )
  {
     return;   
  }
  else if ( typeHit == "scavenger" && !level.hardcoreMode )
  {
     x = -36;
     y = 32;
     self.hud_damagefeedback setShader("scavenger_pickup", 64, 32);
     //scavenger color white
     self.hud_damagefeedback.color = ( 1, 1, 1 );
     feedbackDurationOverride = 2.5;
  }
  else
  {
     self.hud_damagefeedback setShader("damage_feedback", 24, 48);

     //red color
     self.hud_damagefeedback.color = ( 1, 0, 0 );
     self playlocalsound("MP_hit_alert");
  }

  self.hud_damagefeedback.alpha = startAlpha;
  if ( feedBackDurationOverride != 0 )
     self.hud_damagefeedback fadeOverTime(feedbackDurationOverride);
  else   
     self.hud_damagefeedback fadeOverTime(1);

  self.hud_damagefeedback.alpha = 0;

  // only update hudelem positioning when necessary
  if ( self.hud_damagefeedback.x != x )
     self.hud_damagefeedback.x = x;   

  y = y - int( yOffset );
  if ( self.hud_damagefeedback.y != y )
     self.hud_damagefeedback.y = y;   
}

result:

RsvuD.jpg

Опубликовано:

OMG Thankssssssssss <3 I love u :P

Now, u know u do i change color of crosshair when its over enemy??

Опубликовано:

Please Any help?

Опубликовано:

Now, u know u do i change color of crosshair when its over enemy??

 

Probably not possible through 'just' .gsc modding.

Only trace i found was precacheShader( "crosshair_red" );, but i doubt that other shader colors are existent (besides white and red). The function which 'monitors' if the crosshair is on an enemy or not seems to be hardcoded anyway.

Опубликовано:

Now, u know u do i change color of crosshair when its over enemy??

 

Probably not possible through 'just' .gsc modding.

Only trace i found was precacheShader( "crosshair_red" );, but i doubt that other shader colors are existent (besides white and red). The function which 'monitors' if the crosshair is on an enemy or not seems to be hardcoded anyway.

 

 

Ok, thanks! :)

Опубликовано:

In _rank.gsc find the function scorePopup( amount, bonus, hudColor, glowAlpha )

 

and modify this part:

	self.hud_scorePopup.color = hudColor; //e.g. = (0,0,1);
self.hud_scorePopup.glowColor = hudColor; //e.g. = (0,0,1);
self.hud_scorePopup.glowAlpha = glowAlpha; 

 

to your likings.

Опубликовано:

Thank man realy thanks!!!! :D

I know i am asking a lot of thinks but i go one more question :S

I put auto asign in the mod and now i want to block team change...But block when teams are like 4-4 or 4-3 or 3-4...

And with auto asign it takes automaticly famas and not sniper, can i fix this?

This is the last question, thanks :D

Опубликовано:
But block when teams are like 4-4 or 4-3 or 3-4...

 

Get a _teams.gsc and change the complete function:

getJoinTeamPermissions( team )

 

to:

 

getJoinTeamPermissions( team ) 
{
//credits to lmaobox
	playerCounts = self CountPlayers();

	return (( playerCounts["allies"] == playerCounts["axis"] ) || ( playerCounts[team] < playerCounts["axis"] ) || ( playerCounts[team] < playerCounts["allies"] ));
}

 

And with auto asign it takes automaticly famas and not sniper, can i fix this?

This is the last question, thanks :D

Thats cause of poorly coded isnipe. It pretty much gives a default class then takes its weapons away, to give cheytac/intervention afterwards. Could be done directly through _class.gsc and you wouldn't have that problem...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Гость
Ответить в тему...

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу

Важная информация

Используя этот сайт, вы соглашаетесь Условия использования.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.