Results 1 to 9 of 9

Thread: weapons from .d3dbsp

  1. #1
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    391
    Thanks
    74
    Thanked 90 Times in 76 Posts

    weapons from .d3dbsp

    how get array of weapons from map?

    example?:
    PHP Code:
    weapons getentarray("weapon""classname"); 
    [problem]
    precacheItem limit: 64
    my scripts precacheitems: 64
    but someone maps have weapons from mapper => items more 64 => bugggggggs
    i want delete all weapons, which not precached from my scripts
    [/problem]
    write shit code's

  2. #2
    Private First Class voron00's Avatar
    Join Date
    Nov 2014
    Posts
    233
    Thanks
    62
    Thanked 198 Times in 106 Posts
    Maybe hex edit the bsp and remove those weapons.
    Last edited by voron00; 7th January 2019 at 12:04.
    sudo apt-get rekt

  3. #3
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    391
    Thanks
    74
    Thanked 90 Times in 76 Posts
    I need to make a decision that will work on all maps
    + I need to remove not all weapons, but only those that I did not register in the scripts
    if the weapon is on the map and is in my scripts - it remains
    write shit code's

  4. #4
    Private
    Join Date
    Jan 2019
    Posts
    15
    Thanks
    4
    Thanked 2 Times in 2 Posts
    It depends what you understand by saying all maps
    I have about 210 maps on 400 Mb with 29 random weapons and 24 fast options and with 15 weapons you can buy for money and 20 weapons blocked or changed for another model and blocked.
    The best way is to block weapons you don't need or change for another model to get a new aspect.
    If you want to see it let me know.

  5. #5
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    1,958
    Thanks
    1,878
    Thanked 1,056 Times in 733 Posts
    Track down the function which actually parses the entity text in d3dbsp and just filter the items/weapons via libcod (maybe add gsc parse entity callback for the gsc-only developers)
    timescale 0.01

  6. #6
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    391
    Thanks
    74
    Thanked 90 Times in 76 Posts
    Quote Originally Posted by stoiczkow View Post
    It depends what you understand by saying all maps
    I have about 210 maps on 400 Mb with 29 random weapons and 24 fast options and with 15 weapons you can buy for money and 20 weapons blocked or changed for another model and blocked.
    The best way is to block weapons you don't need or change for another model to get a new aspect.
    If you want to see it let me know.
    Interesting, tell here
    write shit code's

  7. #7
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    391
    Thanks
    74
    Thanked 90 Times in 76 Posts
    Quote Originally Posted by kung foo man View Post
    Track down the function which actually parses the entity text in d3dbsp and just filter the items/weapons via libcod (maybe add gsc parse entity callback for the gsc-only developers)
    yes, callback for "spawn" items on map - good

    main problem: weapons and map lists: constantly changing and very problematic to keep track => therefore, the file .d3dbsp editing option is not suitable
    write shit code's

  8. #8
    Private
    Join Date
    Jan 2019
    Posts
    15
    Thanks
    4
    Thanked 2 Times in 2 Posts
    Quote Originally Posted by maxdamage99 View Post
    Interesting, tell here
    Come and see here; connect 137.74.7.15:25076.

  9. #9
    Sergeant maxdamage99's Avatar
    Join Date
    Aug 2014
    Location
    Russia
    Posts
    391
    Thanks
    74
    Thanked 90 Times in 76 Posts
    Quote Originally Posted by stoiczkow View Post
    Come and see here; connect 137.74.7.15:25076.
    Last edited by maxdamage99; 9th January 2019 at 05:22.
    write shit code's

Posting Permissions

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