
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

1
Snippet Showroom / [Release] Smooth Freeview Camera
« on July 19th, 04:08 PM »
Introduction
https://www.youtube.com/watch?v=--Hk-ey752w
How to set up in your server
Key Binds
- Smooth Freeview Camera is a feature that allows the player to enter camera mode freely, with this feature you can create trailers and movies for your server, use it as a mapping tool or let you explore any corner of the city!
https://www.youtube.com/watch?v=--Hk-ey752w
How to set up in your server
- Follow the instructions given in the repository right here
Key Binds
- Arrow Up/W - Move to front
- Arrow Down/S - Move to back
- Arrow Left/A - Move to left
- Arrow Right/D - Move to right
- PageUp - Move to Up
- PageDown - Move to Down
- Shift - Move faster while pressing this key
- Home - Change HUD mode
- Insert - Increase Speed
- Delete - Decrease Speed
2
General Discussion / Re: Another biased action by Diazzaster
« on October 29th, 2021, 08:58 PM »
Lol if you guys want to keep feeding this shitty drama please redirect yourself to a television channel. You're not adding a fucking thing to hear an "investigation", if there was any more evidence it would be added way before the shit you engender in a thread that has to do with a banned server and nothing to do with your personal fight. Before you have the courage to say that my opinion is no good, have the courage to just say your name, anyone wants to talk but doesn't want to show up (if I had supported them they wouldn't screw me for not being related to me).
Just wait for the answer and quiet your ass.
C'ya.
Just wait for the answer and quiet your ass.
C'ya.
3
Snippet Showroom / [Beta] Individual Gravity system
« on August 1st, 2021, 06:58 AM »Individual Gravity system v0.2b
VC:MP itself has the possibility to change the gravity, however this function when used affects the gravity of all players, but today I bring a practical way to solve this.
Here's a video showing how it works for someone who wants to see it before testing the code: https://www.youtube.com/watch?v=-Jg6U0nmjNs&feature=youtu.be
Repository (v0.2b)
https://github.com/Razorn7/Individual-Gravity-VCMP
Install:
- Download the script files from the repository above and past in scripts/ folder.
- Load the script using dofile("scripts/i_gravity.nut");.
- Adept this to some events:
function onPlayerJoin(player) {
CGravity.join(player);
}
function onPlayerMove(player, lastX, lastY, lastZ, newX, newY, newZ) {
CGravity.processMove(player);
}
How to use:
- -Simple, after you have added the script, execute the player.SetGravity(some value here, must be number) in any part of you code you want, then gravity will take effect on the entity.
player.SetGravity(number gravity)
player.GetGravity(void)
Example:
Code: [Select] function onPlayerCommand(player, cmd, text)
{
if ( cmd == "setgravity" ) {
if (!text) PrivMessage(player, "Use: /" + cmd + " <player/ID> <value>");
else {
local plr = FindPlayer(GetTok(text, " ", 1));
if (!plr) PrivMessage(player, "Invalid player.");
else {
local value = GetTok(text, " ", 2);
if (value == null) PrivMessage(player, "You must input a value.");
else if (!IsNum(value)) PrivMessage(player, "The value type must be integer|float.");
else {
plr.SetGravity(value.tointeger());
PrivMessage(player, "You've set " + plr.Name + "'s gravity to: " + value.tointeger() + ".");
}
}
}
}
}
/* GetTok() by KAKAN
https://pastebin.com/fLTXmNb6 */
function GetTok(string, separator, n, m = 0) {
n = n - 1;
m = m > 0 ? m : n + 1;
local tokenized = split(string, separator),
text = "";
if(n > tokenized.len() || n < 0 || m > tokenized.len()) return null;
tokenized = tokenized.slice(n, m);
return tokenized.reduce( function(prev, next) { return (prev + separator + next) });
}
Notes:
- This won't work as own VCMP gravity.
- The default gravity value is 0.
- This will just work if the player's gravity is != 0.
- Negative numbers will work too.
Thanks to S.L.C for clarifying a doubt so that the player.SetGravity() return would work the way I wanted.
4
Bugs and Crashes / [BUG] Re: Colour() alpha is not set to GUILabel element when used in constructor
« on May 18th, 2021, 04:04 PM »
Have you tried using label.TextColour?
6
Bugs and Crashes / [Bug] GUILabel().Text color not changing.
« on March 23rd, 2021, 05:57 PM »
Description:
GUILabel().Text color not updating/reseting after text change.
Reproducible:
Always.
How to reproduce:
Code: [Select]
After this, change the GUILabel().Text value:
Code: [Select] or
Code: [Select] Even putting a color or not, the text color will not change or will not change correctly.
I realized the test using a client-side /execc.
GUILabel().Text color not updating/reseting after text change.
Reproducible:
Always.
How to reproduce:
Label <- GUILabel();
Label.TextColour = Colour(255, 255, 255, 255);
Label.AddFlags(GUI_FLAG_TEXT_TAGS);
Label.FontFlags = GUI_FFLAG_BOLD;
Label.Text = "[#ff00ff]purple colored text";
//Example 2: "purple colored [#ff00ff]text";
After this, change the GUILabel().Text value:
Label.Text = "purple colored text";
Label.Text = "purple colored[#ffffff0] text";
I realized the test using a client-side /execc.
7
Scripting and Server Management / Re: Custom game map (GUI)
« on March 18th, 2021, 12:51 PM »@Razor. did a custom radar, so maybe he can help.
I assume you want a custom map like the one you access through Main Menu -> Map.
BottomRightUV = VectorScreen(X, Y)
TopLeftUV = VectorScreen(X, Y)
https://forum.vc-mp.org/?topic=7586.msg47629#msg47629
When using this function, it doesn't matter if the image size is 1024x760 or 1366×1200, as long as you keep the map in the same place you want to make it in the calculation, no matter what resolution, it will always still in the same place.
Then I used the Script::ScriptProcess() method and used calculations so that the player is in agreement with the cut of the map (UV Sprite), it is also necessary that you involve some calc in the same line to avoid the Sprite stretch, this is really a horrible thing to do.
8
Script Showroom / [Release] In-game object hide/show editor
« on March 16th, 2021, 09:43 PM »In-game object hide/show editor
- Introduction: I know that a lot of people who went through the scripting area at VC: MP find it boring or boring to go to the mED or any other map editor to get the ID and the coordinates of the object and then hide it or show it. Now with this editor, it is much easier to do this job.
- Guide:
Just enter the editor, use the command: /editmode on (BOOL), after that the server will give you an M60, shoot it against any object and press DELETE (To hide) or INSERT (To show) (WARNING: If you press DELETE to hide the object and then exit editing, it will not be possible to revert the object through automatic means).
- Commands and Keys:
(click to show/hide) Code: [Select] /editmode <on/off> --> Enable/Disabled edit mode
INSERT --> Show the object.
DELETE --> Hide the object.
BACKSPACE --> End the edition.
- Source:
(click to show/hide) https://github.com/Razorn7/In-game-object-showhide-editor
- Demonstration:
(click to show/hide) https://youtu.be/ElcLlCJckjQ
- Notes:
- WARNING: If you press DELETE to hide the object and then exit editing, it will not be possible to revert the object through automatic means.
- You can't delete LOD's using this editor.
- The object list is saved in Database, so they'll load (be hidden) at server start.
- The selected object will be saved in database when pressing the button [DELETE], or deleted of database if pressing the button [INSERT].
10
Servers / [0.4] Re: The vest survivor | BETA
« on February 23rd, 2021, 07:33 PM »
Topic has been updated.
The server name is now The vest survivor.
And major updates has been added.
The server name is now The vest survivor.
And major updates has been added.
11
Servers / [0.4] Re: Keep the Vest | coming soon
« on February 18th, 2021, 08:08 PM »
Topic has been updated.
Beta gameplay:
https://www.youtube.com/watch?v=dorPdaB27JY
Credits to Fanta for recording and editing the video!
(best moment 15:15)
Beta gameplay:
https://www.youtube.com/watch?v=dorPdaB27JY
Credits to Fanta for recording and editing the video!
(best moment 15:15)
12
Servers / [0.4] Re: Keep the Vest | coming soon
« on February 13th, 2021, 02:31 AM »
A public beta will be opened at 15GMT of day 13th.
Stay tuned and call your friends!
Stay tuned and call your friends!
14
Servers / [0.4] Re: Keep the Vest | coming soon
« on February 10th, 2021, 01:10 AM »
The server is currently online (locked), in few days we'll announce the first public beta to see how the gamemode are going, then we'll decide the official release.
15
Servers / The Vest Survivor
« on February 9th, 2021, 06:43 PM »
The Vest Survivor
Welcome to The Vest Survivor, we would like to welcome you! The game-mode is about two rival teams, red and blue; the objective of the game is to capture the vest and keep it longer to add points to your team. Come and adventure with us in this new experience!
What can we expect from The Vest Survivor?
A selection of innovative weapons with 9 sets:

Emotes for fun while the round has not started:

Information about the killer and his survival time:

Different skins for everyone:


Emotes for fun while the round has not started:

Information about the killer and his survival time:

Different skins for everyone:

And much more!
See you.
- Discord server: https://discord.gg/a48VQr6ncY
- Thanks:
- Support: Shakur, Naru & Fantasma for supporting since I started my scripts.
- Sever credits: To Lucas & Naru for helping with doubts and working in some scripts, to MatheuS for using his snippets.
- Server Hosting: To 4K. for providing hosting services.
- Designs: To ShaKur for making designs such as weapon pack, tops and score.
- Modeling: To Naru for modeling objects so that the lobby can be corrected.
- Mapping: To HeGaMer0177, Nelvis14^ who made themselves available to make the server bases and decorating the lobby.