FOT entity files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Guest
I was trying to follow the Entity Modding tutorial on changing primary weapons when i noticed there wasn't any description on what the vars after "Hand1" control. I succeded changing the gun and then compared dem01bos_SMG.ent (Strom) with dem01bos_Sniper.ent (Bullseye) and noticed that the 3 vars after "Hand1" were different but the guns were the same. Why is this, and what do those variables contol?
 
Read again in-depth description of <var>s, they are same for every property.





[img align=center" src="//redrival.com/aptyp/ftclogo-t.gif]


[font color=#FF0000]
No trash-talking, lower-case prone, ignorant, self-centered, 'in-your-face', 'i-am-always-right-so-you-can-suck-my-dick', 'shit-for-brains' idiots allowed.
 
Ok, thx i understand now. I was readeading a previous post were you were explaining on how to give a char the fnfalRifle and you said that you copied the entire code for the fnfal and put it into Hand1. Then set var3 and var2 to the size of fnfalRifle.ent and the size +4 (respectively). I tried this and it worked for me but you also said that it can be done just by changing the EntPath. When doing this do u need the change var2 and var3 to the size of the item or do they need to be the new size (if changed) of Hand1?
 
If the new .ent path is longer/shorter than the original, then you have to change vars for 'EntPath' property AND vars for 'Hand1/2', because the overall length of the 'value code' for 'Hand1/2' is changing. I know, it can be confusing sometimes, but you will get the hang of it surprisingly quickly.





[img align=center" src="//redrival.com/aptyp/ftclogo-t.gif]


[font color=#FF0000]
No trash-talking, lower-case prone, ignorant, self-centered, 'in-your-face', 'i-am-always-right-so-you-can-suck-my-dick', 'shit-for-brains' idiots allowed.
 
Not even if the EntPath was changed and it became larger (or smaller)?
 
Is it ok if i just use the values for EntPath from the item's EntPath in it's own file?
 
Well, if the code entered as a value in 'Hand1' is equal to .ent file in path entered, yes. But I doubt it will happen often, so just add/substract number of characters you added or substracted to the EntPath to the length of 'Hand1' property. It's all in the tutorial.





[img align=center" src="//redrival.com/aptyp/ftclogo-t.gif]


[font color=#FF0000]
No trash-talking, lower-case prone, ignorant, self-centered, 'in-your-face', 'i-am-always-right-so-you-can-suck-my-dick', 'shit-for-brains' idiots allowed.
 
>If the new .ent path is
>longer/shorter than the original, then
>you have to change vars
>for 'EntPath' property AND vars
>for 'Hand1/2', because the overall
>length of the 'value code'
>for 'Hand1/2' is changing.

How come? The EntPath record is not included into the Hand1/2 block!


~Dr. W95
the Super-Puper Admin
http://www.thevats.f2s.com
 
Hand1/2 contains the code for the item in that hand. The item's code does contain an EntPath record which, acording to the tutorial, contains the default path for the item. If the item file is located at that path, it will be used insted of the internal code inside Hand1/2. This is strange since EntPath is already part of the internal code.
 
Back
Top