my 2 cents. Im not that good in lua and didnt really know about the function calls in functions thingy (thats why i altered the way the iterate_items is executed to please my brain)
and my beloved ones:::
"Why do They call it friendly fire? It's stupid fire, and The ones who do it are not your friends!"
--From "Misremembering STALKER: The Conversations" by NatVac
">> I'm not a LUA programmer but I have notions in POO (I don't know how to say it in english, so I mean "object language"
It's OOP (object-oriented programming), crucifist, but it can be poo in English, too. It depends on the programmer."
- Natvac
my 2 cents. Im not that good in lua and didnt really know about the function calls in functions thingy (thats why i altered the way the iterate_items is executed to please my brain) ---END QUOTATION---
We'll you oversimplified it. Using your changes, the npc will simply pick a random gun out of his inventory. Lines 104-118 from my link try to determine the best gun the NPC has available to him in his inventory filtering out the weapons that he actually has ammunition for.
Lines 119-134(the ones you asked about in your link) are a safeguard check. If the first check produced no results, because eg. the npc has only weapons but no ammo for any of them, the function will then return the best of those weapons overlooking ammo reserves.
The page you need in the public telephone booth will always be missing.
my 2 cents. Im not that good in lua and didnt really know about the function calls in functions thingy (thats why i altered the way the iterate_items is executed to please my brain) ---END QUOTATION---
We'll you oversimplified it. Using your changes, the npc will simply pick a random gun out of his inventory. Lines 104-118 from my link try to determine the best gun the NPC has available to him in his inventory filtering out the weapons that he actually has ammunition for.
Lines 119-134(the ones you asked about in your link) are a safeguard check. If the first check produced no results, because eg. the npc has only weapons but no ammo for any of them, the function will then return the best of those weapons overlooking ammo reserves.
my 2 cents. Im not that good in lua and didnt really know about the function calls in functions thingy (thats why i altered the way the iterate_items is executed to please my brain)
We'll you oversimplified it. Using your changes, the npc will simply pick a random gun out of his inventory. ---END QUOTATION---
i know, therefore i have written:
-- shouldnt there a kind of insert in temp table
-- and get best (highest value in weap_table) wpn
-- available for npc through a second iteration ?
---QUOTATION---
Lines 104-118 from my link try to determine the best gun the NPC has available to him in his inventory filtering out the weapons that he actually has ammunition for.
Lines 119-134(the ones you asked about in your link) are a safeguard check. If the first check produced no results, because eg. the npc has only weapons but no ammo for any of them, the function will then return the best of those weapons overlooking ammo reserves. ---END QUOTATION---
and my beloved ones:::
"Why do They call it friendly fire? It's stupid fire, and The ones who do it are not your friends!"
--From "Misremembering STALKER: The Conversations" by NatVac
">> I'm not a LUA programmer but I have notions in POO (I don't know how to say it in english, so I mean "object language"
It's OOP (object-oriented programming), crucifist, but it can be poo in English, too. It depends on the programmer."
- Natvac
Also a note about the companions AI. Somehow i think the companions became a lot dumber than before. they dont shoot enemies when they see them (in normal circumstances, not in blowout) even if i start shooting them they will not fire untill I get hit. Also sometimes there are mixups where a whole squad of the player's faction will shoot a companion (after a big shooting showdown) but he would walk carefree...
I've also been noticing some issues with the companions - their engagement distance seems to be really short. I dunno if it's new, or if I just never noticed before, but a lot of times I'll be having a gunfight with a squad and the companions won't attack unless I either get closer or tell them to attack that point (if the enemy squad is on one of the smarts, and not in transit)
I have no idea where that came from, cause I can't remember changing anything regarding enemy detection between v2.0 and v2.5. You sure you don't have your companions on "Hold Fire"? Also Rm4g3dD0v, how is it possible that you are playing CS and buying CS at the same time?
Remember that crack/illegal copy + TFW = strange crap happen
The page you need in the public telephone booth will always be missing.
---QUOTATION--- Also Rm4g3dD0v, how is it possible that you are playing CS and buying CS at the same time? Remember that crack/illegal copy + TFW = strange crap happen ---END QUOTATION---
it doesnt seem THAT strange like the bandit hostility bug. After all the crack should affect vanilla things, and companions are not in vanilla.
As for using crack, I tried to buy the game twice and it became out of stock in no time. However the game's publisher didnt give a rat's ass to refeed the market, so not my fault.