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

[TF2] Real-Time Strategy Camera Controls


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

Napisano 06.10.2023 12:02

<div>This is a proof-of-concept implementation for a Real-Time Strategy (RTS) camera control setup with support for screen-space to world-space point-and-click selection. It is written in pure SourcePawn and only requires SourceMod running on a Team Fortress 2 server.<br /><br />Please note the cursor and other movement speeds and sensitivity settings have been hard-coded and should be edited and configured for your implementation. Users may also have specific preferences that depend on game settings and server latency.<br /><br /><font color="orange"><b>Custom bots used during testing and demonstration are not part of this release.</b></font><br /><br /><b>Features</b><br /><ul><li> Edge scrolling</li>
<li> WASD-keys scrolling</li>
<li> Drag-to-scroll (hold right mouse button and drag)</li>
<li> Zooming (scroll with mouse wheel, see below for binds)</li>
<li> Rotation (hold mouse wheel down and drag, can be used while scrolling for fly-through)</li>
<li> Clip camera angles and movements to bounding box</li>
<li> Left-click to select units (drag rectangle to select multiple)</li>
<li> Right-click to apply an action to selected units</li>
<li> Colored health bars drawn above selected unit entities that are visible through walls</li>
</ul><br /><b>Demonstration Videos</b><br /><br /><iframe width="420" height="315" src="https://www.youtube....wkfLo5IU?rel=0"frameborder="0" allowfullscreen></iframe> <iframe width="420" height="315" src="https://www.youtube.com/embed/hbxU_-z8PXA?rel=0" frameborder="0" allowfullscreen></iframe> <iframe width="420" height="315" src="https://www.youtube.com/embed/ERvY5gpm6Zg?rel=0" frameborder="0" allowfullscreen></iframe> <iframe width="420" height="315" src="https://www.youtube.com/embed/KNuPMUGpj6s?rel=0" frameborder="0" allowfullscreen></iframe> <iframe width="420" height="315" src="https://www.youtube.com/embed/62aol1pVGYk?rel=0" frameborder="0" allowfullscreen></iframe><br /><br /><b>Commands</b><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">sm_rts [min_x min_y min_z max_x max_y max_z] - Enter and exit RTS mode<br />sm_rts_zoom_in&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - Camera zoom in<br />sm_rts_zoom_out&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - Camera zoom out<br /><br />sm_rts_aspect_ratio &lt;ratio&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; - Set camera aspect ratio<br />sm_rts_aspect_ratio &lt;width&gt; &lt;height&gt;&nbsp; &nbsp; &nbsp; &nbsp; - Set camera aspect ratio calculated with width and height</code><hr />
</div><b>Recommended Binds</b><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">bind MWHEELUP sm_rts_zoom_in<br />bind MWHEELDOWN sm_rts_zoom_out</code><hr />
</div><b>Example Test Map</b><br /><br />This project was developed and tested on <a href="https://jumpacademy....demy_classic_b"target="_blank" rel="nofollow noopener">jump_academy_classic_b</a> inside the Market Gardening Arena (MGA) part of the map. Use the <i>sm_rts</i> command with the corresponding bounding box values as follows to start:<br /><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left">sm_rts 6680 -3750 -1035 10200 -300 785</code><hr />
</div><b>Dependencies</b><br /><ul><li>SourceMod 1.12.0.7038 or newer</li>
<li><a href="https://forums.allie...d.php?t=148387"title="AlliedModders - Thread 148387">SMLib</a></li>
</ul><br />Download via GitHub Repository:<ul><li><a href="https://github.com/g...sm-rts-starter"target="_blank" rel="nofollow noopener">Source</a></li>
</ul></div>

Wyświetl pełny artykuł




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

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