I want to know something

Sharki

Newbie
Joined
Aug 14, 2007
Messages
17
Reaction score
0
Hello

I'm new on this website
but i wanted to ask if someone could help with a question
I dont know if someone ever played call of duty2 multiplayer
but there are people who have made jump maps
i would like to make this with source sdk for half life 2
but i dont how you can do something like save position
so when you press certain buttons your position is saved and when your press other certain buttons it loads your saved position again.
Is this possible?

please help me

Greetings Sharki
 
Soo what you want is to make it save your coordinates so that you can use it to teleport back to? Something like the reverse of Unreal Tourmament's "translocator"? It should be possible, but I'm not sure how you'd go about doing it.
 
heh, I think, this should be really easy
 
Ok now i know its possible but can someone plz tell me how to do it
 
Well, what you want to do is a thing that saves your previous position? You could make it a weapon. Secondary would save the position to a Vector (FIELD_POSITION_VECTOR), m_vecSavedPosition = GetOwner()->GetAbsOrigin(); and the Primary would do GetOwner()->SetAbsOrigin(m_vecSavedPosition); which to my understanding should work. Then you can do the same with Angles, if you want...
 
lol wut. That's why I refuse to learn C++.
 
i dont know how that code stuff works . can someone send me a tutorial or a link for one. thx
 
I almost understand know
for the primary its easy
but i dont really understand how to replace the secondary part
cant u send the file or some thing or maybe put the file in a post
 
Back
Top