Перейти к содержимому
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.

help: m14 ebr no scope mod

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

I know how to do it already by adding the scope hidetag but this is what im asking:

 

what are the animations for the iron sights? they are for these lines:

 

adsFireAnim\viewmodel_M14ebr_fire_ads\adsLastShotAnim\viewmodel_M14ebr_fire_last\adsUpAnim\viewmodel_M14ebr_scope_ADS_up\adsDownAnim\viewmodel_M14ebr_scope_ADS_down

 

the scopeless m14 ebr is in sp so yeah.

 

thanks

  • Ответы 64
  • Просмотры 1,9k
  • Created
  • Последний ответ

Top Posters In This Topic

Featured Replies

Опубликовано:
JoeyB":2pivwmfa]Couldn't you just do this?

 

while(self playerAds == 1)
{
self setClientDvar("cg_gun_y", value);
}

while(self playerAds != 1) 
{
self setClientDvar("cg_gun_y", 0);
}

Yes, something like this should work.

Опубликовано:
  • Автор
JoeyB":wnaeubqd]Well, add a small wait time too forgot about that. Just like a wait 0.1; as it could lag the server without the wait.

so do i copy that code and put it in _rank.gsc (sorry i dont gsc mod) or do i have to mention the m14 ebr somewhere in that code?

Опубликовано:
JoeyB":35cps2wk]Well, add a small wait time too forgot about that. Just like a wait 0.1; as it could lag the server without the wait.

so do i copy that code and put it in _rank.gsc (sorry i dont gsc mod) or do i have to mention the m14 ebr somewhere in that code?

Add this under for(;;) inside onPlayerSpawned()

self thread monitorM14();

 

Then outside of onPlayerSpawned() paste this:

 

monitorM14()
{
self endon("death");
self endon("disconnect");
while(self playerAds == 1 && isSubStr(self getCurrentWeapon(), "m14"))
{
   self setClientDvar("cg_gun_y", value);
   wait 0.1;
}

while(self playerAds != 1 || !isSubStr(self getCurrentWeapon(), "m14")) 
{
   self setClientDvar("cg_gun_y", 0);
   wait 0.1;
   }
}

 

Should work, havent tested though obv.

Опубликовано:
  • Автор
JoeyB":jonzwp7t]
JoeyB":jonzwp7t]Well, add a small wait time too forgot about that. Just like a wait 0.1; as it could lag the server without the wait.

so do i copy that code and put it in _rank.gsc (sorry i dont gsc mod) or do i have to mention the m14 ebr somewhere in that code?

Add this under for(;;) inside onPlayerSpawned()

self thread monitorM14();

 

Then outside of onPlayerSpawned() paste this:

 

monitorM14()
{
self endon("death");
self endon("disconnect");
while(self playerAds == 1 && isSubStr(self getCurrentWeapon(), "m14"))
{
   self setClientDvar("cg_gun_y", value);
   wait 0.1;
}

while(self playerAds != 1 || !isSubStr(self getCurrentWeapon(), "m14")) 
{
   self setClientDvar("cg_gun_y", 0);
   wait 0.1;
   }
}

 

Should work, havent tested though obv.

something like this:

 

{
onPlayerSpawned()
self thread monitorM14();
}
monitorM14()
{
self endon("death");
self endon("disconnect");
  while(self playerAds == 1 && isSubStr(self getCurrentWeapon(), "m14"))
  {
     self setClientDvar("cg_gun_y", value);
     wait 0.1;
  }

  while(self playerAds != 1 || !isSubStr(self getCurrentWeapon(), "m14")) 
  {
     self setClientDvar("cg_gun_y", 0);
     wait 0.1;
     }
}

 

or this:

 

}
onPlayerSpawned()
self thread monitorM14();
monitorM14()
{
self endon("death");
self endon("disconnect");
  while(self playerAds == 1 && isSubStr(self getCurrentWeapon(), "m14"))
  {
     self setClientDvar("cg_gun_y", value);
     wait 0.1;
  }

  while(self playerAds != 1 || !isSubStr(self getCurrentWeapon(), "m14")) 
  {
     self setClientDvar("cg_gun_y", 0);
     wait 0.1;
     }
}

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

Here's _rank.gsc that should work: http://pastebin.com/Uqk9zTSc

 

Replace gun_y_value with the value you find to set it to.

Also I don't know if the actual gun's name has M14 in it but I am/was assuming so, if not, tell me and I'll fix it.

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

@JoeyB As self playerADS() is always false when the player spawns (at least i guess so), so the first while loop's condition isn't fulfilled. It will go into the 2nd while loop which ends until the player aims in and is holding m14 for the first time after he spawned. After that the function pretty much won't do anything until the player dies.

You'd need a loop around those two loops.

 

@OP

You could try this.

The self.guny is just there to avoid the clientdvar to be set every split second, in situations it wouldn't be necessary to be set (as it already is set to the appropriate value) Tested it with ak47 and it works...

Shouldn't be the weapon name m21?!

monitorM14( value )
{
self endon( "death" );
self endon( "disconnect" );

self.guny = undefined;

for(;
{
	if( self playerADS() && isSubStr(self getCurrentWeapon(), "m21")  && !self.guny ) {
		self setClientDvar( "cg_gun_y", value );
		self.guny = 1;
	}	
	else if( ( !self playerADS() || !isSubStr(self getCurrentWeapon(), "m21") ) && self.guny ) {
		self setClientDvar( "cg_gun_y", 0 );
		self.guny = 0;
	}
	wait 0.05;
}
}

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

I did this for the g36c:

g36caim()
{
self endon("death");

while( true )
{
	if( self getCurrentWeapon() == "g36c_reflex" && self AdsButtonPressed() )
	{
		self setClientDvar("cg_gun_x", 2);
		self setClientDvar("cg_gun_z", 0.65);
	}

	else
	{
		self setClientDvar("cg_gun_x", 0);
		self setClientDvar("cg_gun_z", 0);
	}

	wait (0.1);
}
}

  • 1 month later...
Опубликовано:

Wonder what ever happened to this?

Опубликовано:
Wonder what ever happened to this?

you have all information here, it's easily doable

 

 

True but why re-do what has already been done?

Join the conversation

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

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

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

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

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

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

Account

Navigation

Поиск

Поиск

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.