Pottus / ColAndreas

Collision Plugin For San Andreas Multiplayer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invisible Wall

AbyssMorgan opened this issue · comments

commented

Are you using the latest version? (talking about 0.3dl)

Im using SAMP 0.3.7

commented

I’m talking about plugin version

commented

And it would be cool if you show us a test script like that video

Sorry for double post, github on iPhone somehow doesnt let me tap on edit button!

v1.4.1

By using this command i get collision in my objects on server model 13659, but this object does not exist

CMD:col_test(playerid){
	new Float:tx,Float:ty,Float:tz;
	new Float:x,Float:y,Float:z,buffer[256];
	GetPlayerPos(playerid,x,y,z);
	GetPointInFrontOfCamera3D(playerid,tx,ty,tz,300.0);
	format(buffer,sizeof(buffer),"%d",ColAndreas::RayCastLine(x,y,z,tx,ty,tz,tx,ty,tz));
	SendClientMessage(playerid,-1,buffer);
	return 1;
}

i fixed after remove collisions for that but still not understand why this happen

bigear = CA_CreateDynamicObject_DC(19362, -345.686462, 1591.979614, 75.644195, 0.000000, 0.000000, 0.000000);
SetDynamicObjectMaterial(bigear, 0, 13659, "8bars", "Upt_Fence_Mesh", 0x00000000);
bigear = CA_CreateDynamicObject_DC(19362, -347.376617, 1593.500610, 75.644195, 0.000000, 0.000000, 90.000000);
SetDynamicObjectMaterial(bigear, 0, 13659, "8bars", "Upt_Fence_Mesh", 0x00000000);

Did you use the RemoveBuildings function? It looks like it's probably just one of the barriers.

CA_RemoveBreakableBuildings
CA_RemoveBarriers

By default, the GTASA barriers and breakable objects (hay stacks, fences, etc) are all added to the collision map. You must use the CA_Remove* functions to remove them if you don't want their collision detected.

The situation looks like the object has changed its collision data relative to the material model, strange and probably impossible. I already removed breakable objects and another from colandreas.inc. I fixed this issue by disable collision for this small object, but i don't understand what this happen.

commented

@AbyssMorgan That's why I asked for version you are using.
Can you try that with 1.4.0 and give us results? There's a chance of refs being mixed in 1.4.1, nobody had any problem yet so maybe you are the first one who faced this.

EDIT: I had the same issue somewhere in LV once, then realized refs were mixed for some reason.

I found problem in SAOI.inc object loader have a bad modelid when create Colission, but yes in some places in LV i have invisible walls.

commented

I can also confirm this bug is still present. Kind of invisible building with model 6047 in LV. No CreateObject's or CreateDynamicObject's. ColAndreas 1.5.0
IMG_0741_2