equal
deleted
inserted
replaced
100 === <tt>onAmmoStoreInit()</tt> === |
100 === <tt>onAmmoStoreInit()</tt> === |
101 |
101 |
102 <blockquote>This function is called when the game is initialized to request the available ammo and ammo probabilities. Use !SetAmmo here. |
102 <blockquote>This function is called when the game is initialized to request the available ammo and ammo probabilities. Use !SetAmmo here. |
103 </blockquote> |
103 </blockquote> |
104 |
104 |
|
105 === <tt>onNewAmmoStore(team index [or clan], hog index)</tt> === |
|
106 |
|
107 <blockquote>This function is identical to onAmmoStoreInit in function, but is called once per ammo store. This allows different ammo sets for each clan, team or hedgehog depending on the mode.</blockquote> |
|
108 If gfSharedAmmo is set, the parameters passed are the clan index, and -1, and the function will be called once for each clan. |
|
109 If gfPerHogAmmo is set, the parameters passed are the team index and the hog index in that team, and the function will be called once for each hedgehog. |
|
110 If neither is set, the parameters passed are the team index and -1, and the function will be called once for each team. |
|
111 |
|
112 These indexes can be used to look up details of the clan/team/hedgehog prior to gear creation. Routines to do these lookups will be created as needed. |
|
113 If you add this hook, the expectation is that you will call SetAmmo appropriately. Any values from onAmmoStoreInit are ignored. |
|
114 |
105 === <tt>onScreenResize() (0.9.16) </tt> === |
115 === <tt>onScreenResize() (0.9.16) </tt> === |
106 |
116 |
107 <blockquote>This function is called when you resize the screen. Useful place to put a redraw function for any vgtHealthTags you're using. |
117 <blockquote>This function is called when you resize the screen. Useful place to put a redraw function for any vgtHealthTags you're using. |
108 </blockquote> |
118 </blockquote> |
109 |
119 |