Skip to content
  • 0 Unread 0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

  1. Home
  2. MW3 Modding Support & Discussion
  3. Make model solid

Make model solid

Scheduled Pinned Locked Moved MW3 Modding Support & Discussion
3 Posts 3 Posters 550 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • fedundefined Offline
    fedundefined Offline
    fed
    wrote on last edited by
    #1

    I'm making an elevator script, but I can't figure out how to make the model solid (so you dont just walk through it), i tried solid() but it doesnt work.

        var elev = gsc.spawn("script_model", start);
        elev.setModel("com_plasticcase_friendly");
        elev.solid();
    
    GerardS0406undefined 1 Reply Last reply
    0
    • S3VDITOundefined Offline
      S3VDITOundefined Offline
      S3VDITO
      wrote on last edited by S3VDITO
      #2

      Alas, because of the Fields bug you cannot do this.

      Moreover, you make models wrong

      // Here is correct code snippet
      // but it dosn't work
      // entity.get("target") => exception
      
      global _airdropCollision;
      
      level.onNotify("prematch_done", fun(args) {
      	var entity = gsc.getEnt("care_package", "targetname");
              // ERROR
              _airdropCollision = gsc.getEnt(entity.get("target"), "targetname");
      	
      	
      	var solidPackage = gsc.spawn("script_model", [0,0,0]);
      	solidPackage.setModel("com_plasticcase_enemy");
      	solidPackage.clonebrushmodeltoscriptmodel(_airdropCollision);
      });
      
      

      On the expanses of GitHub there is an interesting source, the Chai parser for the game is implemented there, if you have a lot of free time you can implement solid models in C ++ (the addresses for calling in-game functions coincide with plutonium)

      fields and their number (this can be used to implement getfield in C++)
      "target" => 5
      "targetname" => 6

      1 Reply Last reply
      1
      • fedundefined fed

        I'm making an elevator script, but I can't figure out how to make the model solid (so you dont just walk through it), i tried solid() but it doesnt work.

            var elev = gsc.spawn("script_model", start);
            elev.setModel("com_plasticcase_friendly");
            elev.solid();
        
        GerardS0406undefined Offline
        GerardS0406undefined Offline
        GerardS0406
        VIP
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Unread 0
        • Recent
        • Tags
        • Popular
        • Users
        • Groups