1
1
/*
2
-
3
2
About: vehicle component system
4
3
Author: ziggi
5
4
Thanks:
6
5
AirKite for component names
7
6
JernejL и Y_Less for components data (fixes.inc)
7
+ */
8
+ /*
9
+ The MIT License (MIT)
10
+
11
+ Copyright (c) 2015
12
+
13
+ Permission is hereby granted, free of charge, to any person obtaining a copy
14
+ of this software and associated documentation files (the "Software"), to deal
15
+ in the Software without restriction, including without limitation the rights
16
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17
+ copies of the Software, and to permit persons to whom the Software is
18
+ furnished to do so, subject to the following conditions:
19
+
20
+ The above copyright notice and this permission notice shall be included in all
21
+ copies or substantial portions of the Software.
8
22
23
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29
+ SOFTWARE.
9
30
*/
10
31
11
32
#if defined _z_vehicle_component_included
@@ -2163,7 +2184,7 @@ static gComponents[212][ZVEH_MAX_COMPONENTS char] = {
2163
2184
Component type functions
2164
2185
*/
2165
2186
2166
- stock GetComponentTypeId (name[])
2187
+ stock GetVehicleComponentTypeId (name[])
2167
2188
{
2168
2189
for (new i = 0 ; i < sizeof (gComponentType ); i++) {
2169
2190
if (strcmp (gComponentType [i], name, true ) == 0 ) {
@@ -2174,7 +2195,7 @@ stock GetComponentTypeId(name[])
2174
2195
return ZVEH_INVALID_COMPONENT_ID;
2175
2196
}
2176
2197
2177
- stock GetComponentTypeName (type, name[], size = sizeof (name))
2198
+ stock GetVehicleComponentTypeName (type, name[], size = sizeof (name))
2178
2199
{
2179
2200
if (type < 0 || type >= sizeof (gComponentType )) {
2180
2201
return 0 ;
@@ -2217,7 +2238,7 @@ stock GetVehicleCompatibleTypes(model, array[ZVEH_MAX_COMPONENT_TYPES], &array_s
2217
2238
Component upgrade functions
2218
2239
*/
2219
2240
2220
- stock GetComponentName (componentid, cname[], size = sizeof (cname))
2241
+ stock GetVehicleComponentName (componentid, cname[], size = sizeof (cname))
2221
2242
{
2222
2243
new index = componentid - 1000 ;
2223
2244
if (index < 0 || index >= sizeof (gComponentName )) {
0 commit comments