cucas
Regular
Somebody said:Consider what you're trying to accomplish and whether it's feasible or not - are you able to predict the weather system? It is possible to intercept when ranged weapons are shot, and you are able to modify the shoot speed so the projectile falls straight down. While you can use add_missile to create your custom projectile, the AI won't know that unless you create duplicate versions of every item for the player and AI - these are some of the obvious ramifications with over-engineering this feature, considering there already is a penalty for crossbow types during rain hardcoded in the engine.cucas said:Is there a way to change projectile speed throught scripting (outside the module_items.py)?
I want to make ranged weapons unable to shoot so far during bad weather conditions, like fog, rain, or snow. The only way I know to reduce range is to reduce the projectile speed...
I'm not much of a programmer, but I already gave that a thought. I already have a weather script going on and it seems to works just fine. Assuming I can use the same weather variables and convert them into penalties it should work out fine as well I guess?
The issue here is that even though I've searched the forums, commands and so on, I couldn't find any operation to do something as "simple" (to me) as slowing projectiles or shorten range, so I thought of this as a last resort. Maybe "somebody" could know a way?
I really wanted a simple working system and duplicating items really isn't gonna cut it out for me, I guess... Besides the duplicating of stuff, I found a lot of related operatons like speed and aim modifiers, but not what I was looking for. There should be something that could enable us to modify item properties, like speed and even flags. Closest I got was attrition (not even item related) and it still lead no where