Commit Graph

76 Commits (83d63464db912f030b4cbf2936a878d1c86c338d)

Author SHA1 Message Date
Peter Nelson ddd609ce9b
Feature: Randomize direction of rail vehicle on build based on probability callback. (#11489)
This allows NewGRF authors to indicate that the game should randomly flip rail vehicles on build, without needing to use random bits nor duplicate sprites to handle it themselves.

To use this functionality, test for callback 162 (CBID_VEHICLE_BUILD_PROBABILITY)  and var10 = 0 (values other than 0 are reserved for future use), and return a value between 0 and 100 inclusive.

The return value is a percentage chance of reversing the vehicle. A value of 0 will always build a forward facing vehicle, and 100 will always build a reverse facing vehicle.
7 months ago
Jonathan G Rennison 4c1406a4b5 Add: NewGRF road stops 1 year ago
Michael Lutz 05ed9f56fd Feature: [NewGRF] Engine name callback. 1 year ago
S. D. Cloudt 13cc8a0cee Cleanup: Removed SVN headers 5 years ago
frosch c30e137685 (svn r26747) -Feature: [NewGRF] Advanced visual effects with multiple effect sprites independent of spawning model. 10 years ago
frosch 16b310d8ce (svn r24186) -Feature: [NewGRF] Callback to set industry production level on construction. (andythenorth) 12 years ago
rubidium fd559171b4 (svn r23527) -Codechange: unify colo(u)r as far as it goes 13 years ago
rubidium 3d88c74389 (svn r23526) -Codechange: unify cargos vs cargoes 13 years ago
frosch b98c7763de (svn r23146) -Change: [NewGRF v8] Make callback 22 return a probability to use instead of property 18. 13 years ago
frosch f97fa89f1a (svn r23137) -Change: [NewGRF v8] New result format for callback 16. 13 years ago
michi_cc 707b0f48e6 (svn r23114) -Feature: [NewGRF] Ambient sound effect callback. 13 years ago
michi_cc b9841bba81 (svn r23086) -Feature: [NewGRF] Callback to change refit cost depending on old and new cargo type. 13 years ago
michi_cc e094d7db62 (svn r23072) -Feature: [NewGRF] House callback 0x148. 13 years ago
michi_cc d579af11e8 (svn r22659) -Add: [NewGRF] Support for the land slope check callback for stations. 13 years ago
terkhen 4d7a413eda (svn r22591) -Doc: Callback 0x18 (AI purchase selection) is implemented for stations. 13 years ago
rubidium 61ff042460 (svn r21238) -Feature: [NewGRF] Support callback 0x10 for RVs and ships (Hirundo) 14 years ago
rubidium 5a503d505b (svn r21231) -Codechange: Generalize the naming of some settings and variables related to visual effects (Hirundo) 14 years ago
rubidium 7b16c7650b (svn r20670) -Add: support for action F
-Add: a window to select (NewGRF) objects
14 years ago
rubidium 3e67b4fe5f (svn r20667) -Codechange: implement the autoslope callback for objects 14 years ago
rubidium ca7fe458a2 (svn r20664) -Codechange: implement the land slope callback for objects 14 years ago
rubidium 60fe27db50 (svn r20662) -Codechange: implement object animation 14 years ago
rubidium ee8c37c3d9 (svn r20661) -Codechange: implement the "decide colour" callback for objects 14 years ago
rubidium 34da98f2b1 (svn r20647) -Codechange: update some of the object spec information 14 years ago
yexo 00902294b3 (svn r20373) -Feature: [NewGRF] callback 0x156 to use another name for airport layouts than the default "Layout x" 14 years ago
yexo d6fa76b044 (svn r20372) -Feature; [NewGRF] callback 0x155 to display extra information about an airport in the build gui 14 years ago
michi_cc fff8524fb9 (svn r20355) -Fix (r20353): Stale comment. 14 years ago
frosch 4bd32799f1 (svn r20286) -Codechange: Unify end of doxygen comments. 14 years ago
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
rubidium 398418b8fa (svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int 14 years ago
rubidium bc925c0016 (svn r19565) -Fix: some NewGRF callbacks were named incorrectly 14 years ago
yexo 7ca4c31cf5 (svn r19197) -Codechange: introduce animation callbacks for airport tiles 15 years ago
yexo 880fedc192 (svn r19195) -Codechange: actually draw newgrf airport tiles 15 years ago
rubidium 430ce19418 (svn r17558) -Feature [NewGRF]: callbacks for houses to disable drawing foundations and to disable slope changes, like industry tile callbacks 30 and 3C. 15 years ago
rubidium 962598451b (svn r17553) -Update: some documentation about the callbacks 15 years ago
rubidium 23252c99bb (svn r17547) -Feature: [NewGRF] Implement callback 145 (custom station rating) 15 years ago
rubidium 64bafcbe18 (svn r17534) -Codechange: unify the naming of callback masks/flags 15 years ago
rubidium 50e424ba24 (svn r17518) -Document: some of the callback 'masks' 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium c0a8d09ca7 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
peter1138 43121fc2cb (svn r15280) -Cleanup: ancient and vastly out of date comment... 16 years ago
belugas cef4103137 (svn r15172) -Feature: Allow a grf to customize house name via callback 0x14D, during Tile Inquiry process 16 years ago
rubidium 3b798599b6 (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. 16 years ago
rubidium d03994098b (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 16 years ago
frosch 173ac52da5 (svn r12820) -Documentation: Mark callbacks as 8 or 15 bit in 'newgrf_callbacks.h'. 16 years ago
peter1138 210d757499 (svn r12798) -Feature: Add some support for NewGRF station animation. (Thanks to mart3p for samples and fixes) 16 years ago
glx 226e48cf83 (svn r12455) -Codechange: Implement NewGRF callback 37 (cargo sub-type display for industries) 16 years ago
frosch 51bbf0c84f (svn r12352) -Fix: Some callback-results were treated as 8 bit, when they were 15 bit, and vice versa.
Var 0x7E procedure-results are always 15 bit.
  Callbacks 0x2A, 0x2C, 0x36 (sometimes), 0x39 and 0x145 are 15 bit.
  Non-varaction2-calculated callback-results are also affected by the 8bit masking.
17 years ago
belugas e789ee83ab (svn r11851) -Codechange: A few magic numbers removal, plus a little code style 17 years ago
glx 1256cbade3 (svn r11353) -Codechange: add support for newgrf callback 32 17 years ago
glx 287a4a8049 (svn r11341) -Codechange: add missing callback ID enums, add stub for house property 20 and reorder unimplemented action 0 properties 17 years ago