opposing force ropes?

ceriux

Adventurer
Joined
Feb 17, 2005
Messages
2,297
Reaction score
5
Age
36
Location
At my computer :)
anyways the other day i was playing opposing force and i saw it had ropes like hl2.... and i was wondering if thothie can add that in anyway? could help with more puzzles in maps?
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
Well, the OP ropes only work in certain places hmm... It *might* be possible, although the view model for the item wouldn't likely be very good (I wouldn't want to sacrafice a model slot for something that can only be used on certain maps), and it'd have to be a beam, like hookmod - no idea how to do it with a model like OP does.
 

J-M v2.5.5

BANNED
BANNED
Joined
Feb 26, 2005
Messages
5,675
Reaction score
1
Age
35
Location
Nijmegen, the Netherlands.
No; the Opposing Force ropes are an entirely different entity, coded specifically for Opposing Force. The only way to get it to work in MS: C is to copy the code somehow and implement it.
 

FER

New Adventurer
MSC Developer
RiP
Joined
Sep 16, 2006
Messages
2,758
Reaction score
0
Age
37
Location
on Belser's army
If they copy-pasted the code for the HL2 flaslight into HL, im pretty sure this could get done too.
 

Thothie

Administrator
Staff member
Administrator
Moderator
MSC Archivist
Joined
Apr 8, 2005
Messages
16,342
Reaction score
326
Location
lost
Unlike HL2 - OP is not open source, sfaik.
 

ceriux

Adventurer
Joined
Feb 17, 2005
Messages
2,297
Reaction score
5
Age
36
Location
At my computer :)
ill look on how to do it :D

so far i found this....



Code:
 128
Reply to: 21

France
	#22. Re: Because i was bored

First, the whole system is made in the client side :

void SpriteTracer( vec3_t pos, vec3_t oldpos, int modelindex, float r, float g, float b, float a )

{

	BEAM *pTracer = gEngfuncs.pEfxAPI->R_BeamPoints( 

				pos,

				oldpos,

				modelindex,

				0.1,	// life

				0.3,	// width

				0.0,	// amplitude

				a,

				0,

				0,

				0,

				r,

				g,

				b

			);



	if( pTracer )

	{

		//gEngfuncs.Con_Printf( "Okay\n" );

		pTracer->flags |=  FBEAM_FADEIN;

	}

}

That is the main function, it creates a temporary ( with life ) beam beetween the last position and the current position of your defined point ( endpos of a laser traceline for ex. ). Thus, that create each frame a beam that die 0.1 (sec.?) after, then make this tracer effect.

	static vec3_t oldpos = end;

	SpriteTracer( end, oldpos, LaserSightIndex, 0.7, 0.0, 0.0, 0.3 );

	oldpos = end;

Where "end" is your position where you want to draw the tracer. The modelindex is the indexe ( int ) of the precached sprite, you can call him by:

	int LaserSightIndex = gEngfuncs.pEventAPI->EV_FindModelIndex( "sprites/laserbeam.spr" );

after precaching it in the server side :

PRECACHE_MODEL( "sprites/laserbeam.spr" );

( this one for the laserbeam.spr is already made in the code ).

Enjoy ;).



EDIT:NVM I THINK THIS IS SOMETHING ELSE.




Edit again: anyways this guy says to PM him... maybe he still hangs around there, or u can find his email... he made a rope system.


http://www.chatbear.com/unity2/839/483, ... ?v=flatold
 
Top