XaeroX а нафига портировать? Изучить основные принципы таксказать. Если уж человек считает, что ему есть что добавить к геймплею контры, то уж такие орешки он должен на раз раскусывать.
А выж говорили, шо функ_викля есть в свободном доступе... Я не нашёл... Может конечно не слишком усердно искал, но как не напиши ключевые слова, все равно, как минимум 80% результатов - учебники по маппингу
Я давным давно уже говорил - незамутненных кодеров указатель на функцию вводит в ступор. Хотя они постоянно юзают тчинки и тоучи в халфе и совершенно не обращают на это внимания.
Ок, ок.... ну попробуем... да, не плохо бы посмотреть его в действии в том моде кваки,....
Добавлено 25-11-2009 в 06:35:
Сначала выдавал много ошибок (136) BOOL сделал не нашёл где дефайны эти писать... на клиенте шоли????
Короче сейчас я заменил .c на .cpp, затем написал в обоих файлах #include "util.h"(а предыдущий #include "g_local.h" закоментил) и теперь вот что он мне пишет(приведенный здесь файл не менял):
Цитата:
--------------------Configuration: hl - Win32 Release--------------------
Compiling...
g_vehicle.cpp
C:\HLSDK\MaxLife\dlls\enginecallback.h(22) : error C2146: syntax error : missing ';' before identifier 'g_engfuncs'
C:\HLSDK\MaxLife\dlls\enginecallback.h(22) : fatal error C1004: unexpected end of file found
g_phys.cpp
C:\HLSDK\MaxLife\dlls\enginecallback.h(22) : error C2146: syntax error : missing ';' before identifier 'g_engfuncs'
C:\HLSDK\MaxLife\dlls\enginecallback.h(22) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
--------------------Configuration: hl - Win32 Release--------------------
Compiling...
g_vehicle.cpp
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(29) : error C2039: 'deathtarget' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(31) : error C2039: 'target' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(31) : error C2039: 'deathtarget' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(32) : error C2065: 'G_UseTargets' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(36) : error C2065: 'VectorScale' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(36) : error C2039: 'size' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(37) : error C2065: 'VectorAdd' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(37) : error C2039: 'absmin' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(38) : error C2065: 'VectorCopy' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(38) : error C2039: 's' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(38) : error C2228: left of '.origin' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(40) : error C2039: 'takedamage' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(42) : error C2039: 'dmg' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(43) : error C2065: 'T_RadiusDamage' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(43) : error C2039: 'dmg' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(43) : error C2039: 'dmg' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(43) : error C2065: 'MOD_EXPLOSIVE' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(45) : error C2065: 'VectorSubtract' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(45) : error C2039: 's' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(45) : error C2228: left of '.origin' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(45) : error C2039: 's' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(45) : error C2228: left of '.origin' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(45) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(46) : error C2065: 'VectorNormalize' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(46) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(47) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(47) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(52) : error C2039: 'mass' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(62) : error C2065: 'crandom' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(65) : error C2065: 'ThrowDebris' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(81) : error C2039: 'dmg' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(82) : error C2065: 'BecomeExplosion1' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(84) : error C2065: 'G_FreeEdict' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(91) : error C2039: 'spawnflags' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(91) : error C2065: 'world' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(91) : error C2446: '==' : no conversion from 'int' to 'struct edict_s *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(91) : error C2040: '==' : 'struct edict_s *' differs in levels of indirection from 'int'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(93) : error C2065: 'VectorClear' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(93) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(94) : error C2039: 'avelocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(95) : error C2039: 'moveinfo' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(95) : error C2228: left of '.current_speed' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(96) : error C2065: 'gi' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(96) : error C2228: left of '.linkentity' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(99) : error C2039: 'takedamage' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(101) : error C2039: 'teammaster' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(101) : error C2227: left of '->owner' must point to class/struct/union
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(102) : error C2039: 'teammaster' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(102) : error C2227: left of '->owner' must point to class/struct/union
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(104) : error C2039: 'owner' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(105) : error C2065: 'T_Damage' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(105) : error C2065: 'vec3_origin' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(105) : error C2039: 's' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(105) : error C2228: left of '.origin' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(105) : error C2039: 'teammaster' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(105) : error C2227: left of '->dmg' must point to class/struct/union
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(105) : error C2065: 'MOD_CRUSH' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(109) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(110) : error C2039: 'avelocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(111) : error C2039: 'moveinfo' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(111) : error C2228: left of '.current_speed' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(112) : error C2039: 'moveinfo' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(112) : error C2228: left of '.state' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(113) : error C2228: left of '.linkentity' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(116) : error C2039: 'svflags' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(116) : error C2065: 'SVF_MONSTER' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(116) : error C2039: 'client' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(118) : error C2039: 's' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(118) : error C2228: left of '.origin' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(128) : error C2061: syntax error : identifier 'cplane_t'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(138) : error C2446: '==' : no conversion from 'int' to 'struct edict_s *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(138) : error C2040: '==' : 'struct edict_s *' differs in levels of indirection from 'int'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(138) : error C2039: 'spawnflags' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(140) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(141) : error C2039: 'avelocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(142) : error C2039: 'moveinfo' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(142) : error C2228: left of '.current_speed' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(143) : error C2228: left of '.linkentity' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(145) : error C2039: 'owner' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(146) : error C2039: 'owner' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(147) : error C2039: 'takedamage' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(150) : error C2039: 'client' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(150) : error C2039: 'svflags' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(151) : error C2065: 'VectorLength' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(151) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(153) : error C2039: 's' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(153) : error C2228: left of '.origin' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(153) : error C2039: 's' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(153) : error C2228: left of '.origin' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(156) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(162) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(167) : error C2039: 'mass' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(167) : error C2039: 'mass' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(167) : error C2039: 'mass' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(167) : error C2039: 'mass' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(168) : error C2065: 'VectorMA' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(168) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(169) : error C2039: 's' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(169) : error C2228: left of '.origin' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(169) : error C2065: 'FRAMETIME' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(174) : error C2228: left of '.trace' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_vehicle.cpp(174) : fatal error C1003: error count exceeds 100; stopping compilation
g_phys.cpp
C:\HLSDK\MaxLife\dlls\g_phys.cpp(47) : error C2039: 'movetype' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(50) : error C2039: 'oldvelocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(50) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(50) : error C2039: 'oldvelocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(50) : error C2039: 'groundentity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(52) : error C2039: 'oldvelocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(56) : error C2039: 'groundentity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(58) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(58) : error C2039: 'oldvelocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(63) : error C2039: 'waterlevel' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(65) : error C2039: 'waterlevel' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(67) : error C2039: 'waterlevel' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(75) : error C2039: 's' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(75) : error C2228: left of '.event' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_phys.cpp(75) : error C2065: 'EV_FOOTSTEP' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(81) : error C2065: 'level' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(81) : error C2228: left of '.time' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_phys.cpp(81) : error C2065: 'FALL_TIME' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(85) : error C2039: 'pain_debounce_time' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(85) : error C2228: left of '.time' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_phys.cpp(89) : error C2065: 'VectorSet' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(91) : error C2065: 'deathmatch' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(91) : error C2227: left of '->value' must point to class/struct/union
C:\HLSDK\MaxLife\dlls\g_phys.cpp(91) : error C2065: 'dmflags' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(91) : error C2227: left of '->value' must point to class/struct/union
C:\HLSDK\MaxLife\dlls\g_phys.cpp(91) : error C2065: 'DF_NO_FALLING' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(92) : error C2065: 'T_Damage' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(92) : error C2065: 'world' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(92) : error C2039: 's' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(92) : error C2228: left of '.origin' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_phys.cpp(92) : error C2065: 'vec3_origin' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(92) : error C2065: 'MOD_FALLING' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(111) : error C2039: 'clipmask' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(112) : error C2039: 'clipmask' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(114) : error C2065: 'MASK_SOLID' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(115) : error C2039: 'solid' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(118) : error C2065: 'VectorAdd' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(118) : error C2039: 's' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(118) : error C2228: left of '.origin' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_phys.cpp(118) : error C2039: 'origin_offset' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(119) : error C2065: 'VectorSubtract' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(119) : error C2039: 'mins' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(119) : error C2039: 'origin_offset' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(120) : error C2039: 'maxs' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(120) : error C2039: 'origin_offset' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(121) : error C2065: 'gi' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(121) : error C2228: left of '.trace' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_phys.cpp(124) : error C2228: left of '.trace' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_phys.cpp(124) : error C2039: 's' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(124) : error C2228: left of '.origin' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_phys.cpp(124) : error C2039: 'mins' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(124) : error C2039: 'maxs' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(124) : error C2039: 's' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(124) : error C2228: left of '.origin' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_phys.cpp(130) : error C2039: 'svflags' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(130) : error C2065: 'SVF_DEADMONSTER' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(130) : error C2039: 'client' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(130) : error C2039: 'svflags' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(130) : error C2065: 'SVF_MONSTER' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(155) : error C2065: 'VectorLength' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(155) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(155) : error C2065: 'sv_maxvelocity' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(155) : error C2227: left of '->value' must point to class/struct/union
C:\HLSDK\MaxLife\dlls\g_phys.cpp(157) : error C2065: 'VectorNormalize' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(157) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(158) : error C2065: 'VectorScale' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(158) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(158) : error C2227: left of '->value' must point to class/struct/union
C:\HLSDK\MaxLife\dlls\g_phys.cpp(158) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(173) : error C2039: 'nextthink' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(176) : error C2228: left of '.time' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_phys.cpp(179) : error C2039: 'nextthink' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(180) : error C2039: 'think' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(181) : error C2228: left of '.error' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_phys.cpp(181) : error C2039: 'classname' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(182) : error C2039: 'think' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(201) : error C2039: 'touch' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(201) : error C2039: 'solid' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(202) : error C2039: 'touch' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(202) : error C2039: 'surface' : is not a member of 'trace_t'
..\common\const.h(768) : see declaration of 'trace_t'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(204) : error C2039: 'touch' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(204) : error C2039: 'solid' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(205) : error C2039: 'touch' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(276) : error C2065: 'VectorCopy' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(276) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(277) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(282) : error C2039: 'groundentity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(286) : error C2039: 's' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(286) : error C2228: left of '.origin' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_phys.cpp(286) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(288) : error C2228: left of '.trace' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_phys.cpp(288) : error C2039: 's' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(288) : error C2228: left of '.origin' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_phys.cpp(288) : error C2039: 'mins' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(288) : error C2039: 'maxs' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(292) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(298) : error C2039: 's' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(298) : error C2228: left of '.origin' must have class/struct/union type
C:\HLSDK\MaxLife\dlls\g_phys.cpp(299) : error C2039: 'velocity' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(312) : error C2039: 'movetype' : is not a member of 'edict_s'
..\engine\edict.h(18) : see declaration of 'edict_s'
C:\HLSDK\MaxLife\dlls\g_phys.cpp(312) : error C2065: 'MOVETYPE_CONVEYOR' : undeclared identifier
C:\HLSDK\MaxLife\dlls\g_phys.cpp(312) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.
hl.dll - 204 error(s), 0 warning(s)
Добавлено 25-11-2009 в 06:44:
А счего он взял, что это всё edict_s?????
Добавлено 25-11-2009 в 06:47:
Не, всё таки нужен g_local... Хотя бы просто ознакомится, и вообще, я както не увидел в тех двух файлах класса func_vehicle.... Видимо прийдется писать самому, но я надеюсь он есть в g_local.h
Добавлено 25-11-2009 в 07:19:
Ладно, я тогда попробую написать с нуля - так должно быть проще, .... но g_local бы мне не помешал....
Добавлено 25-11-2009 в 08:48:
Где всё таки дефайны мувтайпов??? Это теперь у меня единственная ошибка....
MadKing в халфе нету "s." там "v." или - pev->
И вообще блин - неужто непонятно что делает VectorCopy и чем его заменить?
ладно бы ты про VectorMA спросил. Ты же элементарных вещей не знаешь и не понимаешь. Какие тебе нахрен исходники контры?
Добавлено 25-11-2009 в 11:45:
дефайны моветайпов в const.h но они тебе не помогут - халфа с ошибкой вылетит. Там думать надо.
не получится. Надо себе представлять внутреннее устройство физики движка, хотя бы на уровне первокваки. Лучше всего под физику машины подходит MOVETYPE_PUSHSTEP (раз уж халфа не позволяет добавить свой MOVETYPE).