Raised This Month: $ Target: $400
 0% 

help :D


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Om3gA
Veteran Member
Join Date: Feb 2005
Old 09-05-2005 , 14:04   help :D
Reply With Quote #1

ok well first i need to know how to set the players velocity so it simulates that he is walking on a was so this means that i want thim to go forwards when he jumps or walks on to a wall


and the seccond thing is when i pres the bindet key i wanna set the players vector angels so it looks like he is walking on a wall like i show on this pic
[img]http://img390.**************/img390/4909/dedust00073vu.jpg[/img]
but when i go to teh other side off the wall i want it to look teh same as i showed in that other pic but it looks like this
[img]http://img237.**************/img237/9840/dedust00088qv.jpg[/img]


and i want to add to things to this plugin :
the first one is that when he touches the ground his vector angels are set to normal .
and the seccond thing is that when he walks on the wall and presses the button again you jump off the wall.. like a little jump ^_^

here is what i have done till now

Code:
 /*
 WOW my first  plugin ^_^
 i hope someone likes it 

 cvars:
 amx_walk_active 1
 amx_walk_wspeed 250.0 //how fast you are on teh wall

 bind +wallwalk to use it ^_^

 */
 #include <amxmodx>
 #include <fun>
 #include <Vexd_Utilities>


 new bool:g_canWalk[32]

 public plugin_init() {
	// Plugin Info
	register_plugin("amx_wall_walk","1.0","Om3gA")

	register_cvar("amx_walk_active", "1" )
	register_cvar("amx_walk_wspeed", "250.0")

	register_clcmd("+wallwalk", "amx_walk_kd")
	register_clcmd("-wallwalk", "amx_walk_ku")

	register_event("ResetHUD","newRound","b")


 }

 public amx_walk_kd(id)
 {
	if ( !is_user_alive(id) || !get_cvar_num("amx_walk_active"))
	return PLUGIN_HANDLED
	wall_walk(id)
	return PLUGIN_HANDLED
 }



 public amx_walk_ku(id)
 {
	if ( !is_user_alive(id) || g_canWalk[id] )
	return PLUGIN_HANDLED
	stop_walk(id)
	return PLUGIN_HANDLED
 }


 public wall_walk(id) {
	if ( is_user_alive(id) && g_canWalk[id]) {

  new Float:velocity[3]
  Entvars_Get_Vector(id, EV_VEC_velocity, velocity)
  if ( (Entvars_Get_Int(id,EV_INT_button)&IN_FORWARD) ) {
  	velocity[0]=get_cvar_float("amx_walk_wspeed")
  	velocity[2]=80.0
  	Entvars_Set_Vector(id, EV_VEC_velocity, velocity)

  	//THX To Kleenex
  	new Float:angles[3]
  	entity_get_vector(id, EV_VEC_angles, angles)

  	angles[2] += 90.0 // Change this to the rotation you want
  	entity_set_vector(id, EV_VEC_angles, angles)

  	entity_set_int(id, EV_INT_fixangle,1)
  }
	}
 }


 public stop_walk(id){
	if ( is_user_alive(id) && !g_canWalk[id]) {

  //THX To Kleenex
  new Float:angles[3]
  entity_get_vector(id, EV_VEC_angles, angles)

  angles[2] = 0.0 // Change this to the rotation you want
  entity_set_vector(id, EV_VEC_angles, angles)

  entity_set_int(id, EV_INT_fixangle,1)
	}
 }
 public client_disconnect(id) {
	remove_task(id)
 }
 public newSpawn(id) {
	g_canWalk[id]=false
 }
and sry for such a long post but i wanted to make everything detailed so everyone underestands it and i hope someone underetands/helps me thx for your time ^_^
__________________
Om3gA is offline
Send a message via AIM to Om3gA Send a message via MSN to Om3gA Send a message via Yahoo to Om3gA Send a message via Skype™ to Om3gA
Om3gA
Veteran Member
Join Date: Feb 2005
Old 09-05-2005 , 15:21   Re: help :D
Reply With Quote #2

well on found out that i can set teh players vector angels to normal when he hits teh ground or i gues this wud make it

Code:
 new flags = Entvars_Get_Int(id, EV_INT_flags) 
 if (!flags&(1<<9)) 
 { 	 
	//THX To Kleenex
	new Float:angles[3]
	entity_get_vector(id, EV_VEC_angles, angles)
		
	angles[2] = 0.0 // Change this to the rotation you want
	entity_set_vector(id, EV_VEC_angles, angles)
		
	entity_set_int(id, EV_INT_fixangle,1)
   
 }

[OFFTOPIC]well why does i have -7 karma i never posted anything b4 i just like give karma to ppl -_- [/OFFTOPIC]
__________________
Om3gA is offline
Send a message via AIM to Om3gA Send a message via MSN to Om3gA Send a message via Yahoo to Om3gA Send a message via Skype™ to Om3gA
XunTric
BANNED
Join Date: Jan 2005
Location: Norway/Norge
Old 09-05-2005 , 17:14   Re: help :D
Reply With Quote #3

Quote:
Originally Posted by Om3gA
well why does i have -7 karma i never posted anything b4 i just like give karma to ppl -_-
You loose karma when giving to others...
XunTric is offline
Om3gA
Veteran Member
Join Date: Feb 2005
Old 09-05-2005 , 17:41   Re: help :D
Reply With Quote #4

LOl thats gay but w/e now back to teh topic ^_^
__________________
Om3gA is offline
Send a message via AIM to Om3gA Send a message via MSN to Om3gA Send a message via Yahoo to Om3gA Send a message via Skype™ to Om3gA
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 09-05-2005 , 23:44  
Reply With Quote #5

Code:
 #include <amxmod>  #include <fun>  #include <Vexd_Utilities>
This is AMX, not AMXX.

Also, I believe you already posted over there ;)
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Om3gA
Veteran Member
Join Date: Feb 2005
Old 09-06-2005 , 01:21  
Reply With Quote #6

now it is amxx so help me plzz..
__________________
Om3gA is offline
Send a message via AIM to Om3gA Send a message via MSN to Om3gA Send a message via Yahoo to Om3gA Send a message via Skype™ to Om3gA
Om3gA
Veteran Member
Join Date: Feb 2005
Old 09-06-2005 , 12:46  
Reply With Quote #7

anyone..............
__________________
Om3gA is offline
Send a message via AIM to Om3gA Send a message via MSN to Om3gA Send a message via Yahoo to Om3gA Send a message via Skype™ to Om3gA
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode