Originally Posted By: MasterQ32
scale it down and displace it like a normal weapon model.
That's what I did, but it doesn't work, take a look:



Code:
Code:
{
	my = ent_create("v_supershotgun+12.tga", nullvector, NULL);
	set(my, PASSABLE | NOFILTER | ZNEAR);
	vec_fill(&my->scale_x, 0.0625); // 0.0625
	my->ambient = 100;
	
	while(my){
		
		camera->arc = 90;		
		camera->pan = cycle(camera->pan - mickey.x / 6.5 * 1, 0, 360);
		camera->tilt = clamp(camera->tilt - mickey.y / 6.5 * 1, -90, 90);		
		camera->roll = 0;		
		
		VECTOR pos;
		vec_set(&pos, vector(screen_size.x / 2, screen_size.y, 4));
		vec_for_screen(&pos, camera);
		
		draw_point3d(&pos, COLOR_RED, 100, 0.1);
		
		VECTOR off;
		vec_set(&off, vector(4, 0, 4.5));
		vec_rotate(&off, &camera->pan);
		vec_add(&off, &pos);
		
		vec_set(&my->x, &off);
		vec_set(&my->pan, &camera->pan);
		
		wait(1);
	}
	
}



Greets!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung