Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 00:42

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C++] Stop collision with arguments [++ bonus ]

Discussion on [C++] Stop collision with arguments [++ bonus ] within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
VegaS ♆'s Avatar
 
elite*gold: 10
Join Date: Jul 2013
Posts: 93
Received Thanks: 416
Lightbulb [C++] Stop collision with arguments [++ bonus ]

A*collision*or*crash*is an event in which two or more bodies exert forces on each other for a relatively short time. Although the most common colloquial use of the word "collision" refers to incidents in which two or more objects collide, the scientific use of the word "collision" implies nothing about the magnitude of the force.

Some examples of physical interactions that scientists would consider collisions:

An insect touches its antenna to the leaf of a plant. The antenna is said to collide with leaf.
A cat walks delicately through the grass. Each contact that its paws make with the ground is a collision. Each brush of its fur against a blade of grass is a collision.


[File: src/Client/Source/GameLib/ActorInstanceCollisionDetection.cpp]

//1.) Search:
Code:
#include "../eterLib/GrpMath.h"
//2.) Add bellow:
Code:
#include "../UserInterface/PythonBackground.h"
#include "../UserInterface/Locale_inc.h"
//3.) Search:
Code:
BOOL CActorInstance::TestActorCollision(CActorInstance & rVictim)
{
//4.) Add bellow:
Code:
#ifdef ENABLE_STOP_COLISSION_GLOBAL
/*********************************************************************
* date		: 2016.02.16
* function	: Stop Colission
* developer	: VegaS
* skype		: sacadatt.amazon
* description : Checks if the victim is one of the examples below you can easily configure. If the victim was found 
				success as vnum site / breed ve you could go through it no longer block.
*/	
/************
* The first value is the minimum value and the second value is the maximum value of pet vnum (mob_proto) - change 34051 with your max vnum of pet */	
	int pListPet[2] = {34001, 34051};	
/************
* You can add whatever you like vnum of npc or monster (mob_proto) */
	int pListGlobal[] = {9001, 9002, 9003, 9004, 9005, 9006, 20011, 20091, 20092, 20093, 20094, 20095, 30000};
/************
* You can add what mapname you want for enable this stop collission global like pet / npc */	
	const char* strMapListGlobal[] = {"metin2_map_a1", "metin2_map_a3", "metin2_map_b1", "metin2_map_b3", "metin2_map_c1", "metin2_map_c3", 
									"season2/metin2_map_skipia_dungeon_01", "season2/metin2_map_skipia_dungeon_02", "metin2_map_duel"};	
/************
* Location name of the map where the event takes place ox */		
	const char* strMapEventOx = "season1/metin2_map_oxevent";								
	
	
	std::string stringName = CPythonBackground::Instance().GetWarpMapName();
	
	for (int i = 0; i < _countof(strMapListGlobal); i++)
	{
#ifdef ENABLE_STOP_COLLISION_PLAYER_OX
		if (strMapEventOx == stringName) // Check if u are place in map ox
		{	
			if (0 <= rVictim.GetRace() && rVictim.GetRace() <= 7) // Check if the victim through which pass over a player (change 7 with 8 if u have wolfman)
				return FALSE;	// Stop collission for player --> You can go through players now successfully without lock yourself		
		}
#endif		
		if (strMapListGlobal[i] == stringName) // Check if you are in one of the maps listed in the global list
		{
			for (int i = 0; i < _countof(pListGlobal); i++)
			{
				if (rVictim.GetRace() == pListGlobal[i] || pListPet[0] <= rVictim.GetRace() && rVictim.GetRace() <= pListPet[1]) // Verify that the victim is npc vnum listed above, or if a pet.
					return FALSE;	// Stop collission for global vnum like a pet or npc							
			}
		}	
	}	
#endif
[File: src/Client/Source/UserInterface/Locale_inc.h]

//1.) Search:
Code:
#define ENABLE_COSTUME_SYSTEM
//2.) Add bellow:
Code:
#ifndef ENABLE_STOP_COLISSION_GLOBAL
	#define ENABLE_STOP_COLISSION_GLOBAL
	#define ENABLE_STOP_COLLISION_PLAYER_OX
#endif
VegaS ♆ is offline  
Thanks
10 Users
Old 08/07/2016, 07:38   #2
 
KilleRzZ™'s Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 35
Received Thanks: 42
Very cool ^^
KilleRzZ™ is offline  
Old 08/07/2016, 11:15   #3
 
elite*gold: 0
Join Date: Jul 2011
Posts: 25
Received Thanks: 15
Its organized yes, but why you posted with at 8hours at m2dev, 3 hours after a guy that also made the same?


redryan is offline  
Old 08/07/2016, 13:35   #4
 
lollo_9_1's Avatar
 
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
Quote:
Originally Posted by redryan View Post
Its organized yes, but why you posted with at 8hours at m2dev, 3 hours after a guy that also made the same?
Some people said the one from Alucardo is took from Great's OffShop code.
About the rest, it's clearly advertisement.
lollo_9_1 is offline  
Thanks
2 Users
Old 08/07/2016, 14:29   #5
 
elite*gold: 0
Join Date: Jul 2011
Posts: 25
Received Thanks: 15
Quote:
Originally Posted by lollo_9_1 View Post
Some people said the one from Alucardo is took from Great's OffShop code.
About the rest, it's clearly advertisement.
Dindt knew that.

Theres a clear pattern when a new thing appears on the net, the OP makes a topic about it, with all of his "Developer VegaS" spammed in the code.

Something to take into consideration.
redryan is offline  
Old 08/07/2016, 16:54   #6
 
VegaS ♆'s Avatar
 
elite*gold: 10
Join Date: Jul 2013
Posts: 93
Received Thanks: 416
Thumbs up

Quote:
Originally Posted by redryan View Post
Dindt knew that.

Theres a clear pattern when a new thing appears on the net, the OP makes a topic about it, with all of his "Developer VegaS" spammed in the code.

Something to take into consideration.
I do not understand what you mean, because Google Translate does not help very much.

So I made this abundantly clear after I saw a guy that copied Collision according stop to shop.

These functions had already made long long time ago.

I do not understand what you mean that I copied from him or what? Haha nice joke.
He would need to be taken to be the man responsible, not me.

PS: Before that there is a guy who already sell this thing m2dev with 10euro.

I do not see what is wrong? So is the world hater.
I posted something for free, I also asked for money for ****, can other owner paid a lot of money to do that.

So stop with off-topic, thanks.
VegaS ♆ is offline  
Thanks
2 Users
Old 08/20/2016, 15:48   #7
 
VegaS ♆'s Avatar
 
elite*gold: 10
Join Date: Jul 2013
Posts: 93
Received Thanks: 416
#(Fix about check maplist
VegaS ♆ is offline  
Reply

Tags
c++, developer, epvp, metin2, vegas


Similar Threads Similar Threads
Mob collision
02/08/2016 - Kal Online - 4 Replies
Hello elite. Is there any other way to remove mob collision than remove moster texture?
cd : too many arguments bei etc befehl
02/13/2012 - Metin2 Private Server - 1 Replies
Hey com Bei den kay331 files kriege ich den error cd : too many arguments wenn ich den cd etc/rc.d/netif restart befehl eingebe Pls help :)
[Non Stop Non Stop 24/7] For Ever Free MM Service [Non Stop 24/7]
01/10/2012 - Middleman - 38 Replies
ch möchte hier meine Dienste als Middleman anbieten. Deutsch ✔] Telefon Verifizierung ✔] Seit 3 Monaten registriert ✔] Mehr als 300 Posts ✔] Mind. 10 TBM-Bewertungen ✔] Kein negatives Rating Welchen Service biete ich an?
Stop people from hitting multiple stakes in TG/Stop weapon skill
12/06/2007 - CO2 Exploits, Hacks & Tools - 21 Replies
Let me start off by saying this is a pretty dirty trick! But if you really don't like someone you can stop them from getting their max exp in TG. Explained: When someone uses a club/wand/FOH/etc in TG, it hits multiple stakes. You can make it so it doesn't hit a certain stake(s). This is easiest achieved by using the #alone feature in proxy. Use the #alone feature and stack on top of the stake you wish for the person not to hit. That's it! Their skill isn't hitting the stake(s) for some...



All times are GMT +2. The time now is 00:42.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.