mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 18:30:27 +01:00
394 lines
9.3 KiB
C
394 lines
9.3 KiB
C
/* Copyright (c) 2002-2012 Croteam Ltd.
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of version 2 of the GNU General Public License as published by
|
|
the Free Software Foundation
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */
|
|
|
|
|
|
#if 0 // use this part when manually setting weapon positions
|
|
|
|
_pShell->DeclareSymbol("persistent user FLOAT wpn_fH[30+1];", &wpn_fH);
|
|
_pShell->DeclareSymbol("persistent user FLOAT wpn_fP[30+1];", &wpn_fP);
|
|
_pShell->DeclareSymbol("persistent user FLOAT wpn_fB[30+1];", &wpn_fB);
|
|
_pShell->DeclareSymbol("persistent user FLOAT wpn_fX[30+1];", &wpn_fX);
|
|
_pShell->DeclareSymbol("persistent user FLOAT wpn_fY[30+1];", &wpn_fY);
|
|
_pShell->DeclareSymbol("persistent user FLOAT wpn_fZ[30+1];", &wpn_fZ);
|
|
_pShell->DeclareSymbol("persistent user FLOAT wpn_fFOV[30+1];", &wpn_fFOV);
|
|
_pShell->DeclareSymbol("persistent user FLOAT wpn_fClip[30+1];", &wpn_fClip);
|
|
_pShell->DeclareSymbol("persistent user FLOAT wpn_fFX[30+1];", &wpn_fFX);
|
|
_pShell->DeclareSymbol("persistent user FLOAT wpn_fFY[30+1];", &wpn_fFY);
|
|
//_pShell->DeclareSymbol("persistent user FLOAT wpn_fFZ[30+1];", &wpn_fFZ);
|
|
#else
|
|
/*
|
|
_pShell->DeclareSymbol("user FLOAT wpn_fFX[30+1];", &wpn_fFX);
|
|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0;
|
|
wpn_fFY[6]=(FLOAT)0;
|
|
|
|
// grenade launcher
|
|
wpn_fH[9]=(FLOAT)2;
|
|
wpn_fP[9]=(FLOAT)6;
|
|
wpn_fB[9]=(FLOAT)0;
|
|
wpn_fX[9]=(FLOAT)0.14;
|
|
wpn_fY[9]=(FLOAT)-0.41;
|
|
wpn_fZ[9]=(FLOAT)-0.335001;
|
|
wpn_fFOV[9]=(FLOAT)44.5;
|
|
wpn_fClip[9]=(FLOAT)0.1;
|
|
wpn_fFX[9]=(FLOAT)0;
|
|
wpn_fFY[9]=(FLOAT)0;
|
|
|
|
// iron cannon
|
|
wpn_fH[16]=(FLOAT)2.5;
|
|
wpn_fP[16]=(FLOAT)6;
|
|
wpn_fB[16]=(FLOAT)0;
|
|
wpn_fX[16]=(FLOAT)0.225;
|
|
wpn_fY[16]=(FLOAT)-0.345;
|
|
wpn_fZ[16]=(FLOAT)-0.57;
|
|
wpn_fFOV[16]=(FLOAT)57;
|
|
wpn_fClip[16]=(FLOAT)0.1;
|
|
wpn_fFX[16]=(FLOAT)0.25;
|
|
wpn_fFY[16]=(FLOAT)-0.5;*/
|
|
|
|
#pragma warning(default: 4305)
|
|
|
|
#endif
|
|
|