Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help What's wrong ?
#1
Can someone help me ?

Code:
Health(Camera)
{
    while(1)
    {
        Camera waittill("damage", eInflictor, attacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime);
        attacker thread maps\mp\gametypes\_damagefeedback::updateDamageFeedback(sHitLoc);
        Camera.health -= iDamage;
        
        if(Camera.health <= 0)
        {
            Camera delete();
            self notify( "camdeath" );
        }
        wait 0.05;
    }
}

CameraView(Camera)
{
    self endon("camdeath");
    while(1)
    {
        self notifyOnPlayerCommand("N", "+actionslot 1");
        self waittill("N");
            self.switchto = self getcurrentweapon();
            laptop = "killstreak_ac130_mp";
            self giveWeapon(laptop,0,false);
            self switchToWeapon(laptop);
            self ThermalVisionFOFOverlayOn();
            self CameraLinkTo(Camera,"tag_origin");
            
        self notifyOnPlayerCommand("N", "+actionslot 1");
        self waittill("N");            
            self takeWeapon(laptop);    
            self switchToWeapon(self.switchto);    
            self ThermalVisionFOFOverlayOff();
            self CameraUnlink();
    }

Camera()
{
    self notifyOnPlayerCommand("N", "+actionslot 1");
    self waittill("N");
        Camera = spawn("script_model", self.origin);
        Camera setModel("c130_zoomrig");
        Camera.angles = self.angles;
        Camera Solid();
        Camera EnableLinkTo();
        Camera.team = self.team;
        Camera.owner = self;
        Camera setCanDamage(true);
        Camera.health = 500;
        Camera.maxhealth = 500;
        Camera thread Health(Camera);
        
    while(1)
    {
        self thread CameraView(Camera);
    }
    
}
Reply

#2
First of all add a wait there, and what is the problem?

Code:
while(1)
    {
        self thread CameraView(Camera);
//wait 0.05;
    }
Reply

#3
(02-16-2013, 12:53)Dominator56 Wrote: Can someone help me ?

Code:
Health(Camera)
{
    while(1)
    {
        Camera waittill("damage", eInflictor, attacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime);
        attacker thread maps\mp\gametypes\_damagefeedback::updateDamageFeedback(sHitLoc);
        Camera.health -= iDamage;
        
        if(Camera.health <= 0)
        {
            Camera delete();
            self notify( "camdeath" );
        }
        wait 0.05;
    }
}

CameraView(Camera)
{
    self endon("camdeath");
    while(1)
    {
        self notifyOnPlayerCommand("N", "+actionslot 1");
        self waittill("N");
            self.switchto = self getcurrentweapon();
            laptop = "killstreak_ac130_mp";
            self giveWeapon(laptop,0,false);
            self switchToWeapon(laptop);
            self ThermalVisionFOFOverlayOn();
            self CameraLinkTo(Camera,"tag_origin");
            
        self notifyOnPlayerCommand("N", "+actionslot 1");
        self waittill("N");            
            self takeWeapon(laptop);    
            self switchToWeapon(self.switchto);    
            self ThermalVisionFOFOverlayOff();
            self CameraUnlink();
    }

Camera()
{
    self notifyOnPlayerCommand("N", "+actionslot 1");
    self waittill("N");
        Camera = spawn("script_model", self.origin);
        Camera setModel("c130_zoomrig");
        Camera.angles = self.angles;
        Camera Solid();
        Camera EnableLinkTo();
        Camera.team = self.team;
        Camera.owner = self;
        Camera setCanDamage(true);
        Camera.health = 500;
        Camera.maxhealth = 500;
        Camera thread Health(Camera);
        
    while(1)
    {
        self thread CameraView(Camera);
    }
    
}

EDIT Finded the error
Reply

#4
(02-16-2013, 12:57)Dominator56 Wrote:
(02-16-2013, 12:53)Dominator56 Wrote: Can someone help me ?

Code:
Health(Camera)
{
    while(1)
    {
        Camera waittill("damage", eInflictor, attacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime);
        attacker thread maps\mp\gametypes\_damagefeedback::updateDamageFeedback(sHitLoc);
        Camera.health -= iDamage;
        
        if(Camera.health <= 0)
        {
            Camera delete();
            self notify( "camdeath" );
        }
        wait 0.05;
    }
}

CameraView(Camera)
{
    self endon("camdeath");
    while(1)
    {
        self notifyOnPlayerCommand("N", "+actionslot 1");
        self waittill("N");
            self.switchto = self getcurrentweapon();
            laptop = "killstreak_ac130_mp";
            self giveWeapon(laptop,0,false);
            self switchToWeapon(laptop);
            self ThermalVisionFOFOverlayOn();
            self CameraLinkTo(Camera,"tag_origin");
            
        self notifyOnPlayerCommand("N", "+actionslot 1");
        self waittill("N");            
            self takeWeapon(laptop);    
            self switchToWeapon(self.switchto);    
            self ThermalVisionFOFOverlayOff();
            self CameraUnlink();
    }

Camera()
{
    self notifyOnPlayerCommand("N", "+actionslot 1");
    self waittill("N");
        Camera = spawn("script_model", self.origin);
        Camera setModel("c130_zoomrig");
        Camera.angles = self.angles;
        Camera Solid();
        Camera EnableLinkTo();
        Camera.team = self.team;
        Camera.owner = self;
        Camera setCanDamage(true);
        Camera.health = 500;
        Camera.maxhealth = 500;
        Camera thread Health(Camera);
        
    while(1)
    {
        self thread CameraView(Camera);
    }
    
}

EDIT Finded the error

Found*
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#5
(02-16-2013, 14:42)SailorMoon Wrote:
(02-16-2013, 12:57)Dominator56 Wrote:
(02-16-2013, 12:53)Dominator56 Wrote: Can someone help me ?

Code:
Health(Camera)
{
    while(1)
    {
        Camera waittill("damage", eInflictor, attacker, victim, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc, psOffsetTime);
        attacker thread maps\mp\gametypes\_damagefeedback::updateDamageFeedback(sHitLoc);
        Camera.health -= iDamage;
        
        if(Camera.health <= 0)
        {
            Camera delete();
            self notify( "camdeath" );
        }
        wait 0.05;
    }
}

CameraView(Camera)
{
    self endon("camdeath");
    while(1)
    {
        self notifyOnPlayerCommand("N", "+actionslot 1");
        self waittill("N");
            self.switchto = self getcurrentweapon();
            laptop = "killstreak_ac130_mp";
            self giveWeapon(laptop,0,false);
            self switchToWeapon(laptop);
            self ThermalVisionFOFOverlayOn();
            self CameraLinkTo(Camera,"tag_origin");
            
        self notifyOnPlayerCommand("N", "+actionslot 1");
        self waittill("N");            
            self takeWeapon(laptop);    
            self switchToWeapon(self.switchto);    
            self ThermalVisionFOFOverlayOff();
            self CameraUnlink();
    }

Camera()
{
    self notifyOnPlayerCommand("N", "+actionslot 1");
    self waittill("N");
        Camera = spawn("script_model", self.origin);
        Camera setModel("c130_zoomrig");
        Camera.angles = self.angles;
        Camera Solid();
        Camera EnableLinkTo();
        Camera.team = self.team;
        Camera.owner = self;
        Camera setCanDamage(true);
        Camera.health = 500;
        Camera.maxhealth = 500;
        Camera thread Health(Camera);
        
    while(1)
    {
        self thread CameraView(Camera);
    }
    
}

EDIT Finded the error

Found*

Lol, thanks for correcting. (I'm french Big Grin)
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help What's Wrong 2 Dominator56 5 3,887 02-19-2013, 21:46
Last Post: Dominator56
  I know I've posted this in a wrong place Ra3shed 2 2,382 02-16-2013, 21:15
Last Post: Arteq
Exclamation No site change after 12 rounds... Bug or wrong settings? ChrisPiHD 1 2,506 09-21-2012, 18:16
Last Post: estebespt
  Something wrong with background Arteq 2 2,472 02-27-2012, 17:01
Last Post: Arteq
Question A very, very annoying thing, what is wrong? I don't see it. xplosiff 1 2,011 12-30-2011, 09:27
Last Post: met94
  lol whats wrong? skata3000 0 1,627 10-02-2011, 22:35
Last Post: skata3000
  Help What's wrong with this? johamort 8 4,509 08-28-2011, 23:14
Last Post: Tomsen1410
  [Release] Oopz wrong forum JariZ 3 2,690 07-08-2011, 09:57
Last Post: surtek
  what's wrong with this coding? cervantes 14 7,211 07-04-2011, 07:21
Last Post: tadej
  What's wrong with this script? kikimo900 4 2,693 07-02-2011, 00:19
Last Post: kikimo900

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.