Jump to content


Photo

Reducing Projectile Size


  • Please log in to reply
3 replies to this topic

#1 CobrasShadows

CobrasShadows
  • Members
  • 42 posts
  • Location:Equestria, near Ponyville
  • Projects:A mod, school, and so many others...
  •  Lord of the Ponies

Posted 28 October 2015 - 05:22 PM

Hey ! Thanks for taking the time to know my problem !

 

So I was coding smaller units for my Mod (you know all the stuff with Scale = 0.2) and it was working perfectly. However, I just forgot about one small detail... My tiny archers are throwing 5 times bigger arrows than they should so I tried to fix it... I visited the particlesystem and fxlist but did not find anything concerning the arrows.

 

So if you know how I could re-scale the arrows, thanks for telling me ! ^^

 

Again, thanks for taking the time to help me !


ocarina_bookmark___song_of_time_by_empir


#2 ThrandyBanned

ThrandyBanned

    Sith Lord Of Mirkwood

  • Banned
  • 321 posts
  • Location:In your bed...
  • Projects:The Battlefront Mod For Warband
  •  Skinner,Modeler,Coder

Posted 28 October 2015 - 06:03 PM

Go to
data\ini\object\goodfaction
And there find
goodfactionsubobjects.ini

In there find this code:
;------------------------------------------------------------------------------
; The default bow projectile
;------------------------------------------------------------------------------
Object GoodFactionArrow
  ; *** ART Parameters ***
  Draw = W3DScriptedModelDraw ModuleTag_Draw
    DefaultModelConditionState     
      Model = NONE
    End
  End

  Draw = W3DStreakDraw ModuleTag_Draw2
    Length        = 15
    Width        = 2

    NumSegments    = 1                ; number of segements in the streak, increase for smoother line
    Color        = R:128 G:64 B:64
    Additive    = No                    ; Yes by default
    Texture        = EXArrowStreak01.tga
    WeatherTexture = SNOWY EXArrowStreak_Snow.tga
  End

The things i bolded are scale-able.

I hope i helped ;)
 



#3 Titan Cronus

Titan Cronus

    Do unto Others...

  • Members
  • 693 posts
  • Location:Ireland
  • Projects:The Battle of the Pelennor Fields Mod.

Posted 28 October 2015 - 09:35 PM

Hey there.

 

What Thrandy Said :) When you're using a bow or ranged weapon, in the weapon code, there is a projectile (what Thrandy just showed you) and then there is a warhead (what delivers the damage). Any weapon you're using what you want to scale down, find the weapon in the weapon.ini and then find the ProjectileTemplateName to find the projectile. If the weapon belongs to an evil weapon, its possible that the projectile might be in the evilfactionsubobjects file located in data/ini/object/evilfaction. Also, I think that some projectiles use actual models like arrows or spears or what not (maybe an object and an FX). I imagine that you could scale these down in the usual way (Scale = 0.2) or a combination of the way mentioned by Thrandy and the usual method.

 

Good Luck. ;)


Edited by Titan Cronus, 28 October 2015 - 09:36 PM.

Battle of the Pelennor Fields

Made by 1 guy, has 13 Factions, 75+ Heroes, 150+ different units and 200+ Special abilities.

 

http://www.moddb.com...pelennor-fields


#4 CobrasShadows

CobrasShadows
  • Members
  • 42 posts
  • Location:Equestria, near Ponyville
  • Projects:A mod, school, and so many others...
  •  Lord of the Ponies

Posted 30 October 2015 - 12:02 PM

Thanks a lot for answering that fast ! ^^ Actually I already knew how wepons worked with the warhead and stuff but still thanks because I couldn't find those damn projectiles x) And I would not have thought they would be in subobjects :p


ocarina_bookmark___song_of_time_by_empir





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users