Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29

Thread: [Tut-Request] Jump-Pad

  1. #11
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    When i want to watch the video, it says: "Error loading media: File could not be played" on Chrome, and Firefox is just showing a black screen.
    timescale 0.01

  2. #12
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    mhh, its a beta xf video url: http://beta.xfire.com/videos/5d5d6e
    maybe classic xf:http://classic.xfire.com/video/5d5d6e/

  3. The Following User Says Thank You to serthy For This Useful Post:

    kung foo man (15th January 2013)

  4. #13
    Private
    Join Date
    Mar 2013
    Posts
    12
    Thanks
    2
    Thanked 6 Times in 5 Posts
    multiple trigger(trigger->multiple)
    script->origin


    PHP Code:
    main()
    {

    thread OnPlayerConnect();


    PHP Code:
    OnPlayerConnect()
    {

    jump getEntArray("TRIGGER_NAME","targetname");
                 if(
    isDefined(jump))
                     for(
    kat=0;kat<jump.size;kat++)
                     
    jump[katthread bounceJump();

    PHP Code:
    bounceJump()
    {
        
    target getEnt("ORIGIN_NAME","targetname"getOrigin();
        
        while(
    1)
        {
            
    self waittill("trigger"user);
            
    model spawn("script_model",(0,0,0));
            
    model.origin=user.origin+(randomInt(90),randomInt(10),0);
            
    model.angles=user.angles;
            
    user linkto(model);        
            
    model moveTo(target1);
            
    model waittill("movedone");
            
    user unlink();
            
    model delete();
        }

    Last edited by kat_; 5th March 2013 at 17:59.

  5. #14
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    Hey, you can add [php][/php] around your code to make it nice:

    PHP Code:

    jump 
    getEntArray("TRIGGER_NAME","targetname");
                 if(
    isDefined(jump))
                     for(
    kat=0;kat<jump.size;kat++)
                     
    jump[katthread bounceJump();

    bounceJump()
    {
        
    target getEnt("ORIGIN_NAME","targetname"getOrigin();
        
        while(
    1)
        {
            
    self waittill("trigger"user);
            
    model spawn("script_model",(0,0,0));
            
    model.origin=user.origin+(randomInt(90),randomInt(10),0);
            
    model.angles=user.angles;
            
    user linkto(model);        
            
    model moveTo(target1);
            
    model waittill("movedone");
            
    user unlink();
            
    model delete();
        }

    timescale 0.01

  6. #15
    Private
    Join Date
    May 2013
    Posts
    21
    Thanks
    5
    Thanked 2 Times in 2 Posts
    Anyone able to know why this isn't working on cod4?

    Doesn't give me any errors, just does bounce me in the position.

    I tried putting "self iprintlnbold("test");" to see if it is using the thread and it shows, but bounces don't work.

  7. #16
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    My script got "panzerschreck_mp" as weapon, you should replace it with some CoD4-weapon like "deserteaglegold_mp".


    PHP Code:

    bounce
    pospower )
    {
        
    oldhp self.health;
        
    self.health self.health power;
        
    self finishPlayerDamageselfselfpower0"MOD_PROJECTILE""deserteaglegold_mp"undefinedpos"none");
        
    self.health oldhp;

    No clue if thats a real stock weapon, I just found that.
    timescale 0.01

  8. #17
    Private
    Join Date
    May 2013
    Posts
    21
    Thanks
    5
    Thanked 2 Times in 2 Posts
    PHP Code:
    bouncepospower )
    {
        
    oldhp self.health;
        
    self.health self.health power;
        
    self finishPlayerDamageselfselfpower0"MOD_PISTOL_BULLET""deserteagle_mp"undefinedpos"torso_upper"], );
        
    self.health oldhp;

    Doesn't work either

  9. #18
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    Quote Originally Posted by omnimouz View Post
    PHP Code:
    bouncepospower )
    {
        
    oldhp self.health;
        
    self.health self.health power;
        
    self finishPlayerDamageselfselfpower0"MOD_PISTOL_BULLET""deserteagle_mp"undefinedpos"torso_upper"], );
        
    self.health oldhp;

    Doesn't work either
    1. your sMeasnOfDeath "MOD_PISTOL_BULLET" needs to be one of them: MOD_PROJECTILE MOD_PROJECTILE_SPLASH MOD_GRENADE MOD_GRENADE_SPLASH
    2. syntax error: "torso_upper"]

  10. The Following User Says Thank You to serthy For This Useful Post:

    kung foo man (14th May 2013)

  11. #19
    Private
    Join Date
    May 2013
    Posts
    21
    Thanks
    5
    Thanked 2 Times in 2 Posts
    No syntax error for me using "torso_upper"

    "MOD_PISTOL_BULLET" is fine if you're using deagle I thought, as is "MOD_RIFLE_BULLET" for scopes? I also tried with "MOD_PROJECTILE" using rpg_mp but didn't work.

  12. #20
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    Quote Originally Posted by omnimouz View Post
    No syntax error for me using "torso_upper"

    "MOD_PISTOL_BULLET" is fine if you're using deagle I thought, as is "MOD_RIFLE_BULLET" for scopes? I also tried with "MOD_PROJECTILE" using rpg_mp but didn't work.
    on JUMPPADS u have to use a sMeansOfDeath that will bounce you back! ergo an explosive one (try the splash)!

    and the syntax error was the ']' behind your "torso_upper"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •