- if(time < self.HookKillTime)
- {
- s = cvar("cl_gunalign");
- if(s != 1 && s != 2 && s != 4)
- s = 3; // default value
- --s;
- vs = hook_shotorigin[s];
-
- if(self.sv_entnum == player_localentnum - 1)
- a = view_origin + view_forward * vs_x + view_right * -vs_y + view_up * vs_z;
- else
- a = self.HookStart;
- b = self.HookEnd;
-
- t = GetPlayerColorForce(self.sv_entnum);
-
- if(t == COLOR_TEAM1)
- {
- tex = "particles/hook_red";
- rgb = '1 .3 .3';
- }
- else if(t == COLOR_TEAM2)
- {
- tex = "particles/hook_blue";
- rgb = '.3 .3 1';
- }
- else if(t == COLOR_TEAM3)
- {
- tex = "particles/hook_yellow";
- rgb = '1 1 .3';
- }
- else if(t == COLOR_TEAM4)
- {
- tex = "particles/hook_pink";
- rgb = '1 .3 1';
- }
- else
- {
- tex = "particles/hook_green";
- rgb = '.3 1 .3';
- }