Raised This Month: $ Target: $400
 0% 

[L4D1] Virtual Scopes for M16 Rifle & SMG


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Plugin ID:
8855
Plugin Version:
Plugin Category:
All
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Virtual Scopes for M16 Rifle & SMG
    Old 01-02-2025 , 12:00   [L4D1] Virtual Scopes for M16 Rifle & SMG
    Reply With Quote #1

    I've created a weapon upgrade plugin for the M16 rifle and SMG that uses virtual scopes. It uses the same ZOOM function and the ZOOM key exactly as the Hunting rifle does. I made this plugin mainly for my server, but I thought I would share it here so that other modders can use it. As I'm a novice coder at best, others may find a better way to rewrite this script if needs be.

    It's also possible to add scopes to shotguns and pistols with some simple code changes. So feel free to modify this plugin and adapt it to your needs.

    Credit goes to Dragokas & Figa for some of the code functions.

    EDIT 17th Jan 2025: plugin version 1 replaced with version 2 (SM 1.11). Remember to put the new "l4d_scope_upgrade.txt" into the 'gamedata' folder.

    Sunyata
    Attached Files
    File Type: txt l4d_scope_upgrade.txt (2.6 KB, 22 views)
    File Type: sp Get Plugin or Get Source (M16-Rifle-SMG-Virtual-Scopes-2.sp - 46 views - 8.4 KB)

    Last edited by Sunyata; 01-17-2025 at 09:49.
    Sunyata is offline
    Misagi_Maxim
    Senior Member
    Join Date: Jul 2022
    Old 01-03-2025 , 07:53   Re: [L4D1] Virtual Scopes for M16 Rifle & SMG
    Reply With Quote #2

    Can you upload a screenshot or video?
    Misagi_Maxim is offline
    Sunyata
    Senior Member
    Join Date: Nov 2017
    Location: Wherever I am
    Old 01-03-2025 , 08:07   Re: [L4D1] Virtual Scopes for M16 Rifle & SMG
    Reply With Quote #3

    here you go:

    https://youtu.be/Hwc-NEbRjts?t=543
    Sunyata is offline
    Misagi_Maxim
    Senior Member
    Join Date: Jul 2022
    Old 01-03-2025 , 10:19   Re: [L4D1] Virtual Scopes for M16 Rifle & SMG
    Reply With Quote #4

    Quote:
    Originally Posted by Sunyata View Post
    nice plugin.
    Can you make it for m60?
    Misagi_Maxim is offline
    Sunyata
    Senior Member
    Join Date: Nov 2017
    Location: Wherever I am
    Old 01-03-2025 , 12:40   Re: [L4D1] Virtual Scopes for M16 Rifle & SMG
    Reply With Quote #5

    I create plugins exclusively for L4D1. If I remember correctly, the upgrade numeric bit I used isn’t compatible with L4D2. Unfortunately, that means I can’t help you implement this for the M60 for the l4d2 game. I’m not sure if another coder here might be able to assist, but I’m unable to.
    Sunyata is offline
    Sunyata
    Senior Member
    Join Date: Nov 2017
    Location: Wherever I am
    Old 01-17-2025 , 09:45   Re: [L4D1] Virtual Scopes for M16 Rifle & SMG
    Reply With Quote #6

    PLUGIN UPDATED TO VERSION 2: I encountered an issue with plugin version 1, as it wasn’t a fully standalone one —due to a forgetfulness/oversight on my part—it depended on another plugin and its data file already on my server. I’ve now resolved this issue by updating the code in version 2 to include those dependencies. The necessary gamedata text file is now provided above.
    Sunyata is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 21:40.


    Powered by vBulletin®
    Copyright ©2000 - 2025, vBulletin Solutions, Inc.
    Theme made by Freecode