Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
no minigun after death
#1
I have this pronlem on my mod so i hope u can help me

my code
PHP Code:
doTerminators()
{
   
self Takeallweapons();
   
self Clearperks();
   
self Giveweapon("crossbow_explosive_mp"0self calcWeaponOptions(15,0,0,0,0));
   
self Givemaxammo("crossbow_explosive_mp");
   
self Giveweapon("minigun_mp");
   
self Givemaxammo("minigun_mp");
   
self SwitchToWeapon("minigun_mp");
   
self thread Jetpack();
   
self thread CreateInfo1();


and for magic bullets i used:
PHP Code:
atPlayerShoot()
{
    
self endon("disconnect");
    for(;;)
    {
        
self waittill"weapon_fired" );
        if(
self getcurrentweapon() != "minigun_mp") continue;
        
location aim();
        
MagicBullet"rpg_mp"self getTagOrigin("tag_eye"), locationself );
    }    
}

aim()
{
    
forward self getTagOrigin("tag_eye");
    
end self vector_multiply(anglestoforward(self getPlayerAngles()),1000000);
    
Crosshair BulletTraceforwardendtrueself )[ "position" ];
    return 
Crosshair;

pls help me
Blush
Reply

#2
(06-05-2011, 18:46)paok-atak Wrote: I have this pronlem on my mod so i hope u can help me

my code
PHP Code:
doTerminators()
{
   
self Takeallweapons();
   
self Clearperks();
   
self Giveweapon("crossbow_explosive_mp"0self calcWeaponOptions(15,0,0,0,0));
   
self Givemaxammo("crossbow_explosive_mp");
   
self Giveweapon("minigun_mp");
   
self Givemaxammo("minigun_mp");
   
self SwitchToWeapon("minigun_mp");
   
self thread Jetpack();
   
self thread CreateInfo1();


and for magic bullets i used:
PHP Code:
atPlayerShoot()
{
    
self endon("disconnect");
    for(;;)
    {
        
self waittill"weapon_fired" );
        if(
self getcurrentweapon() != "minigun_mp") continue;
        
location aim();
        
MagicBullet"rpg_mp"self getTagOrigin("tag_eye"), locationself );
    }    
}

aim()
{
    
forward self getTagOrigin("tag_eye");
    
end self vector_multiply(anglestoforward(self getPlayerAngles()),1000000);
    
Crosshair BulletTraceforwardendtrueself )[ "position" ];
    return 
Crosshair;

pls help me
Blush

What do you want us to do? You say "I have a problem". What is the problem, and what are you intending to do with this script?
Reply

#3
(06-05-2011, 18:51)Madnesslink5 Wrote:
(06-05-2011, 18:46)paok-atak Wrote: I have this pronlem on my mod so i hope u can help me

my code
PHP Code:
doTerminators()
{
   
self Takeallweapons();
   
self Clearperks();
   
self Giveweapon("crossbow_explosive_mp"0self calcWeaponOptions(15,0,0,0,0));
   
self Givemaxammo("crossbow_explosive_mp");
   
self Giveweapon("minigun_mp");
   
self Givemaxammo("minigun_mp");
   
self SwitchToWeapon("minigun_mp");
   
self thread Jetpack();
   
self thread CreateInfo1();


and for magic bullets i used:
PHP Code:
atPlayerShoot()
{
    
self endon("disconnect");
    for(;;)
    {
        
self waittill"weapon_fired" );
        if(
self getcurrentweapon() != "minigun_mp") continue;
        
location aim();
        
MagicBullet"rpg_mp"self getTagOrigin("tag_eye"), locationself );
    }    
}

aim()
{
    
forward self getTagOrigin("tag_eye");
    
end self vector_multiply(anglestoforward(self getPlayerAngles()),1000000);
    
Crosshair BulletTraceforwardendtrueself )[ "position" ];
    return 
Crosshair;

pls help me
Blush

What do you want us to do? You say "I have a problem". What is the problem, and what are you intending to do with this script?
after the player die on his next spawn he doesnt have guns
neither minigun nor crossbow!i want to fix that !!

Reply

#4
Find
PHP Code:
onPlayerSpawned() 
in the .gsc, and add
PHP Code:
self thread doTerminators(); 

So it should look like

PHP Code:
onPlayerSpawned()
{
    
self endon("disconnect");

    for(;;)
    {
        
self waittill("spawned_player");
        
self thread doTerminators(); 

With the rest of approriate code beneath.[/align]
Reply

#5
(06-05-2011, 19:47)Madnesslink5 Wrote: Find
PHP Code:
onPlayerSpawned() 
in the .gsc, and add
PHP Code:
self thread doTerminators(); 

So it should look like

PHP Code:
onPlayerSpawned()
{
    
self endon("disconnect");

    for(;;)
    {
        
self waittill("spawned_player");
        
self thread doTerminators(); 

With the rest of approriate code beneath.[/align]
THIS DOESNT WORK BUT IT GIVES ME ONE MORE FAIL!Now the other team has jetpack too and i dont want it(i want terminators only have jetpack)so thx but it doesnt work
!

Reply

#6
copy and paste the rest of your on spawn coding.
Reply

#7
(06-06-2011, 13:03)koil Wrote: copy and paste the rest of your on spawn coding.
ok i fixed it by myself!thx!!Big Grin

Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  How to delete HUD elements on death? camxxcore 6 5,045 08-21-2013, 08:54
Last Post: Yamato
Brick Preview Minigun (No, it's not a misc_turret !) Dominator56 15 8,596 07-18-2013, 00:44
Last Post: Jake625
  Change death animation Keouf 3 3,996 07-05-2013, 18:39
Last Post: Nekochan
  Help Remove Death Barriers? Help Please! camxxcore 1 2,562 06-28-2013, 09:38
Last Post: Yamato
  [Release] OMA Launcher + Minigun Dominator56 9 5,408 04-23-2013, 18:18
Last Post: Dominator56
  Turoial please, how do you add death machine to your slots? Erik The Born 9 5,175 02-15-2013, 21:38
Last Post: Gladio
Thumbs Up Preview Minigun in Bunker [Z00MBY] Alex 7 4,585 09-18-2012, 06:05
Last Post: [Z00MBY] Alex
  [Release] RPG Minigun Mod OrangePL 4 7,868 05-22-2012, 13:07
Last Post: OrangePL
  [Release] Atomics Minigun Mod v2 Kriege203 9 10,351 10-13-2011, 23:31
Last Post: mmiic
Bug Life after death nofamily 49 23,243 09-26-2011, 19:44
Last Post: zija

Forum Jump:


Users browsing this thread:
2 Guest(s)

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