Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

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] Panzer Tank standalone plugin


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

Napisano 03.07.2016 02:09

<div>TF2 didn't seem to have vehicles (to me at least), so instead of messing around with sensitive code that would likely crash everything, I decided to make a vehicle plugin from scratch.<br /><br />And what better vehicle to create in a shooter game than a Tank?<br /><br />Tank Features:<br />-Gas power (toggleable from cvar)<br />~gas can be replenished by medigun or from dispenser<br />~when gas is depleted, tank player cannot move at all!<br /><br />-Ability to run over people and objects (the code for this is deprecated and i've since made a better system but the purpose of this plugin is to simply release it)<br /><br />-Equipped with an SMG and Right-Click/MOUSE2 launches a rocket which has a 4 second cooldown.<br />-Engineers can fix the tank and reload its SMG turret using their wrench!<br />-Immune to backstabs until very low health.<br />-SMG and rockets from the tank have no damage fall off!<br />-Tanks have are vulnerable to explosives but shrug off bullet and fire damage.<br /><br />For team oriented gamemodes such as VSH/FF2, the plugin also allows you to block certain teams from becoming tanks and you can limit the amount of tanks per team as well!<br /><br /><br />Here's a demonstration video made by a friend to showcase all of these features!<br /><br /><a href="http://www.youtube.com/watch?v=nnwbu0Zvsh0" target="_blank"> /><br /><br />DOWNLOAD ==&gt; <a href="https://drive.google...ew?usp=sharing"target="_blank">https://drive.google...=sharing</a><br /><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: #FF8000">//&nbsp;ConVars&nbsp;for&nbsp;plugin&nbsp;"bethetank.smx"<br /><br />//&nbsp;Acceleration&nbsp;in&nbsp;speed&nbsp;every&nbsp;0.1&nbsp;seconds&nbsp;(in&nbsp;Hammer&nbsp;Units/second)&nbsp;of&nbsp;Tank<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"3.0"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"9999.000000"<br /></span><span style="color: #0000BB">sm_betank_acceleration&nbsp;</span><span style="color: #DD0000">"3.0"<br /><br /></span><span style="color: #FF8000">//&nbsp;what&nbsp;flag&nbsp;admins&nbsp;need&nbsp;to&nbsp;bypass&nbsp;the&nbsp;tank&nbsp;class&nbsp;limit<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"a"<br /></span><span style="color: #0000BB">sm_betank_adminflag_bypass&nbsp;</span><span style="color: #DD0000">"a"<br /><br /></span><span style="color: #FF8000">//&nbsp;(Dis)Allow&nbsp;Tank&nbsp;to&nbsp;be&nbsp;able&nbsp;to&nbsp;use&nbsp;Engineer&nbsp;teleporters<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"1"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"1.000000"<br /></span><span style="color: #0000BB">sm_betank_allowtele&nbsp;</span><span style="color: #DD0000">"1"<br /><br /></span><span style="color: #FF8000">//&nbsp;how&nbsp;much&nbsp;ammo&nbsp;Tanks&nbsp;will&nbsp;start&nbsp;with<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"1000"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"99999.000000"<br /></span><span style="color: #0000BB">sm_betank_ammo&nbsp;</span><span style="color: #DD0000">"1000"<br /><br /></span><span style="color: #FF8000">//&nbsp;(Dis)Allow&nbsp;Tanks&nbsp;to&nbsp;be&nbsp;playable&nbsp;for&nbsp;BLU&nbsp;team<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"0"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"1.000000"<br /></span><span style="color: #0000BB">sm_betank_blu&nbsp;</span><span style="color: #DD0000">"0"<br /><br /></span><span style="color: #FF8000">//&nbsp;how&nbsp;many&nbsp;Tanks&nbsp;blu&nbsp;team&nbsp;can&nbsp;have<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"0"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"16.000000"<br /></span><span style="color: #0000BB">sm_betank_blu_limit&nbsp;</span><span style="color: #DD0000">"0"<br /><br /></span><span style="color: #FF8000">//&nbsp;Crush&nbsp;Damage&nbsp;(ignores&nbsp;uber)&nbsp;done&nbsp;by&nbsp;Tank&nbsp;while&nbsp;it's&nbsp;moving<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"30.0"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"9999.000000"<br /></span><span style="color: #0000BB">sm_betank_crushdamage&nbsp;</span><span style="color: #DD0000">"30.0"<br /><br /></span><span style="color: #FF8000">//&nbsp;Enable&nbsp;Player-Tank&nbsp;plugin<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"1"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"1.000000"<br /></span><span style="color: #0000BB">sm_betank_enabled&nbsp;</span><span style="color: #DD0000">"1"<br /><br /></span><span style="color: #FF8000">//&nbsp;Enable&nbsp;Tanks&nbsp;to&nbsp;be&nbsp;powered&nbsp;via&nbsp;'gas'&nbsp;which&nbsp;is&nbsp;replenishable&nbsp;by&nbsp;dispensers+mediguns<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"1"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"1.000000"<br /></span><span style="color: #0000BB">sm_betank_gaspowered&nbsp;</span><span style="color: #DD0000">"1"<br /><br /></span><span style="color: #FF8000">//&nbsp;how&nbsp;much&nbsp;health&nbsp;Tanks&nbsp;will&nbsp;start&nbsp;with<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"1000"<br />//&nbsp;Minimum:&nbsp;"1.000000"<br />//&nbsp;Maximum:&nbsp;"99999.000000"<br /></span><span style="color: #0000BB">sm_betank_health&nbsp;</span><span style="color: #DD0000">"1000"<br /><br /></span><span style="color: #FF8000">//&nbsp;how&nbsp;much&nbsp;metal&nbsp;to&nbsp;heal/arm&nbsp;Tanks&nbsp;by&nbsp;Engineers<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"25"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"999.000000"<br /></span><span style="color: #0000BB">sm_betank_healthfrommetal&nbsp;</span><span style="color: #DD0000">"25"<br /><br /></span><span style="color: #FF8000">//&nbsp;how&nbsp;much&nbsp;metal&nbsp;to&nbsp;heal/arm&nbsp;Tanks&nbsp;by&nbsp;Engineers&nbsp;mult<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"4"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"999.000000"<br /></span><span style="color: #0000BB">sm_betank_healthfrommetal_mult&nbsp;</span><span style="color: #DD0000">"4"<br /><br /></span><span style="color: #FF8000">//&nbsp;(Dis)Allow&nbsp;Engies&nbsp;to&nbsp;be&nbsp;able&nbsp;to&nbsp;repair+arm&nbsp;Tanks&nbsp;via&nbsp;wrench<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"1"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"1.000000"<br /></span><span style="color: #0000BB">sm_betank_hpfromengies&nbsp;</span><span style="color: #DD0000">"1"<br /><br /></span><span style="color: #FF8000">//&nbsp;x&nbsp;coordinate&nbsp;for&nbsp;the&nbsp;Gas&nbsp;Meter&nbsp;HUD<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"2.0"<br /></span><span style="color: #0000BB">sm_betank_hudx&nbsp;</span><span style="color: #DD0000">"2.0"<br /><br /></span><span style="color: #FF8000">//&nbsp;y&nbsp;coordinate&nbsp;for&nbsp;the&nbsp;Gas&nbsp;Meter&nbsp;HUD<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"2.0"<br /></span><span style="color: #0000BB">sm_betank_hudy&nbsp;</span><span style="color: #DD0000">"2.0"<br /><br /></span><span style="color: #FF8000">//&nbsp;Initial&nbsp;Speed&nbsp;(in&nbsp;Hammer&nbsp;Units/second)&nbsp;of&nbsp;Tank<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"40.0"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"9999.000000"<br /></span><span style="color: #0000BB">sm_betank_initialspeed&nbsp;</span><span style="color: #DD0000">"40.0"<br /><br /></span><span style="color: #FF8000">//&nbsp;Max&nbsp;Forward&nbsp;Speed&nbsp;(in&nbsp;Hammer&nbsp;Units/second)&nbsp;of&nbsp;Tank<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"100.0"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"9999.000000"<br /></span><span style="color: #0000BB">sm_betank_maxspeed&nbsp;</span><span style="color: #DD0000">"100.0"<br /><br /></span><span style="color: #FF8000">//&nbsp;(Dis)Allow&nbsp;Tank&nbsp;Rockets&nbsp;to&nbsp;have&nbsp;no&nbsp;Damage&nbsp;Fall-Off&nbsp;and&nbsp;no&nbsp;Damage&nbsp;Ramp-up<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"1"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"1.000000"<br /></span><span style="color: #0000BB">sm_betank_nofalloffrockets&nbsp;</span><span style="color: #DD0000">"1"<br /><br /></span><span style="color: #FF8000">//&nbsp;(Dis)Allow&nbsp;Tank&nbsp;Turret&nbsp;to&nbsp;have&nbsp;no&nbsp;Damage&nbsp;Fall-Off&nbsp;and&nbsp;no&nbsp;Damage&nbsp;Ramp-up<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"1"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"1.000000"<br /></span><span style="color: #0000BB">sm_betank_nofalloffturret&nbsp;</span><span style="color: #DD0000">"1"<br /><br /></span><span style="color: #FF8000">//&nbsp;(Dis)Allow&nbsp;Tanks&nbsp;from&nbsp;being&nbsp;able&nbsp;to&nbsp;rocket&nbsp;jump&nbsp;from&nbsp;MOUSE2&nbsp;rockets<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"1"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"1.000000"<br /></span><span style="color: #0000BB">sm_betank_norocketjump&nbsp;</span><span style="color: #DD0000">"1"<br /><br /></span><span style="color: #FF8000">//&nbsp;(Dis)Allow&nbsp;Tanks&nbsp;to&nbsp;be&nbsp;playable&nbsp;for&nbsp;RED&nbsp;team<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"1"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"1.000000"<br /></span><span style="color: #0000BB">sm_betank_red&nbsp;</span><span style="color: #DD0000">"1"<br /><br /></span><span style="color: #FF8000">//&nbsp;how&nbsp;many&nbsp;Tanks&nbsp;red&nbsp;team&nbsp;can&nbsp;have<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"1"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"16.000000"<br /></span><span style="color: #0000BB">sm_betank_red_limit&nbsp;</span><span style="color: #DD0000">"1"<br /><br /></span><span style="color: #FF8000">//&nbsp;Max&nbsp;Backwards&nbsp;Speed&nbsp;(in&nbsp;Hammer&nbsp;Units/second)&nbsp;of&nbsp;Tank<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"80.0"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"9999.000000"<br /></span><span style="color: #0000BB">sm_betank_reversespeed&nbsp;</span><span style="color: #DD0000">"80.0"<br /><br /></span><span style="color: #FF8000">//&nbsp;Time&nbsp;in&nbsp;seconds&nbsp;for&nbsp;Rocket&nbsp;Gun&nbsp;to&nbsp;be&nbsp;able&nbsp;to&nbsp;shoot&nbsp;another&nbsp;rocket,&nbsp;set&nbsp;to&nbsp;4&nbsp;by&nbsp;default&nbsp;to&nbsp;match&nbsp;with&nbsp;reload&nbsp;sound<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"4.0"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"9999.000000"<br /></span><span style="color: #0000BB">sm_betank_rocketcooldown&nbsp;</span><span style="color: #DD0000">"4.0"<br /><br /></span><span style="color: #FF8000">//&nbsp;Base&nbsp;Damage&nbsp;for&nbsp;Rockets&nbsp;shot&nbsp;by&nbsp;Player-Tank<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"100.0"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"9999.000000"<br /></span><span style="color: #0000BB">sm_betank_rocketdamage&nbsp;</span><span style="color: #DD0000">"100.0"<br /><br /></span><span style="color: #FF8000">//&nbsp;radius&nbsp;of&nbsp;rocket&nbsp;shot&nbsp;from&nbsp;Main&nbsp;Gun<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"1.0"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"9999.000000"<br /></span><span style="color: #0000BB">sm_betank_rocketradius&nbsp;</span><span style="color: #DD0000">"1.0"<br /><br /></span><span style="color: #FF8000">//&nbsp;Speed&nbsp;of&nbsp;Rockets&nbsp;shot&nbsp;by&nbsp;Player-Tank<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"4000.0"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"9999.000000"<br /></span><span style="color: #0000BB">sm_betank_rocketspeed&nbsp;</span><span style="color: #DD0000">"4000.0"<br /><br /></span><span style="color: #FF8000">//&nbsp;If&nbsp;tanks&nbsp;are&nbsp;gas&nbsp;powered,&nbsp;how&nbsp;much&nbsp;gas&nbsp;they&nbsp;will&nbsp;start&nbsp;with<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"100.0"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"9999.000000"<br /></span><span style="color: #0000BB">sm_betank_startingfuel&nbsp;</span><span style="color: #DD0000">"100.0"<br /><br /></span><span style="color: #FF8000">//&nbsp;Base&nbsp;Damage&nbsp;for&nbsp;the&nbsp;SMG&nbsp;Turret&nbsp;shot&nbsp;by&nbsp;the&nbsp;Player-Tank<br />//&nbsp;-<br />//&nbsp;Default:&nbsp;"1.0"<br />//&nbsp;Minimum:&nbsp;"0.000000"<br />//&nbsp;Maximum:&nbsp;"9999.000000"<br /></span><span style="color: #0000BB">sm_betank_turretdamage&nbsp;</span><span style="color: #DD0000">"1.0"&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div>N-JOY</div>

Wyświetl pełny artykuł




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

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