WiltOS Technologies - Katana

  • Initiateur de la discussion AmineYZ
  • Date de début
  • Initiateur de la discussion
AmineYZ

AmineYZ

Têtard
Messages
3
Score réaction
0
Points
10
Bonjour a vous,

J'ai besoin de votre aide concernant WiltOS, j'ai décidée de crée mon katana en suivants le tutoriel que WiltOS donne a ces joueurs :
Mais le code que j'ai fais le voiçi j'ai juste changer le models du katana



--[[-------------------------------------------------------------------
Modified Lightsaber:
Runs on the intuitive wOS Lightsaber Base
Powered by
_ _ _ _ __
__ () | |_ / _ \/ ___|
\ \ /\ / / | | | | | \_ \
\ V V /| | | || || |___) |
\/\/ |||\|\_/|____/

_____ _ _ _
|_ |_ _| | _ __ _ | | _ __ () _ _
| |/ _ \/ __| '_ \| '_ \ / _ \| |/ _ \ / ` | |/ _ \/ _|
| | / (| | | | | | | () | | () | (| | | _/\__ \
||\__|\|| ||| ||\/||\__/ \, ||\||___/
|___/
----------------------------- Copyright 2017, David "King David" Wiltos ]]--[[

Lua Developer: King David
Contact: Steam Community :: Group :: wiltOS Technologies

-- Copyright 2017, David "King David" Wiltos ]]--
AddCSLuaFile()

SWEP.Author = "Robotboy655 + King David"
SWEP.Category = "Demon Slayer"
SWEP.Contact = ""
SWEP.RenderGroup = RENDERGROUP_BOTH
SWEP.Slot = 0
SWEP.SlotPos = 4
SWEP.Spawnable = true
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = false
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
SWEP.DrawWeaponInfoBox = false
SWEP.ViewModel = "models/weapons/v_crowbar.mdl"
SWEP.WorldModel = "models/izuki/katana10.mdl"
SWEP.ViewModelFOV = 55
SWEP.Primary.ClipSize = -1
SWEP.Primary.DefaultClip = -1
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = "none"
SWEP.Secondary.ClipSize = -1
SWEP.Secondary.DefaultClip = -1
SWEP.Secondary.Automatic = true
SWEP.Secondary.Ammo = "none"
SWEP.NoBlade = true
------------------------------------------------------------THINGS YOU WILL EDIT ARE BELOW HERE-------------------------------------------------------------------------
SWEP.PrintName = "Katana en acier" --Name of the lightsaber
SWEP.Class = "weapon_katana_acier" --The file name of this swep
SWEP.DualWielded = false --Should this be a dual wielded saber?
SWEP.CanMoveWhileAttacking = true -- Can the user move while attacking
SWEP.SaberDamage = 50 --How much damage the saber does when it's being swung
SWEP.SaberBurnDamage = 0 -- How much damage the saber does when it's colliding with someone ( coming in contact with laser )
SWEP.MaxForce = 500 --The maximum amount of force in the meter
SWEP.RegenSpeed = 1 --The MULTIPLIER for the regen speed. Half speed = 0.5, Double speed = 2, etc.
SWEP.CanKnockback = false --Should this saber be able to push people back when they get hit?
SWEP.ForcePowerList = { "Force Leap" }
--Force powers you want the saber to have ( REMEMBER TO PUT A COMMA AFTER EACH ONE, AND COPY THE TITLE EXACTLY AS IT'S LISTED )
--For a list of options, just look at the keys in autorun/client/wos_forcematerialbuilding.lua
--Use these options to overwrite the player's commands
SWEP.UseHilt = "models/izuki/katana10.mdl" -- Model path of the hilt
SWEP.UseLength = "42" -- Length of the saber
SWEP.UseWidth = "2" -- Width of the saber
SWEP.UseColor = Color(255,255,255,0) -- RGB Color of saber. Red = Color( 255, 0, 0 ) Blue = Color( 0, 0, 255 ), etc.
SWEP.UseDarkInner = true -- Does it have a dark inner? 1 = true
SWEP.UseLoopSound = ""-- The loop sound path
SWEP.UseSwingSound = "" -- The swing sound path
SWEP.UseOnSound = "" -- The on sound path
SWEP.UseOffSound = "" -- The off sound path
--These are the ones for the second saber for dual wielding. If you are using a single saber, this doesn't do shit
SWEP.UseSecHilt = false
SWEP.UseSecLength = false
SWEP.UseSecWidth = false
SWEP.UseSecColor = false
SWEP.UseSecDarkInner = false

SWEP.UseSkills = true
-----------------------------------------------------------END OF EDIT----------------------------------------------------------------

if !SWEP.DualWielded then
SWEP.Base = "wos_adv_single_lightsaber_base"
else
SWEP.Base = "wos_adv_dual_lightsaber_base"
end
local WepSelectIcon = Material( "glaives/glaive_acier.png" )
local Size = 96
function SWEP:DrawWeaponSelection( x, y, w, h, a )
surface.SetDrawColor( 255, 255, 255, a )
surface.SetMaterial( WepSelectIcon )
render.PushFilterMag( TEXFILTER.ANISOTROPIC )
render.PushFilterMin( TEXFILTER.ANISOTROPIC )
surface.DrawTexturedRect( x + ( ( w - Size ) / 2 ), y + ( ( h - Size ) / 2.5 ), Size, Size )
render.PopFilterMag()
render.PopFilterMin()
end

if CLIENT then
killicon.Add( SWEP.Class, "lightsaber/lightsaber_killicon", color_white )
end


Problème c'est que en jeux, on vois seulement que le crowbar.
Si une personne ne connais dans le Wos merci de me contacter sois ci ou sur discord : AmineYZ#9904
 
C

chocoinini

Nouveau né
Messages
2
Score réaction
0
Points
15
SWEP.ViewModel = "models/weapons/v_crowbar.mdl"
SWEP.WorldModel = "models/izuki/katana10.mdl"

Je croix que tu a inversé les deux.
 
Discord d'entraide
Rejoignz-nous sur Discord