Weapon Modding

I would explain how its done but its quite hard to explain, it depends on what you wana achive and add see certain things require other flags or elements to work, just get familar with the weapon table and every table refrenced by it


and if you wish to add weapons to this thread, then ill see what we can do about working toghter thats kinda the idea behind this thread every one chips in and depending on what people come up with we can take any good idea forward as a team then and ill try and credit eveyr one who contributed :D

Just post images and desc if you dont feel like posting code to public
 
Would it be possible to have the RC Possessor gun from SRTT in SRIV ?

I have done some retexturing and tweaking for a few guns in SRTT and SRIV.
sr3rcgunretexhc.png
Added some details to the RC gun texture and increased it's range.

sr3smgretexrb.png
Did some texture detailing to the SMG and increased it's firepower.

sr3smgevolutn.png

gang_smg_lg_dpng.png
Here's the texture for the SMG.

Did some tweaking to the Special-SniperRifle in SRIV giving it a faster rate of fire and eliminated recoil force and camera shake for pinpoint accuracy and increased it's ragdoll effect on npcs.:p

Here is the code below from weapons.xtbl;

Code:
  <Name>Special-SniperRifle</Name>
      <Weapon_Class>rifle</Weapon_Class>
      <Trigger_Type>single</Trigger_Type>
      <Magazine_Size>80</Magazine_Size>
      <Range_Max>500</Range_Max>
      <Damage_Max>
        <NPC_Damage>80000</NPC_Damage>
        <Player_Damage>1</Player_Damage>
      </Damage_Max>
      <_Editor>
        <Category>Entries:weapon_radial:special</Category>
      </_Editor>
      <Ragdoll_Force_Shoot>8000</Ragdoll_Force_Shoot>
      <Flags>
        <Flag>can zoom</Flag>
        <Flag>one shot shatter</Flag>
        <Flag>melee can dislodge movers</Flag>
        <Flag>allow offhand grenade</Flag>
        <Flag>do not hide when sprinting</Flag>
        <Flag>bullets can hit multiple humans</Flag>
        <Flag>bullets damage tanks</Flag>
      </Flags>
      <AI_Ideal_Range_Max>30</AI_Ideal_Range_Max>
      <Zoom_Type>non-progressive</Zoom_Type>
      <Minimum_FOV>5</Minimum_FOV>
      <Zoom_Steps>2</Zoom_Steps>
      <Object_Bullet_Hit_Impulse_Magnitude>2000</Object_Bullet_Hit_Impulse_Magnitude>
      <Category>WPNCAT_SPECIAL</Category>
      <PlayerWeaponSpread>
        <SpreadMinMax>
          <SpreadMovementMultipliers>
            <Movement_Multiplier_Walk>0</Movement_Multiplier_Walk>
            <Movement_Multiplier_Crouch>0</Movement_Multiplier_Crouch>
            <Movement_Multiplier_Run>0</Movement_Multiplier_Run>
            <Movement_Multiplier_Vehicle>0</Movement_Multiplier_Vehicle>
            <Movement_Multiplier_Fine_Aim>0</Movement_Multiplier_Fine_Aim>
          </SpreadMovementMultipliers>
          <Player_Spread_Max>0.0</Player_Spread_Max>
          <Player_Spread_Min>0.0</Player_Spread_Min>
          <Movement_Multiplier_Vehicle>0.0</Movement_Multiplier_Vehicle>
        </SpreadMinMax>
        <SpreadDynamics>
          <Player_To_Spread_Max>0</Player_To_Spread_Max>
          <Player_To_Spread_Min>0</Player_To_Spread_Min>
        </SpreadDynamics>
        <Movement_Multiplier_Vehicle>0.0</Movement_Multiplier_Vehicle>
      </PlayerWeaponSpread>
      <NPCWeaponSpread>
        <SpreadMinMax>
          <NPC_Spread_Max>10.0</NPC_Spread_Max>
          <NPC_Spread_Min>4.0</NPC_Spread_Min>
          <SpreadMovementMultipliers>
            <Movement_Multiplier_Crouch>1</Movement_Multiplier_Crouch>
            <Movement_Multiplier_Walk>2</Movement_Multiplier_Walk>
            <Movement_Multiplier_Run>3</Movement_Multiplier_Run>
            <Movement_Multiplier_Vehicle>1</Movement_Multiplier_Vehicle>
          </SpreadMovementMultipliers>
        </SpreadMinMax>
        <SpreadDynamics>
          <NPC_To_Spread_Max>20</NPC_To_Spread_Max>
          <NPC_To_Spread_Min>10</NPC_To_Spread_Min>
        </SpreadDynamics>
      </NPCWeaponSpread>
      <vehicle_damage_scale>50</vehicle_damage_scale>
      <Time_Management>
        <Refire_Delay>1</Refire_Delay>
        <npc_refire_delay>
          <min>3500</min>
          <max>4500</max>
          <npc_refire_type>1. Random Range</npc_refire_type>
        </npc_refire_delay>
      </Time_Management>
      <Ammo>Bullet Sniper</Ammo>
      <Inv_Slot>special</Inv_Slot>
      <Ammo_per_Shot>1</Ammo_per_Shot>
      <Maximum_FOV>36</Maximum_FOV>
      <Alt_Trigger_Type>single</Alt_Trigger_Type>
      <Strafe_Angles>Rifle</Strafe_Angles>
      <NPC_Aim_Drift>Sniper Rifle</NPC_Aim_Drift>
      <Melee_Attack_Info>AK</Melee_Attack_Info>
      <AI_Ideal_Range_Min>6</AI_Ideal_Range_Min>
      <Camera_Info>
        <Zoom_Steps>2</Zoom_Steps>
        <Maximum_FOV>20</Maximum_FOV>
        <Minimum_FOV>5</Minimum_FOV>
        <Zoom_Type>non-progressive</Zoom_Type>
        <Primary_Fire_Camera_Shake>weapon_fire_sniper</Primary_Fire_Camera_Shake>
        <Primary_Fire_Camera_Shake_Intensity>0</Primary_Fire_Camera_Shake_Intensity>
        <Primary_Fine_Aim_Camera_Shake>weapon_fire_sniper</Primary_Fine_Aim_Camera_Shake>
        <Primary_Fire_Fine_Aim_Camera_Shake_Intensity>0</Primary_Fire_Fine_Aim_Camera_Shake_Intensity>
        <Player_Hit_Camera_Shake>bullet_hit</Player_Hit_Camera_Shake>
        <Player_Hit_Camera_Shake_Intensity>0</Player_Hit_Camera_Shake_Intensity>
      </Camera_Info>
      <Ammo_Regeneration>20.0</Ammo_Regeneration>
      <Riot_Shield_Damage_Multiplier>80.0</Riot_Shield_Damage_Multiplier>
      <Diversion_Kill_Multiplier>10.0</Diversion_Kill_Multiplier>
      <Blood_Decal_Scale>1.0</Blood_Decal_Scale>
      <Info_Slot_Index>0</Info_Slot_Index>
      <Dual_Wield_Damage_Multiplier>1.0</Dual_Wield_Damage_Multiplier>
    </Weapon>

