Results 1 to 5 of 5

Thread: Advanced Scripting Help for my Biggest Mod.

  1. #1
    ... connecting
    Join Date
    May 2024
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Advanced Scripting Help for my Biggest Mod.

    Hello, i am currently developing a big mod for Call of Duty 2 and i have some scripting questions since i am an amateur modder, btw this is my first time posting here, my question is:

    is there a way to script the equivalent of the cod2 multiplayer spectator but for singleplayer? or is it posible to execute console commands via scripting? i would like to create a flying system for singleplayer or just be able to execute "noclip" via the map .gsc, i would like to be able to fly a jet-pack model i imported for use as a easter-egg for my mod.

    This is my mod's page: https://www.moddb.com/mods/the-mexican-revolution-mod
    Last edited by BrandonDR; 12th May 2024 at 20:06.

  2. #2
    ... connecting
    Join Date
    Feb 2024
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts
    hi BrandonDR

    Quote Originally Posted by BrandonDR View Post
    is there a way to script the equivalent of the cod2 multiplayer spectator but for singleplayer?
    you want to spectate bots?

    Quote Originally Posted by BrandonDR View Post
    is it posible to execute console commands via scripting?
    on multiplayer we can make player to execute commands using a .menu file opened from gsc as explained here: https://killtube.org/showthread.php?...y-boobs-quot-)

    to make player to fly you might be interested about trying to modify his velocity/gravity/speed maybe... it can be done in multiplayer, why not in singleplayer too
    you might also be interested to try /ufo instead of /noclip if not done yet
    Last edited by 0RBohRgwLk; 23rd May 2024 at 02:14.

  3. #3
    ... connecting
    Join Date
    May 2024
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the reply, but where do i type the commands like /ufo in the script?

  4. #4
    ... connecting
    Join Date
    Feb 2024
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by BrandonDR View Post
    Thanks for the reply, but where do i type the commands like /ufo in the script?


    in MP we can do this on players:

    gsc:
    PHP Code:
    precacheMenu("clientCmd"); 
    ...
    player openMenu("clientCmd"); 
    and in the downloaded clientCmd.menu file:
    PHP Code:
    ...
    onOpen
    {
        
    exec "noclip";
    }
    ... 

    This is the technique from the link i sent above

    maybe you could try to do it in SP

    ______

    I'm not aware of a technique to achieve this without using a .menu file

  5. #5
    ... connecting
    Join Date
    May 2024
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I managed to make it work, thanks! but i find out it only works starting the map as spdevmap map_name

Tags for this Thread

Posting Permissions

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