How to add custom stuff !

Started by Sebastian, Oct 16, 2014, 09:43 PM

Previous topic - Next topic

PsyChO_KiLLeR

i cant understand what u have type in custom weapon end /exec FindPlayer(0)and next now can you tell here?

Sebastian

This is why I added this:



And the function I used in /exec command was the one that put the weapon ID 100 in my hand.
/exec FindPlayer(0).SetWeapon(100,9999);(now with 9999 ammo)

PsyChO_KiLLeR

problem in gta vc mods this is link u give in weapons mode right?
http://www.gtainside.com/en/download.php?do=detail&cat=93&start=36&id=1821&orderBy=
it same but when i download it it does not include that files that you show
Sorry for my bad english

Sebastian

Yep, it does include the sniper files - sniper.dff and sniper.txd
Do as you see in my video, and it will work.

Also, >here< is the .xml file I have used.

MacTavish

You can use MVL weapons if you cant make your own

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

PsyChO_KiLLeR

i cant understand i use mvl but it not give me option in vcmp
can you give one weapon link then i make next all with my self?

MacTavish


Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

MacTavish

Only use 7zip to compress files i tried Winrar and the inside files was undetectable

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Fjose

[spoiler=sniper.xml]<?xml version="1.0" encoding="ASCII"?>
<weapon>
   <basic>
      <name>Sniper</name>
      <logicalid>28</logicalid>
   </basic>

   <properties>
      <type>instant_hit</type>
      <range>100.000000</range>
      <firerate>180</firerate>
      <reload>1401</reload>
      <clipsize>7</clipsize>
      <damage>125</damage>
      <speed>-1.000000</speed>
      <radius>-1.000000</radius>
      <lifespan>-1.000000</lifespan>
      <spread>-1.000000</spread>
      <offset>
         <x>0.000000</x>
         <y>0.660000</y>
         <z>0.050000</z>
      </offset>
      <animgroup>unarmed</animgroup>
      <animstart>2</animstart>
      <animend>8</animend>
      <animfire>3</animfire>
      <anim2start>0</anim2start>
      <anim2end>10</anim2end>
      <anim2fire>3</anim2fire>
      <animbreak>99</animbreak>
      <modelindex>286</modelindex>
      <model2index>-1</model2index>
      <flags>00000100</flags>
      <weaponslot>8</weaponslot>
   </properties>
</weapon>[/spoiler]

Taking this example.
about animgroup, where I can find the names of each one? specifically the animagroup for the tec-9, and what are the flags?

Sebby, I would like know where you learned all this :), was reading the vc code? (gta3.img model)


Thijn

@Fjose: This was posted on the old unofficial squirrel forum. Hopefully you'll understand the syntax better now ;)



Create a new 7-Zip (7z) archive with a filename in this format:
w<id>_s<slot>_l<weapon>_name.7z

<id> - starting from 100 and increasing with each weapon you add; the ID used by the weapon in-game
<slot> - the weapon slot the weapon uses, with 0 being fist, 1 being melee, etc.
<weapon> - the ID of the weapon your custom weapon behaves like; putting 6 in here will make your weapon behave like a baseball bat

If <weapon> is 81, it will act as a hat, and the player will use fists for melee.

The contents of the file are as follows:

weaponname.xml
Describes the weapon and its settings, like in weapon.dat. logicalid is the same as the <weapon> specified in the filename. The following describes a pike used in the public beta server that acts as a baseball bat. If you are specifying a firearm, you will need to modify this.

<?xml version="1.0" encoding="ASCII"?>
<weapon>
<basic>
<name>Pike</name>
<logicalid>6</logicalid>
</basic>

<properties>
<type>melee</type>
<range>2.000000</range>
<firerate>450</firerate>
<reload>100</reload>
<clipsize>1000</clipsize>
<damage>21</damage>
<speed>-1.000000</speed>
<radius>0.800000</radius>
<lifespan>-1.000000</lifespan>
<spread>-1.000000</spread>
<offset>
<x>0.100000</x>
<y>1.800000</y>
<z>0.300000</z>
</offset>
<animgroup>baseball</animgroup>
<animstart>5</animstart>
<animend>20</animend>
<animfire>16</animfire>
<anim2start>3</anim2start>
<anim2end>17</anim2end>
<anim2fire>11</anim2fire>
<animbreak>99</animbreak>
<modelindex>-1</modelindex>
<model2index>-1</model2index>
<flags>00102000</flags>
<weaponslot>1</weaponslot>
</properties>
</weapon>

weaponname_icon.png (optional)
The icon for the weapon that will be used in-game. If not specified, a blank icon is used.

animgroup.ifp (optional)
The animation group file used for the weapon. If not given, the client will use the default animation group provided by Vice City.

weaponname.dff (optional)
The model for the weapon. If not given, the client will use the same model as the logical weapon ID, i.e. the baseball bat in this example.

weaponname.txd (optional)
The texture for the weapon. If not given, the client will use default textures for the logical weapon ID.

scope.png (optional)
For sniper rifles and RPGs; the texture used for the scope when zoomed in. If not given, the client will use default scopes.

Fjose

#25
thanks
[mergedate]1432928032[/mergedate]
Quote from: Thijn on May 29, 2015, 05:50 AM<weapon> - the ID of the weapon your custom weapon behaves like; putting 6 in here will make your weapon behave like a baseball bat
I was omitting/ignoring that detail xD, for that, I was confusing the things

For e.g the archive is called w100_s3_l24_SIngramCustom.7z, the id is 24 (Silenced Ingram), then I need modify the animgroup in the weaponname.xml to what?
 <animgroup>what I'll put?</animgroup>

MacTavish

Quote from: Fjose on May 29, 2015, 07:39 PMthanks
[mergedate]1432928032[/mergedate]
Quote from: Thijn on May 29, 2015, 05:50 AM<weapon> - the ID of the weapon your custom weapon behaves like; putting 6 in here will make your weapon behave like a baseball bat
I was omitting/ignoring that detail xD, for that, I was confusing the things

For e.g the archive is called w100_s3_l24_SIngramCustom.7z, the id is 24 (Silenced Ingram), then I need modify the animgroup in the weaponname.xml to what?
 <animgroup>what I'll put?</animgroup>

Put Colt45 in animgroup

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P


Sebastian

Quote from: Alecu Madalin on Aug 22, 2019, 07:56 PMall your videos are down or deleted maybe

My whole yt account is down. Tried this year again to regain access but didn't happen..