Comments (2)
Would it take a lot of changes? If you really just want to change the behavior of RoamingRange()
, then all it takes would be to disable the first if
block. One could do that by just removing the block, but we prefer not to change vanilla behavior unconditionally.
That means you would have to add a new game option. If you're interested in implementing this yourself (your best path forward if you need this feature urgently) then start by looking at the following files:
game.schema.yaml (the 'ai' section)
GamePolicy.h
DefaultGamePolicy.cc
For your mod you could then advise players to set this new option in game.json.
The other approach to allow mods to override default game behavior are Lua scripts, which means you would have to add an Obervable
callback for RoamingRange(). This is more flexible but also a bit more complex to implement.
from ja2-stracciatella.
Thanks a lot for additional info. I will try it.
from ja2-stracciatella.
Related Issues (20)
- When you change merc to a tank and leave the map editor it always gives a crash log
- [Feature Request] Multiple I.M.P Character + Face Replacement of Ira for Android Version HOT 1
- Game Crash in sector H14 Alma
- Militia training not progressing after retaking the SAM Site (D2) HOT 1
- When you change capacity of a magazine beyond 128, then if you want to combine them, they are removing themselves. HOT 1
- When you increase armor protection beyond 128%, then in the merc inventory, overall protection has a negative status, like "-125%" HOT 1
- Infinite fight softlock
- If you uncheck the "droppable" option in the map editor or in file PROF.dat, it does not work if you have "drop_everything" option turn on in "game.json". HOT 1
- [modding] New possibilities for modification HOT 1
- Use XDG base directories by default under Linux
- When you use quick transports between sectors while in fights with rebels soldiers from editor map, then the game is crashing with different types of results.
- Question: Save game compatibility with vanilla UB HOT 1
- In map editor, in character inventory, the bottom boxes are almost inactive. HOT 2
- JA2S 0.21 doesn't work in headless configuration (over VNC) HOT 9
- In map editor when you click right mouse button on the civilian, it sometimes crashes HOT 3
- If you give to Carmen three heads at once, he will bring you only 20000$.
- L10: Agreeing to pay $10000 to Dave for the Hummer vehicle does noting
- You can't rehire Larry from M.E.R.C when he is drunk
- In map editor placing rail roads in the undergrounds is not possible HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ja2-stracciatella.