Let me know if I can help contribute to this project.;)
genkismily2.png
 
Last edited:
Would it be possible to have the RC Possessor gun from SRTT in SRIV ?

I have done some retexturing and tweaking for a few guns in SRTT and SRIV.
View attachment 5900
Added some details to the RC gun texture and increased it's range.

View attachment 5901
Did some texture detailing to the SMG and increased it's firepower.

View attachment 5902

View attachment 5903
Here's the texture for the SMG.

Did some tweaking to the Special-SniperRifle in SRIV giving it a faster rate of fire and eliminated recoil force and camera shake for pinpoint accuracy and increased it's ragdoll effect on npcs.:p

Here is the code below from weapons.xtbl;

Code:
  <Name>Special-SniperRifle</Name>
      <Weapon_Class>rifle</Weapon_Class>
      <Trigger_Type>single</Trigger_Type>
      <Magazine_Size>80</Magazine_Size>
      <Range_Max>500</Range_Max>
      <Damage_Max>
        <NPC_Damage>80000</NPC_Damage>
        <Player_Damage>1</Player_Damage>
      </Damage_Max>
      <_Editor>
        <Category>Entries:weapon_radial:special</Category>
      </_Editor>
      <Ragdoll_Force_Shoot>8000</Ragdoll_Force_Shoot>
      <Flags>
        <Flag>can zoom</Flag>
        <Flag>one shot shatter</Flag>
        <Flag>melee can dislodge movers</Flag>
        <Flag>allow offhand grenade</Flag>
        <Flag>do not hide when sprinting</Flag>
        <Flag>bullets can hit multiple humans</Flag>
        <Flag>bullets damage tanks</Flag>
      </Flags>
      <AI_Ideal_Range_Max>30</AI_Ideal_Range_Max>
      <Zoom_Type>non-progressive</Zoom_Type>
      <Minimum_FOV>5</Minimum_FOV>
      <Zoom_Steps>2</Zoom_Steps>
      <Object_Bullet_Hit_Impulse_Magnitude>2000</Object_Bullet_Hit_Impulse_Magnitude>
      <Category>WPNCAT_SPECIAL</Category>
      <PlayerWeaponSpread>
        <SpreadMinMax>
          <SpreadMovementMultipliers>
            <Movement_Multiplier_Walk>0</Movement_Multiplier_Walk>
            <Movement_Multiplier_Crouch>0</Movement_Multiplier_Crouch>
            <Movement_Multiplier_Run>0</Movement_Multiplier_Run>
            <Movement_Multiplier_Vehicle>0</Movement_Multiplier_Vehicle>
            <Movement_Multiplier_Fine_Aim>0</Movement_Multiplier_Fine_Aim>
          </SpreadMovementMultipliers>
          <Player_Spread_Max>0.0</Player_Spread_Max>
          <Player_Spread_Min>0.0</Player_Spread_Min>
          <Movement_Multiplier_Vehicle>0.0</Movement_Multiplier_Vehicle>
        </SpreadMinMax>
        <SpreadDynamics>
          <Player_To_Spread_Max>0</Player_To_Spread_Max>
          <Player_To_Spread_Min>0</Player_To_Spread_Min>
        </SpreadDynamics>
        <Movement_Multiplier_Vehicle>0.0</Movement_Multiplier_Vehicle>
      </PlayerWeaponSpread>
      <NPCWeaponSpread>
        <SpreadMinMax>
          <NPC_Spread_Max>10.0</NPC_Spread_Max>
          <NPC_Spread_Min>4.0</NPC_Spread_Min>
          <SpreadMovementMultipliers>
            <Movement_Multiplier_Crouch>1</Movement_Multiplier_Crouch>
            <Movement_Multiplier_Walk>2</Movement_Multiplier_Walk>
            <Movement_Multiplier_Run>3</Movement_Multiplier_Run>
            <Movement_Multiplier_Vehicle>1</Movement_Multiplier_Vehicle>
          </SpreadMovementMultipliers>
        </SpreadMinMax>
        <SpreadDynamics>
          <NPC_To_Spread_Max>20</NPC_To_Spread_Max>
          <NPC_To_Spread_Min>10</NPC_To_Spread_Min>
        </SpreadDynamics>
      </NPCWeaponSpread>
      <vehicle_damage_scale>50</vehicle_damage_scale>
      <Time_Management>
        <Refire_Delay>1</Refire_Delay>
        <npc_refire_delay>
          <min>3500</min>
          <max>4500</max>
          <npc_refire_type>1. Random Range</npc_refire_type>
        </npc_refire_delay>
      </Time_Management>
      <Ammo>Bullet Sniper</Ammo>
      <Inv_Slot>special</Inv_Slot>
      <Ammo_per_Shot>1</Ammo_per_Shot>
      <Maximum_FOV>36</Maximum_FOV>
      <Alt_Trigger_Type>single</Alt_Trigger_Type>
      <Strafe_Angles>Rifle</Strafe_Angles>
      <NPC_Aim_Drift>Sniper Rifle</NPC_Aim_Drift>
      <Melee_Attack_Info>AK</Melee_Attack_Info>
      <AI_Ideal_Range_Min>6</AI_Ideal_Range_Min>
      <Camera_Info>
        <Zoom_Steps>2</Zoom_Steps>
        <Maximum_FOV>20</Maximum_FOV>
        <Minimum_FOV>5</Minimum_FOV>
        <Zoom_Type>non-progressive</Zoom_Type>
        <Primary_Fire_Camera_Shake>weapon_fire_sniper</Primary_Fire_Camera_Shake>
        <Primary_Fire_Camera_Shake_Intensity>0</Primary_Fire_Camera_Shake_Intensity>
        <Primary_Fine_Aim_Camera_Shake>weapon_fire_sniper</Primary_Fine_Aim_Camera_Shake>
        <Primary_Fire_Fine_Aim_Camera_Shake_Intensity>0</Primary_Fire_Fine_Aim_Camera_Shake_Intensity>
        <Player_Hit_Camera_Shake>bullet_hit</Player_Hit_Camera_Shake>
        <Player_Hit_Camera_Shake_Intensity>0</Player_Hit_Camera_Shake_Intensity>
      </Camera_Info>
      <Ammo_Regeneration>20.0</Ammo_Regeneration>
      <Riot_Shield_Damage_Multiplier>80.0</Riot_Shield_Damage_Multiplier>
      <Diversion_Kill_Multiplier>10.0</Diversion_Kill_Multiplier>
      <Blood_Decal_Scale>1.0</Blood_Decal_Scale>
      <Info_Slot_Index>0</Info_Slot_Index>
      <Dual_Wield_Damage_Multiplier>1.0</Dual_Wield_Damage_Multiplier>
    </Weapon>

Let me know if I can help contribute to this project.;)View attachment 5904
Would it be possible to have the RC Possessor gun from SRTT in SRIV ?

I have done some retexturing and tweaking for a few guns in SRTT and SRIV.
View attachment 5900
Added some details to the RC gun texture and increased it's range.

View attachment 5901
Did some texture detailing to the SMG and increased it's firepower.

View attachment 5902

View attachment 5903
Here's the texture for the SMG.

Did some tweaking to the Special-SniperRifle in SRIV giving it a faster rate of fire and eliminated recoil force and camera shake for pinpoint accuracy and increased it's ragdoll effect on npcs.:p

Here is the code below from weapons.xtbl;

Code:
  <Name>Special-SniperRifle</Name>
      <Weapon_Class>rifle</Weapon_Class>
      <Trigger_Type>single</Trigger_Type>
      <Magazine_Size>80</Magazine_Size>
      <Range_Max>500</Range_Max>
      <Damage_Max>
        <NPC_Damage>80000</NPC_Damage>
        <Player_Damage>1</Player_Damage>
      </Damage_Max>
      <_Editor>
        <Category>Entries:weapon_radial:special</Category>
      </_Editor>
      <Ragdoll_Force_Shoot>8000</Ragdoll_Force_Shoot>
      <Flags>
        <Flag>can zoom</Flag>
        <Flag>one shot shatter</Flag>
        <Flag>melee can dislodge movers</Flag>
        <Flag>allow offhand grenade</Flag>
        <Flag>do not hide when sprinting</Flag>
        <Flag>bullets can hit multiple humans</Flag>
        <Flag>bullets damage tanks</Flag>
      </Flags>
      <AI_Ideal_Range_Max>30</AI_Ideal_Range_Max>
      <Zoom_Type>non-progressive</Zoom_Type>
      <Minimum_FOV>5</Minimum_FOV>
      <Zoom_Steps>2</Zoom_Steps>
      <Object_Bullet_Hit_Impulse_Magnitude>2000</Object_Bullet_Hit_Impulse_Magnitude>
      <Category>WPNCAT_SPECIAL</Category>
      <PlayerWeaponSpread>
        <SpreadMinMax>
          <SpreadMovementMultipliers>
            <Movement_Multiplier_Walk>0</Movement_Multiplier_Walk>
            <Movement_Multiplier_Crouch>0</Movement_Multiplier_Crouch>
            <Movement_Multiplier_Run>0</Movement_Multiplier_Run>
            <Movement_Multiplier_Vehicle>0</Movement_Multiplier_Vehicle>
            <Movement_Multiplier_Fine_Aim>0</Movement_Multiplier_Fine_Aim>
          </SpreadMovementMultipliers>
          <Player_Spread_Max>0.0</Player_Spread_Max>
          <Player_Spread_Min>0.0</Player_Spread_Min>
          <Movement_Multiplier_Vehicle>0.0</Movement_Multiplier_Vehicle>
        </SpreadMinMax>
        <SpreadDynamics>
          <Player_To_Spread_Max>0</Player_To_Spread_Max>
          <Player_To_Spread_Min>0</Player_To_Spread_Min>
        </SpreadDynamics>
        <Movement_Multiplier_Vehicle>0.0</Movement_Multiplier_Vehicle>
      </PlayerWeaponSpread>
      <NPCWeaponSpread>
        <SpreadMinMax>
          <NPC_Spread_Max>10.0</NPC_Spread_Max>
          <NPC_Spread_Min>4.0</NPC_Spread_Min>
          <SpreadMovementMultipliers>
            <Movement_Multiplier_Crouch>1</Movement_Multiplier_Crouch>
            <Movement_Multiplier_Walk>2</Movement_Multiplier_Walk>
            <Movement_Multiplier_Run>3</Movement_Multiplier_Run>
            <Movement_Multiplier_Vehicle>1</Movement_Multiplier_Vehicle>
          </SpreadMovementMultipliers>
        </SpreadMinMax>
        <SpreadDynamics>
          <NPC_To_Spread_Max>20</NPC_To_Spread_Max>
          <NPC_To_Spread_Min>10</NPC_To_Spread_Min>
        </SpreadDynamics>
      </NPCWeaponSpread>
      <vehicle_damage_scale>50</vehicle_damage_scale>
      <Time_Management>
        <Refire_Delay>1</Refire_Delay>
        <npc_refire_delay>
          <min>3500</min>
          <max>4500</max>
          <npc_refire_type>1. Random Range</npc_refire_type>
        </npc_refire_delay>
      </Time_Management>
      <Ammo>Bullet Sniper</Ammo>
      <Inv_Slot>special</Inv_Slot>
      <Ammo_per_Shot>1</Ammo_per_Shot>
      <Maximum_FOV>36</Maximum_FOV>
      <Alt_Trigger_Type>single</Alt_Trigger_Type>
      <Strafe_Angles>Rifle</Strafe_Angles>
      <NPC_Aim_Drift>Sniper Rifle</NPC_Aim_Drift>
      <Melee_Attack_Info>AK</Melee_Attack_Info>
      <AI_Ideal_Range_Min>6</AI_Ideal_Range_Min>
      <Camera_Info>
        <Zoom_Steps>2</Zoom_Steps>
        <Maximum_FOV>20</Maximum_FOV>
        <Minimum_FOV>5</Minimum_FOV>
        <Zoom_Type>non-progressive</Zoom_Type>
        <Primary_Fire_Camera_Shake>weapon_fire_sniper</Primary_Fire_Camera_Shake>
        <Primary_Fire_Camera_Shake_Intensity>0</Primary_Fire_Camera_Shake_Intensity>
        <Primary_Fine_Aim_Camera_Shake>weapon_fire_sniper</Primary_Fine_Aim_Camera_Shake>
        <Primary_Fire_Fine_Aim_Camera_Shake_Intensity>0</Primary_Fire_Fine_Aim_Camera_Shake_Intensity>
        <Player_Hit_Camera_Shake>bullet_hit</Player_Hit_Camera_Shake>
        <Player_Hit_Camera_Shake_Intensity>0</Player_Hit_Camera_Shake_Intensity>
      </Camera_Info>
      <Ammo_Regeneration>20.0</Ammo_Regeneration>
      <Riot_Shield_Damage_Multiplier>80.0</Riot_Shield_Damage_Multiplier>
      <Diversion_Kill_Multiplier>10.0</Diversion_Kill_Multiplier>
      <Blood_Decal_Scale>1.0</Blood_Decal_Scale>
      <Info_Slot_Index>0</Info_Slot_Index>
      <Dual_Wield_Damage_Multiplier>1.0</Dual_Wield_Damage_Multiplier>
    </Weapon>

Let me know if I can help contribute to this project.;)View attachment 5904
Nice some good work ther, and atm its not possible to add special case type weapons like the RC possesor, also adding it would have to replace 2 weapons pottentialy as its 2 seprate models, any weapon you ad you have to be able to code up with the flags and in game behavour of SRIV sadly, Im thinking of porting some VFX tho but its dlc content and dlc can be buggy down to them only using dlc atributes and pact theyr packed in diffrent locations from base game content makes it annoying, I like your retextures what image editing program do you use, and your welcome to joint the Wep Project if you want to thers so much that need to be worked out for it :)

Edit: Forgot to say how much of good job you done on that texture map you posted bet it took ages to cut out each part
 
Last edited:
Hello! Would it be possible to make rifle bullets have the "instant gib" effect? Or is it possible to make NPC's body "explode" when they are shot to death?
If it's possible...then how to modify the code? Plz tell me...and thanks a lot!
 
Back
Top