Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Forge mod -code snipped ?
#1
Aloah Guys,

I am searching for a forge mod (like Azumikkels roll in "Roll the Dice V2) where you can grab objects (entity) and move them around exspecially I am looking for a script to move dropped CPs and spawned CPs around...

After a bit research I found this:
Code:
pickup()
{
   self endon("death");
   for(;;)
   {
      while(self fragbuttonpressed())
      {
         trace = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000,true,self);
         while(self fragbuttonpressed())
         {
            trace["entity"] setorigin(self gettagorigin("j_head")+anglestoforward(self getplayerangles())*200);
            trace["entity"].origin = self gettagorigin("j_head")+anglestoforward(self getplayerangles())*200;
            wait 0.05;
         }
      }
}

Now I just want to ask if I can just put this into my mod and link it to the onPlayerspawned to get it working or do I have to put anything else in ?
Reply

#2
Code:
onPlayerSpawned()
{
    self endon( "disconnect" );
    for( ;; )
    {
        self waittill( "spawned_player" );
        self thread pickup();
    }
}

pickup()
{
    self endon( "disconnect" );
    self endon( "death" );
    for( ;; )
    {
        if( self fragbuttonpressed() )
        {
            trace = bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000,true,self);
            while( self fragbuttonpressed() )
            {
                trace["entity"] setorigin(self gettagorigin("j_head")+anglestoforward(self getplayerangles())*200);
                trace["entity"].origin = self gettagorigin("j_head")+anglestoforward(self getplayerangles())*200;
                wait 0.05;
            }
        }
        wait .05;
    }
}

I'm sure you can use it if you give credits to Azumikkel
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#3
(06-29-2011, 13:12)iAegle Wrote: I'm sure you can use it if you give credits to Azumikkel

I don't have it from Azu... I asked him an he told me its somewhere on the internet so I did research and found it somewhere on "The Tech Game" after watching a video of them.

thanks btw x)
Reply

#4
take this :

PHP Code:
Forge() 
{
        
self endon("death"); 
        for(;;) 
        { 
                while(
self AdsButtonPressed()) 
                { 
                        
trace bullettrace(self gettagorigin("j_head"),self gettagorigin("j_head")+anglestoforward(self getplayerangles())*1000000,true,self); 
                        while(
self AdsButtonPressed()) 
                        { 
                                
trace["entity"setorigin(self gettagorigin("j_head")+anglestoforward(self getplayerangles())*200); 
                                
trace["entity"].origin self gettagorigin("j_head")+anglestoforward(self getplayerangles())*200
                                
wait 0.05
                        } 
                } 
                
wait 0.05
        }
}




getPlayerEyePosition() 

                if(
self getStance() == "prone"
                                
vector self.origin + (0011); 
                else if(
self getStance() == "crouch"
                                
vector self.origin + (0040); 
                else 
                                
vector self.origin + (0060);                  
                return 
vector


this into playerspan: self thread Forge();
have fun no cp (i hate carepackage ) but you can freeze and move players and in zoo are fun
aim and move obj
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Code color crosshairs koren30 3 4,019 10-02-2013, 19:26
Last Post: koren30
  Help need help?how to make plugins code hXnarutoXone 12 8,552 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Need Help with C# code tubwux 2 3,315 08-27-2013, 18:18
Last Post: tubwux
  [Request] Compile this code please dozsa0 4 4,136 08-10-2013, 21:02
Last Post: Nukem
  Compile this code please First_Semyon 12 9,687 08-08-2013, 14:53
Last Post: Bandarigoda123
  Compile please this code First_Semyon 8 5,640 07-28-2013, 01:52
Last Post: First_Semyon
  Code of vector Bloodfocus 1 2,412 06-23-2013, 11:54
Last Post: Yamato
  problem with gsc code CheGuevara 5 5,621 04-20-2013, 15:06
Last Post: Nekochan
Tongue [Request] read if you have a cs:go code:) rawr-saours 5 4,063 04-05-2013, 18:15
Last Post: SuperNovaAO
Smile Help Help me with a code (who knows) NyZzE 2 2,543 04-05-2013, 01:47
Last Post: NyZzE

Forum Jump:


Users browsing this thread:
1 Guest(s)

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