Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[CS:GO] Missing ViewModel Fix


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 490
  • Lokalizacja:AMXX.PL
Offline

Napisano 21.12.2015 16:07

<div><u><b>Description</b></u><br /><br />Did you ever see this strange bug where your viewmodel suddenly disappears and you didn't do anything?<br />This is actually an engine bug Valve should try to fix.<br /><br />This plugin tries to prevent this bug from happening on your server.<br /><br /><img src="http://i.imgur.com/wy1aXrX.gif"border="0" alt="" /><br /><br /><u><b>Installation</b></u><br /><br />- Drop missing_viewmodel_fix.smx into addons/sourcemod/plugins.<br />- Restart server and you're good to go.<br /><br /><u><b>Explanation of the bug</b></u><br /><br />If someone joins spectator mode and watches someone else in first person mode, the player still alive can't see their viewmodel (weapon and hands) anymore. It looks like &quot;r_drawviewmodel 0&quot; was executed. This only happens if &quot;mp_death_drop_gun&quot; is set to 1.<br /><br />How can this be replicated exactly? <br />1) Run your server with default competitive settings, with or without MetaMod/SourceMod.<br />2) Start up de_dust2.<br />3) Join CT team together with a friend.<br />4) You have to be apart enough for this to work (as this bug seems to only happen when transition effect is not visible), so let your friend walk all the way on A long until he reaches pit.<br />5) You stay on CT spawn, make sure you've set &quot;cl_spec_mode&quot; to 4 (firstperson) - this is part of the bug.<br />6) Join spectator mode - your friend's viewmodel is now gone.<br /><br /><u><b>What this plugin does</b></u><br /><br />This plugin intercepts teamjoins to spectator and forces the client to set &quot;cl_spec_mode&quot; to 6 (free look) first. As soon as the client has set freelook mode the teamjoin is performed. This causes the client to start in freelook mode and therefore prevents the bug.<br /><br /><u><b>Limitations</b></u><br /><br />This plugin may not work if you use other plugins that intercept teamjoins as well (like TeamChange Unlimited).<br /><br />Fix for TeamChange Unlimited:<br /><br />Change this:<br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">TeamChangeActual</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">toteam</span><span style="color: #007700">);&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>To this:<br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">if&nbsp;(</span><span style="color: #0000BB">toteam&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #0000BB">TEAM_SPECTATE</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;return&nbsp;</span><span style="color: #0000BB">Plugin_Continue</span><span style="color: #007700">;<br />}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">TeamChangeActual</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">toteam</span><span style="color: #007700">);<br />}&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><u><b>Valve?</b></u><br /><br />Hopefully Valve will fix this bug so this plugin won't be needed anymore soon.</div>


<br /> <div style="padding:6px">








<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...66"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1450710416">GetSource</a> (missing_viewmodel_fix.sp - 1.9 KB)


</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie...attach/smx.gif"alt="File Type: smx" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...del_fix.smx</a>(4.6 KB)


</td>
</tr>
</table>
</fieldset>


</div>

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych