Curent Version: v1.0Description:Show advertisments(adds) via overlays while player is dead or spectating. Made for CSS but may work on other mods as well.Example Screenshot:Edit: Need an overlay example ))...Requirements:morecolorsTranslations :RussianEnglishpm with translation to addCvars:Automade on first load.Code: Code: // This file was auto-generated by SourceMod (v1.4.5-dev)// ConVars for plugin "addsoverlays.smx"// Version of RulesOverlay plugin// -// Default: "1.0"sm_addsoverlays "1.0"// Show adds to vips or root// -// Default: "0"// Minimum: "0.000000"// Maximum: "1.000000"sm_ao_showtovip "0"// How often adds change// -// Default: "10.0"sm_ao_time "10.0"// Trigger to stop showing adds// -// Default: "!stop"sm_ao_triggerstop "!stop"Commands:sm_ao number - Shows mentioned add to root!stop - Stops showing adds (no flag required)To install:Unzip in cstike/Edit adds.txtAdd overlays paths in addons/sourcemod/configs/adds.txt. It should not contain anything other that paths to overlays. 1 line 1 path. All overlays should be placed in materials folderExample of adds.txt: Code: overlays/addsoverlays/add1overlays/addsoverlays/add2overlays/youmaychangethis/add3eventhis/addsoverlays/vipReal paths of files would be: Code: materials/overlays/addsoverlays/add1.vmtmaterials/overlays/addsoverlays/add1.vtfmaterials/overlays/addsoverlays/add2.vmtmaterials/overlays/addsoverlays/add2.vtfmaterials/overlays/youmaychangethis/add3.vmtmaterials/overlays/youmaychangethis/add3.vtfmaterials/eventhis/addsoverlays/vip.vmtmaterials/eventhis/addsoverlays/vip.vtfNote the difference, in adds.txt there's only 1 line per path and no need to mention extensions.Overlays Tutorial:Basically you need a transparent image (1024x1024 sized), then you can add layers with you add.I made a grid in Photoshop and highlighted some spots that can be used for placing your adds onto them. See attachments. Note that probably you should transform your add (change from 100% to 75% of original wide) to make it look good. Then, when you have a 1024x1024 png or tga image, you should use a pngtga to vtf converter. A plugin for Paint.net can be found here http://nemesis.thewa...index.php?c=225 , it works ). When you got vtf, you need vmt.I used this example, you need to change only path to file:example.vmt: Code: "UnlitGeneric"{ // Original shader: BaseTimesVertexColorAlphaBlendNoOverbright "$translucent" 1 "$basetexture" "overlaysaddsoverlaysadd1" //"$vertexcolor" 1 "$no_fullbright" 1 "$ignorez" 1}If anyone can make a good overlay example I will update the plugin and give credits. Attached Files addsoverlays v1.0.zip (23.4 KB) addsoverlays.smx (18.7 KB) Get Plugin or Get Source (addsoverlays.sp - 11.2 KB) grid.zip (265.9 KB)
Wyświetl pełny artykuł
Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
[CSS] AddsOverlays
Temat rozp. Adminek AMXX.PL, 26.12.2012 19:55
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych