تخطى الى المحتوى
أعمال الشغب

أعمال الشغب

  • بيت
  • أخبار
  • خطوط إرشاد
  • أدلة الفيديو
  • ملاحظات التصحيح
  • بلغ عن سوء معاملة
  • تبديل شكل البحث

غادر 4 ميت 2 – How to Make a Custom Crosshair

نشر على 12/25/2022 بواسطة Heeb لا تعليقات على غادر 4 ميت 2 – How to Make a Custom Crosshair
  • عنوان: غادر 4 ميت 2
  • تاريخ الافراج عنه:
  • المطور:
  • الناشر:
معلومات عن اليسار 4 ميت 2 لا يزال غير مكتمل. الرجاء مساعدتنا في ملء تفاصيل اللعبة باستخدام هذا نموذج الاتصال.

This guide will show you how to make your own custom crosshair from scratch into an addon and use it in the game.

مقدمة

For starters make sure you have these three applications:

  • GCFScape
  • VTFEdit
  • NotePad++

Design your crosshair

Use any type of photo editor to make your crosshair. I personally like using GIMP when designing or editing things. So here I’ll explain how I made this crosshair with GIMP.

  • Create a new image with 20×20 px.
  • Make the background transparent by right clicking the image under Layers, click on “Add Alpha Channel”. Mark your image and press the Delete button to make it transparent.
  • Use the pencil and pick pixel as a brush.
  • Draw your crosshair however you like it. I made it into a broad cross that later will look like a dot in the game.

Either you make sure there’s no space between the crosshair and background OR make sure the crosshair is in the middle of the background it has an even width and length, otherwise it will stretch and look weird later.

It doesn’t really matter that much what size the crosshair is, it can be adjusted later on, however it’s best if it’s not too big or too small.

When it’s done click on ملف > Export As and save it as a PNG file.

Make a folder

In order for this to work and make it into a VPK, it has to mimic the directory of the game’s default folders, which for the crosshair needs to be these two folders; materials و scripts.

ال materials folder will contain this:

Folders are materials > vgui > hud

VMF and VTF of the crosshair will be in hud, both need to be named التقاطع. The VTF is the actual crosshair that was designed earlier, and will be explained how it’s converted into a VTF in the next step.
For now in order to make a VMF:

  • Open VTFEdit
  • Click on ملف > جديد
  • Remove whatever is written there, copy the following text and paste it there
UnlitGeneric
{
     $basetexture "vgui\hud\crosshair"
     $translucent 1
     $ignorez 1
     $vertexcolor 1
     $vertexalpha 1
}
  • Click on Save As and save it as a VMT in the materials folder, name it crosshair.

ال scripts folder will contain this:

This is the RES file of hudlayout. It can be retrieved from steamapps > common > غادر 4 ميت 2 > left4dead2.

  • Find pak01_dir and open it with GCFScape
  • Look for hudlayout.res there and drag it into your own scripts folder

The hudlayout.res needs to have a section added for the custom crosshair. Open it with NotePad++, press enter twice at the beginning of “overview” to lower it and make room for this text:

التقاطع
{
"ControlName" "ImagePanel"
"fieldName" "التقاطع"
"xpos" "c-4"
"ypos" "c-4"
"zpos" "-10"
"wide" "8" 
"tall" "8" 
"visible" "1"
"تمكين" "1"
"image" "hud/crosshair"
"scaleImage" "1"
}

It should look like this:

The digits in “xpos”, “ypos”, “wide”, و “tall” can be changed later if you need to change positions or change the size of the crosshair, depending on how you originally designed the crosshair.

Make the VTF

To make the actual crosshair from a PNG-file into a VTF and put it together with the VMF that was made earlier:

  • Open VTFEdit
  • Click on ملف > Import
  • Select your PNG crosshair
  • Click on Save As and save it at materials > vgui > hud
  • Name it التقاطع

These are the settings I use:

Make the VPK

Final step is to convert all of this into a VPK. In order to find the VPK application go to steamapps > common > غادر 4 ميت 2 > bin.

Make a shortcut of it to your desktop. Drag your finished folder and drop it into the VPK application, a VPK file will be generated. Now this VPK can be added to steamapps > common > غادر 4 ميت 2 > left4dead2 > addons.

Adjustments

In order to change the size of the crosshair, go to your original folder before it’s converted into a VPK, go to scripts and open up hudlayout.res with NotePad++.

Under the section “التقاطع” that was added, the size can be changed with the numbers next to “wide” و “tall”. The greater the number is the bigger the crosshair will be and vice versa. This is also where you can change the placement of the crosshair with “xpos” و “ypos”.

Final Results

This is what the crosshair looks in-game:

This is what it looks with a laser:

Thank you for reading this guide, I hope it was helpful.

هذا كل ما نشاركه اليوم من أجل هذا غادر 4 ميت 2 مرشد. تم إنشاء هذا الدليل وكتابته في الأصل بواسطة Heeb. في حالة فشلنا في تحديث هذا الدليل, يمكنك العثور على آخر تحديث باتباع هذا وصلة.

إذا كنت تعتقد أن أيًا من محتويات هذا الموقع ينتهك حقوقك, بما في ذلك حقوق الملكية الفكرية الخاصة بك, يرجى الاتصال بنا على الفور باستخدام نموذج الاتصال الخاص بنا.
خطوط إرشاد العلامات:غادر 4 ميت 2

آخر الملاحة

المنشور السابق: VanillaBeast Retro Knock-Out Basic and Advanced Tips
المشاركة التالية: Grand Theft Auto V – How to Unlock the WM 29 Pistol in GTA Online

ترك الرد إلغاء الرد

لن يتم نشر عنوان بريدك الإلكتروني. تم وضع علامة على الحقول المطلوبة *

  • عنوان: غادر 4 ميت 2
  • تاريخ الافراج عنه:
  • المطور:
  • الناشر:
معلومات عن اليسار 4 ميت 2 لا يزال غير مكتمل. الرجاء مساعدتنا في ملء تفاصيل اللعبة باستخدام هذا نموذج الاتصال.

تنصل

ويستمد كل محتوى استشهد من مصادرها الخاصة. إذا كنت تعتقد أننا استخدمنا المحتوى الخاص بك دون إذن, تأكد من الوصول إلينا وسنأخذ الأمر على محمل الجد.
  • معلومات عنا
  • اتصل بنا
  • سياسة الخصوصية
  • شروط الخدمة

حقوق النشر © 2025 أعمال الشغب.

مشغل بواسطة PressBook News وورد موضوع