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

[CS] Weapon Mod 2.0R


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

Napisano 22.07.2016 10:20

<div><font size="3"><b>This Was<font color="Red"> Private Plugin</font>, But I Decided To Make It Public.</b><br />This New Version Of Counter-Strike Weapon Mod Is Much Different Than Old One. :shock:<br /><b>Author: <i>Ghost</i></b><br /><br /><b><font color="Green">What Can Really Make This Mod?<br />Create Whole New Weapon!</font></b><br /><br />We Can Set New Weapon:<ul><li>Deploy Time</li>
<li>Deploy Animation</li>
<li>Attack Animation (4X)</li>
<li>Attack Speed (Delay)</li>
<li>Attack Damage</li>
<li>Reload Animation</li>
<li>Reload Time</li>
<li>Clip</li>
<li>Ammo</li>
<li>Recoil</li>
<li>Secondary Attack</li>
<li>Laser Beam<br /><b><font color="green">Flags And Their Values</font></b></li>
</ul>Adding Weapon Is Not So Easy.<br /><br />Weapon Files Path Is Configs/cswpn<br /><br /><br />configs/cswpn/settings.ini<br />{<ul><li>MODEL_PATH = Path Of Weapon Models ( Default models/cswpn Folder )</li>
<li>SOUND_PATH = Path Of Weapon Sounds ( Default weapons Folder )</li>
<li>HUD_PATH = Path Of Weapon List (HUD) ( Default sprites Folder )</li>
<li>LASERBEAM_MODEL = Laser Beam Model ( Default sprites/laserbeam.spr )</li>
<li>SMOKEPUFF_TYPE = Weapon SmokePuff Type 0/1 ( Default Is 1 )</li>
</ul>}<br /><br />SmokePuff Types<br />{<ul><li>0 = Pistols Will Use pistol_smoke*.spr And Rifles Will Use rifle_smoke*.spr</li>
<li>1 = Both Pistols And Rifles Will Use Wall Puff</li>
</ul>}<br /><br /><b>BUG: <font color="Red">At This Time Weapon List (HUD) Requires To Restart Server At First Time Start.</font></b><br /><br />CVars<br />{<ul><li>cs_weapon_textfilter 0/1 (Filters Text Written In Weapon Settings Files = Disables Lines With ';')</li>
<li>cs_weapon_filefilter 0/1 (Filters Files Precached By Weapons = If File Not Exist, Error Will Be Printed)</li>
<li>cs_weapon_log 0/1/2 (NO_LOG/NORMAL_LOG/FULL_LOG = Display Logging Of Weapons, (Precache, Adding, etc... )</li>
<li>cs_weapon_unlimitedammo 0/1 (Enables Unlimited Ammo To Weapons)</li>
</ul>}<br /><br />Client Commands<br />{<ul><li>say /wmenu | say_team /wmenu (Displays Weapon Menu = Required Money For Weapons)</li>
<li>Console - GetWeapon ( Will Get Weapon By Model ) (Example GetWeapon dualkriss) (Required Flag ADMIN_BAN )</li>
</ul>}<br /><br />Natives<br />{<ul><li> CSWM_GiveWeapon( iPlayerID , iWeaponID ( First One Is 0 ) ) // Give Weapon To Player</li>
<li> CSWM_DisplayWeaponMenu( iPlayerID ) // Display Weapons Menu or just say /wmenu</li>
</ul>}<br /><br /><b>How To Make Custom Weapons ?</b><br />Step 1: View File <font color="SeaGreen">weapons.ini</font> And Add There Model Name.<br />Step 2: Create INI File In configs/cswpn/weapons/ Directory Named By weapon_*.ini<br />Step 3: There Is Not More Steps Just Open That File And Start Adding Weapon.<br /><br /><b>How To Set Flags To Weapons ?</b><br />Step 1: Create INI File In configs/cswpn/weapons/ Directory Named By weapon_flags_*.ini<br />Step 2: Open File And Add Flags To Weapon.<br /><br /><b>Where Are Flags ?</b><br />Dont Worry Flags Are Here!<br /><br />Valid Flags Are:<ol style="list-style-type: decimal"><li>NoHUD = If You Weapon Does Not Have WeaponList You Can Write This And Plugin Use Default HUD At That Weapon</li>
<li>NoFireSound = If Your Weapons Does Not Have FireSound (WTF?) You Can Write This And Plugin Use Default FireSound At That Weapon</li>
<li>NoRandomShootAnimation = Said At Starting There Is 4x Animation But They Are Played Randomly, So Set This Flag And You Get Animations Like This: 1, 2, 3, 4, Repeat....</li>
<li>NoDrawAfterBuy = After Buying Weapon It Wont Be Deployed Automatically, But If Client Has _cl_autowepswitch Enabled And Client Does Not Have Primary Weapon And Weapon Is From Primary Weapon Section Or Client Does Not Have Both Primary+Secondary Weapons Then Client Automatically Take That Weapon.</li>
<li>NoTrDecal = Disables Decals Of Weapon (Black Holes) At TraceAttack.</li>
<li>NoTrSmoke = Disabled Smoke After Decals At TraceAttack.</li>
<li>NoDrop = You Think Weapon Can Not Be Droppped ? Nah, If You Set This Flag Then If Weapon Is From Primary Weapons Section And Client Has Primary Weapon, Then It Wont Be Dropped.</li>
<li>ReloadAfterShot = Not Really Userful, If You Set This One Then After Shoot Weapon Will Automatically Reload, If Client Re-Deploy That Weapon, Flag Wont Work, So Its Good If You Have 1 Clip Weapon, Such As Weapon Drill ~?</li>
<li>HasLaserBeam = Enabled Laser Beam To Weapon.</li>
<li>CustomTrSmoke = Sets Custom TraceAttack Smoke Sprite.</li>
<li>CustomShootDelay = This Is Custom Shoot Delay :D | If You Set This Then Weapon Attack Speed Will Be Used Like This: <font color="seagreen">YourWeaponAttackSpeed </font>Otherwise <font color="seagreen">CurrentWeaponDefaultAttackSpeed * YourWeaponAttackSpeed</font>.</li>
<li>CustomShootDamage = Hah, This Will Set Custom Damage And Will Damage At Any Place With Same One. This Looks Like This: <font color="seagreen">YourWeaponAttackDamage </font>Otherwise <font color="seagreen">CurrentWeaponDefaultDamage (?) * YourWeaponAttackDamage</font>.</li>
<li>IsDual = Flag Will Let Plugin Know That The Weapon Is Dual Or Not(?). This Will Help <b>LaserBeam Attack Only</b>!</li>
</ol><br /><b>Flags Over :(</b><br /><b>Wait Next Update :D</b><br /><br /><b>Now You May Say: Why I Need Those Flags If I Dont Know How To Set Their Values (Not To All Them) ?</b><br />Wait Man, I Am Here! :grrr:<br /><br /><font color="seagreen">So You Want To Set Flag Values Right ? Not So Fast, First We Must Make Weapon Default Things Such As Models, Animations, etc...</font><br /><br />Create Weapon INI Settings File If You Dont Done That.<br /><b><font color="seagreen">configs/cswpn/weapons/weapon_*.ini</font></b><br /><br />Okay Now Open It.<br /><br />Now I'll Write Example Here For You:<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">[NAME]Dual Kriss<br />[ID]12<br />[CLIP]30<br />[AMMO]120<br />[ANIM_DRAW]9<br />[ANIM_DRAW_FRAMES]41<br />[ANIM_DRAW_FPS]30<br />[ANIM_SHOOT1]2<br />[ANIM_SHOOT2]3<br />[ANIM_SHOOT3]5<br />[ANIM_SHOOT4]6<br />[ANIM_SHOOT_FRAMES]21<br />[ANIM_SHOOT_FPS]30<br />[ANIM_RELOAD]8<br />[ANIM_RELOAD_FRAMES]101<br />[ANIM_RELOAD_FPS]30<br />[DELAY]0.08<br />[DAMAGE]1.0<br />[RECOIL]1.5<br />[ATTACK2_TYPE]4<br />[FLAG][CustomTrSmoke]sprites/wall_puff1.spr<br />[FLAG][LaserBeam_ColorR]250<br />[FLAG][LaserBeam_ColorR]250<br />[FLAG][LaserBeam_ColorR]250<br />[FLAG][LaserBeam_RandomMin]10<br />[FLAG][LaserBeam_RandomMax]12</code><hr />
</div>Now What We Set Here?<br />Il Explain All Of Them!<br /><br />I Dont Use '[' And ']' Becaus Of HTML :D<br /><br />NAME = Used In Menu Of Weapons.<br />ID = WeaponID (CSWPN)<br />CLIP = Clip Of Weapon<br />AMMO = Ammo Of Weapon<br />ANIM_DRAW = Draw (Deploy) Animation ID<br />ANIM_DRAW_FRAMES = You Think What Im Thinking ? Yea WTF Is That?<br />First Download Half Life Model Viewer (JHLMV 1.36 Supported)<br /><br />Run V Model In HLMV.<br />Now See Draw (Deploy) Animation.<br />We Set Animation ID<br />Now Look At Frames -&gt;<br />And Look At FPS -&gt;<br /><br /><b>This Ones Will Set Exact Weapon Settings!</b><br /><br />Frames / FPS = Time Of Animation<br /><br />Time Of Animation = Next Attack Time<br />Time Of Animation = Next Idle Animation Time<br /><br />ANIM_SHOOT1 = Attack Animation 1<br />ANIM_SHOOT2 = Attack Animation 2<br />ANIM_SHOOT3 = Attack Animation 3<br />ANIM_SHOOT4 = Attack Animation 4<br /><br />ANIM_SHOOT_FRAMES/ANIM_SHOOT_FPS = <b>Its Better If You Write Biggest Time Of Anim From These 4X Attack Animations.</b><br /><br />ANIM_RELOAD = RELOAD Animation<br /><br />ANIM_RELOAD_FRAMES/ANIM_RELOAD_FPS = This Will Set Exact Reload Time! ( Flags Will Be Added For Custom Reload Time )<br /><br />DELAY = Delay Before Next Shoot<br />DAMAGE = Damage Multiplier ( If Flag CustomShootDamage Is Active Then It Is Not Multiplier )<br />RECOIL = Recoil Multiplier ( CurWeaponRecoil * WeaponDefaultRecoil ~? )<br />ATTACK2_TYPE = Type Of Attack 2 (0 = Disabled | 1 = AUG Zoom | 2 = SNIPER 1ST | 3 = SNIPER 2ND | 4 = SNIPER BOTH ) ( More In Next Update )<br />COST = This Is Not Written There But You Can Set (In $)<br />[FLAG] <b>That Is Flag Value Written In configs/cswpn/weapon*.ini , <font color="Red">But Requires That Flag!</font></b><br /><br />Flag Values And What They Mean?<ul><li>CustomTrSmoke = Sprite Model Name ( [FLAG][CustomTrSmoke] )</li>
<li>LaserBeam_ColorR = Laser Beam Color Red Ammount ( [FLAG][LaserBeam_ColorR] )</li>
<li>LaserBeam_ColorG = Laser Beam Color Green Ammount ( [FLAG][LaserBeam_ColorG] )</li>
<li>LaserBeam_ColorB = Laser Beam Color Blue Ammount ( [FLAG][LaserBeam_ColorB] )</li>
<li>LaserBeam_ColorRandomMin = Laser Beam Min Beams Ammount ( [FLAG][LaserBeam_ColorRandomMin] )</li>
<li>LaserBeam_ColorRandomMax = Laser Beam Max Beams Ammount ( [FLAG][LaserBeam_ColorRandomMax] )</li>
</ul><br /><b><font color="Red">Required</font></b> - Module: <b>Fun</b><br /><b><font color="Red">Required</font></b> - Module: <b>CSTRIKE :D</b><br /><b><font color="Red">Required</font></b> - Module: <b>Engine</b><br /><b><font color="Red">Required</font></b> - Module: <b>Fakemeta</b><br /><b><font color="Red">Required</font></b> - <b>AMX MOD X <font color="Red">1.8.3</font></b><br /><br /><b><font color="Red">TODO</font></b> - Add Support To ZP, BB And Other Mods.<br /><b><font color="Red">TODO</font></b> - Fix Various Bugs.<br /><br /></font></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/zip.gif"alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...9712">WeaponMod2.0R.zip</a> (32.9 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