X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fweapons%2Fprojectile.qh;h=66e1be4707629bffeee90a18f694373958a4a2b1;hb=6e0735e995e35d56e60f8b816285077b7db0b155;hp=2f9d03571c5feb023e90df083ae32844f290d2e0;hpb=35e8f712933b0ebf9b163b7289cf975825b33803;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/weapons/projectile.qh b/qcsrc/client/weapons/projectile.qh index 2f9d03571..66e1be470 100644 --- a/qcsrc/client/weapons/projectile.qh +++ b/qcsrc/client/weapons/projectile.qh @@ -1,62 +1,31 @@ -#ifndef PROJECTILE_H -#define PROJECTILE_H - -#if defined(CSQC) - #include "../../common/util-pre.qh" - #include "../sys-pre.qh" - #include "../../dpdefs/csprogsdefs.qh" - #include "../sys-post.qh" - #include "../defs.qh" - #include "../../dpdefs/keycodes.qh" - #include "../../common/constants.qh" - #include "../../common/stats.qh" - #include "../../warpzonelib/anglestransform.qh" - #include "../../warpzonelib/mathlib.qh" - #include "../../warpzonelib/common.qh" - #include "../../warpzonelib/client.qh" - #include "../../common/playerstats.qh" - #include "../../common/teams.qh" - #include "../../common/util.qh" - #include "../../common/nades.qh" - #include "../../common/buffs.qh" - #include "../../common/test.qh" - #include "../../common/counting.qh" - #include "../../common/weapons/weapons.qh" - #include "../../common/mapinfo.qh" - #include "../../common/command/markup.qh" - #include "../../common/command/rpn.qh" - #include "../../common/command/generic.qh" - #include "../../common/command/shared_defs.qh" - #include "../../common/urllib.qh" - #include "../../common/animdecide.qh" - #include "../command/cl_cmd.qh" - #include "../../common/monsters/monsters.qh" - #include "../autocvars.qh" - #include "../../common/notifications.qh" - #include "../../common/deathtypes.qh" - #include "../damage.qh" - #include "../../csqcmodellib/interpolate.qh" - #include "../teamradar.qh" - #include "../hud.qh" - #include "../scoreboard.qh" - #include "../waypointsprites.qh" - #include "../movetypes.qh" - #include "../prandom.qh" - #include "../bgmscript.qh" - #include "../noise.qh" - #include "../tturrets.qh" - #include "../../server/tturrets/include/turrets_early.qh" - #include "../main.qh" - #include "../vehicles/vehicles.qh" - #include "../../common/csqcmodel_settings.qh" - #include "../../csqcmodellib/common.qh" - #include "../../csqcmodellib/cl_model.qh" - #include "../../csqcmodellib/cl_player.qh" -#elif defined(MENUQC) -#elif defined(SVQC) -#endif - -.int traileffect; -void Projectile_ResetTrail(vector to); -void Projectile_DrawTrail(vector to); -#endif \ No newline at end of file +#pragma once + +entityclass(Projectile); +class(Projectile).int traileffect; + +class(Projectile).vector iorigin1, iorigin2; +class(Projectile).float spawntime; +class(Projectile).vector trail_oldorigin; +class(Projectile).float trail_oldtime; +class(Projectile).float fade_time, fade_rate; + +class(Projectile).float alphamod; +class(Projectile).int count; // set if clientside projectile +class(Projectile).int cnt; // sound index +class(Projectile).float gravity; +class(Projectile).int snd_looping; +class(Projectile).bool silent; + +void SUB_Stop(entity this); + +void Projectile_ResetTrail(entity this, vector to); + +void Projectile_DrawTrail(entity this, vector to); + +void Projectile_Draw(entity this); + +void loopsound(entity e, int ch, string samp, float vol, float attn); + +void Ent_RemoveProjectile(entity this); + +const int FL_PROJECTILE = BIT(15);