Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

S3VDITOundefined

S3VDITO

@S3VDITO
About
Posts
65
Topics
10
Shares
0
Groups
0
Followers
12
Following
0

Posts

Recent Best Controversial

  • [BUG] Entity fields spam
    S3VDITOundefined S3VDITO

    there is still a problem with reading Fields (it can return 0 / write an error to the console / return the normal value), there is also a problem with set Field (on screen shows the console with the angle)

    I just wanted to write a simple MapEdit =(

    // it's just an attempt to rewrite code with MW2
    def createRamp(top, bottom) {
    	var distance = gsc.distance(top, bottom);
    	var blocks = (int)(distance / 30) + 1;
    	
    	var A = [(top[0] - bottom[0]) / blocks, (top[1] - bottom[1]) / blocks, (top[2] - bottom[2]) / blocks];
    	var temp = gsc.vectorToAngles([top[0] - bottom[0], top[1] - bottom[1], top[2] - bottom[2]]);
    	var BA = [temp[2], temp[1] + 90, temp[0]];
    	
    	for (var b = 0; b <= blocks; ++b) {
    		print(BA);
    		var crate = gsc.spawn("script_model", [bottom[0] + A[0] * b, bottom[1] + A[1] * b, bottom[2] + A[2] * b]);
    		crate.set("angles", BA);
    		//crate.set("angles", BA);
    		crate.setModel("com_plasticcase_trap_friendly");
    	}
    }
    

    image.png

    MW3 Modding Support & Discussion

  • iPrintLn for everyone?
    S3VDITOundefined S3VDITO

    shanz said in iPrintLn for everyone?:

    I've already tried level.println("test"); but I get "Error executing function", so how can I print a message for everyone?

    you can probably use "getentbynum(entRef)"
    I DID NOT CHECK IT AND DO NOT KNOW IF IT WILL WORK.
    (in COD4 getentbynum/loops/isplayer worked fine)

    for(int entRef = 0; entRef < 18; entRef++) //max entRef for player = 17
    {
        if(level.isplayer(level.getentbynum(entRef)))
        {
            level.getentbynum(entRef).println("test");
        }
    }
    
    MW3 Modding Support & Discussion

  • [BUG] Entity fields spam
    S3VDITOundefined S3VDITO

    I probably did not understand the question. Sorry, but this is strange that the server shuts down when multiple get/set to fields.
    then it turns out that this is a bug/error

    MW3 Modding Support & Discussion

  • [BUG] Entity fields spam
    S3VDITOundefined S3VDITO

    xensik said in [BUG] Entity fields spam:

    use_hold

    It's simple, Notify ("use_hold") in GSC scripts is inside the loop, it is not surprising that it will spam... [That not bug, may be]

    OnPlayerDamage it probably handles not only player damage..., but what about using OnNotify to handle damage?

    MW3 Modding Support & Discussion

  • Arrays return GSC
    S3VDITOundefined S3VDITO

    How well are GSC functions implemented here, can they return arrays?
    BulletTrace, GetEntArray and etc....

    MW3 Modding Support & Discussion
  • 1
  • 2
  • 3
  • 4
  • 4 / 4
  • Login

  • Don't have an account? Register

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