Garry's Mod

Garry's Mod

168 ratings
MW2CC | Remastered Call Cards
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Movie, Scenic
File Size
Posted
Updated
3.883 MB
15 Jun, 2024 @ 11:28pm
6 Jun @ 11:58pm
17 Change Notes ( view )

Subscribe to download
MW2CC | Remastered Call Cards

Description
Modern Warfare 2 Call Cards
In Modern Warfare 2 2009, whenever something deemed significant occurs such as calling in a killstreak, getting a multi kill, or securing a flag, a dedicated card would announce to every player what had just happened. It was always a joy to be featured on a card, displaying your title, name, and emblem.

Likewise for killing players, a card would pop up displaying who you killed with their title and emblem. This addon aims to recreate that experience.


Actual MW2 card

Remastered Call Cards
As the title of the addon suggests, this is a complete rewrite of my older MW2 cards addon. I wanted to use that addon but I couldn't bring my self to use it due to the thought of how bad the code is to me. Naturally, my motivation took me to rewrite the addon to be better in every way possible.

Improvements and Features
This addon features many improvements over the old addon.
  • Card Queue System. Previously, when a card is active, like a killcard, and a new one attempts to show, the new card will be discarded and nothing else will show after the active card disappears. This problem is solved with the new Queue system that will show every card dispatched.
  • Lambda Player Support
  • Zeta Player Support
  • Significantly Cleaner Internal Code
  • Improved banner(title)/emblem selection panel
  • Support for custom banners/emblems
  • Animated VTF support for custom banners/emblems
  • Announcement cards for killstreaks and multi kills
  • Kills cards displaying who you killed or who you died by
  • Developer Friendly Code
Options can be found at Utilities > MW2CC Options

Functions
For source code, visit the GitHub.[github.com]
SERVERSIDE | MW2CC:DispatchCallCard( ent, comment, killcard, ply, sndpath ) -- Sends a call card to a specified player or every player -- ent | Entity | The entity that will hold this callcard. Assigns names and picture automatically -- comment | String | The thing that the holder did. For example, "DOUBLE KILL!" -- killcard | Bool or nil | Whether this card should render as a kill card or not -- ply | Player or nil | The player to only send the card to. Set to nil if it should be sent to everyone -- snd | String or "" for no sound or nil | The sound effect to play instead of the default -- snd can be nil for the default sound or a sound path for a custom sound. input "none" if no sound should play -- Previous callcard addon wasn't really dev friendly. This one is. EXAMPLE CODE: if victim:GetClass() == "npc_strider" then MW2CC:DispatchCallCard( attacker, "DESTROYED STRIDER!" ) end You can check if this addon is installed by adding this if statement: if MW2CC then -- Code for dispatching cards end


How to add custom banners/emblems
To add custom emblems, go to and create the directories seen here and place .jpg, .png, and .vtf files in the emblems folder: GarrysMod\sourceengine\materials\mw2cc\custom\emblems

Likewise for banners, create the directories seen here and place .jpg, .png, and .vtf files in the banners folder: GarrysMod\sourceengine\materials\mw2cc\custom\banners

Addon creators can share their banners/emblems by simply using the file paths shown. For example, addonname\materials\mw2cc\custom\emblems

If you require visual guidance, please refer to the dedicated video in the images/videos above


Example showing file path

Originally posted by Gaben:
Thanks, and have fun!
39 Comments
CaliforniaEAS 31 Mar @ 4:41pm 
:chirp: Chirp: is this only for lambda players and zeta players?
mickey 30 Mar @ 4:11pm 
whats the mod in the vid
moron 10 29 Mar @ 12:49pm 
a BO1 Version could be awesome
poffybailey 17 Feb @ 6:17pm 
[MW2CC | Remastered Call Cards] lua/mw2callcards/cl_callcard.lua:78: attempt to index global 'zeta' (a nil value)
1. DispatchCallCard - lua/mw2callcards/cl_callcard.lua:78
2. func - lua/mw2callcards/cl_callcard.lua:333
3. unknown - lua/includes/extensions/net.lua:37
Happens When An NPC Gets Killed By A Zeta Player. Please Fix This.
Signal-tower 13 Jan @ 5:32am 
THAT LAST SCREENSHOT OMG
James Bond 13 Dec, 2024 @ 4:38pm 
WARNING! Carry on reading! Or you will die, even if you only looked at the word warning! Once there was a little girl called Clarissa, she was ten-years-old and she lived in a mental hospital, because she killed her mom and her dad. She got so bad she went to kill all the staff in the hospital so the More- government decided that best idea was to get rid of her so they set up a special room to kill her, as humane as possible but it went wrong the machine they were using went wrong. And she sat there in agony for hours until she died. Now every week on the day of her death she returns to the person that reads this letter, on a monday night at 12:00a.m. She creeps into your room and kills you slowly, by cutting you and watching you bleed to death. Now send this to ten other profiles on this one site, and she will haunt someone else who doesn't. This isn't fake. apparently, if u copy and paste this to ten comments in the next ten minutes u will have the best of your life. TIC TOC
=]" Tails "[= 25 Nov, 2024 @ 6:52pm 
i like it's my Favorite
petorscn 20 Oct, 2024 @ 2:50am 
i want a volver recoil weapon:steamhappy:
Glebaasツ 29 Sep, 2024 @ 3:33am 
"Allow NPCs" Does not work
Darkdeplayer 13 Sep, 2024 @ 11:46am 
not lambda players related but an question modding related