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

[DoD:S] game_player_equip entity fix (0.1.0)


  • 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 488
  • Lokalizacja:AMXX.PL
Offline

Napisano 26.11.2015 02:47

<div>If you didn't know, &quot;game_player_equip&quot; is the name of a mechanism, implemented in some Source Engine based games, which allows mappers to set the outfit of players during gameplay. In Day of Defeat: Source, this can be used to place pickable weapons in the scenery; so, for example, a player can change their main weapon without changing class or can pick a grenade not provided by his class. But in Day of Defeat: Source there are two issues about this mechanism:<br /><ul><li>These pickable weapons can't have more than one ammo.</li>
<li>If the player picks a weapon (except some grenades) which takes up a slot occupied by a weapons he owns, the picked weapon is spawned to the player position, falls over the ground then disappears. (mainly a visual issue, however)</li>
</ul>so, this plugin fixes this.<br /><br /><br /><br /><b>Requirements</b>:<br />I have tested this plugin on SourceMod 1.7.3 build 5275, but every build which works on the latest version of Day of Defeat: Source is good.<br /><br /><b>Notes for </b><b><b>programmers and </b>mappers</b>:<br /><ul><li>This plugin needs <a href="https://github.com/bcserv/smlib"target="_blank">SMlib</a> during compile; i have attached the snapshot from its GitHub i have used.</li>
<li>This plugin corrects what happens when the <i>game_player_equip</i> entity receive the <i>Use</i> input if the activator is the player. I have tested it with a <i>trigger_multiple </i>linked to a <i>game_player_equip</i>, but even a <i>func_button</i> should work.</li>
<li>As you can imagine, the amount of ammo must be specified in the value field related to the weapon specified as key name. A single unit of ammo is a single round, not a single bullet (except for bazooka and grenades).</li>
<li>I have attached a map for testing purposes.</li>
</ul><b>Maps designed for this plugin</b>:<br /><i>Coming soon</i><br />(inform me of these maps)<br /><br /><br /><br />A thanks to the authors of the SourceMod and the SMlib :)</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/smx.gif"alt="File Type: smx" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


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


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


<a href="https://forums.allie...entityfix4DoDS,source code.zip</a> (75.1 KB)


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


<a href="https://forums.allie...gameplayerequipmap.zip</a> (35.1 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