Product Chat / Weapon got and pref (need description)

Author
Message
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 3rd Aug 2017 19:31
When I created my mod for FPSC, I made some commands regarding weapons. At that time I knew what "got" and "pref" represented. I now cannot remember. If someone could explain what they refer to I would really appreciate it. This is not a scripting question just a technical question. Thanks all.
When in doubt -- C4 :heh, heh, heh:

-Jamie Hyneman
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 4th Aug 2017 14:27
The GOT field is filled in when you collect the weapon, and the PREF field is used to indicate which weapon slot should be used for a specific weapon, and the PREF slots can be filled in by using the SETUP.INI file with the field "slotX" where X is a number between 1 and 9 and the field value should be the name (with folder) of the gun you want defaulting at that slot. You can also set this pref field using the new LUA command SetWeaponSlot ( weaponindex, got value, pref value ).
PC SPECS: Windows 8.1 Pro 64-bit, Intel Core i7-5930K (PASSMARK:13645), NVIDIA Geforce GTX 980 GPU (PASSMARK:9762) , 32GB RAM

Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 4th Aug 2017 15:12
Thanks Lee.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 4th Aug 2017 21:04 Edited at: 4th Aug 2017 21:05
Yes indeed, thanks Lee for the quick response.
When in doubt -- C4 :heh, heh, heh:

-Jamie Hyneman

Login to post a reply

Server time is: 2024-10-06 10:20:45
Your offset time is: 2024-10-06 10:20:45