Raised This Month: $32 Target: $400
 8% 

Wallhang / Wallclimb


Post New Thread Reply   
 
Thread Tools Display Modes
Bence98007
Member
Join Date: Jun 2012
Old 10-11-2012 , 12:26   Re: Wallhang / Wallclimb
Reply With Quote #11

And put it the full code, in your 1st post!
Bence98007 is offline
vitorrossi
Senior Member
Join Date: Apr 2012
Location: NY, USA
Old 10-11-2012 , 16:00   Re: Wallhang / Wallclimb
Reply With Quote #12

Quote:
Originally Posted by Liverwiz View Post
I'd also suggest using a bitsum instead of a bool array.
As such....
Code:
new bool:g_bStuckToWall[33];

PHP Code:
new g_bStuckToWall;
#define stickPlayer(%1)    g_bStuckToWall |= (1 << (%1 & 31));
#define unstickPlayer(%1)    g_bStuckToWall &= ~(1 << (%1 & 31));
#define isStuck(%1)        g_bStuckToWall & (1 << (%1 & 31)); 
This will be much faster and more efficient. As well as at the end of the round (to unstick people) you can simply g_bStuckToWall = 0 rather than looping through the array and setting all to false.

If you'd like more information about bitsums read THIS tutorial by Bugsy.
Thank you. I've finished reading the post you sent me and I understand it. The only part Bugsy didn't explain is what does the % do... Essencially, could I use this for all of my booleans within a program then?

Last edited by vitorrossi; 10-11-2012 at 16:43.
vitorrossi is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-11-2012 , 20:04   Re: Wallhang / Wallclimb
Reply With Quote #13

Quote:
Originally Posted by vitorrossi View Post
The only part Bugsy didn't explain is what does the % do
Because he doesn't need to? If you really want to know, go read up on macro's in the Pawn language
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
vitorrossi
Senior Member
Join Date: Apr 2012
Location: NY, USA
Old 10-11-2012 , 23:26   Re: Wallhang / Wallclimb
Reply With Quote #14

Thanks YamiKaitou. I did wanna know this so I went and researched it. Just keep in mind that not everyone knows this stuff, I'm just trying to learn
vitorrossi is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-12-2012 , 00:36   Re: Wallhang / Wallclimb
Reply With Quote #15

The understanding is that if you are looking at tutorials about how to do things, that you know the basics about the language and it's features
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 10-12-2012 , 11:21   Re: Wallhang / Wallclimb
Reply With Quote #16

Put here some video about this wallhang
__________________
Jhob94 is offline
Bence98007
Member
Join Date: Jun 2012
Old 10-12-2012 , 16:25   Re: Wallhang / Wallclimb
Reply With Quote #17

I have a server, with Furien mod, and its use wallhang! Pretty cool thing.
Bence98007 is offline
Old 03-15-2013, 12:12
bloody806
This message has been deleted by ConnorMcLeod. Reason: You already opened a thread about your problem and you have been answered.
risontek22
Member
Join Date: Mar 2013
Location: localhost
Old 05-25-2013 , 08:06   Re: Wallhang / Wallclimb
Reply With Quote #18

hi a have this and this doest not word
risontek22 is offline
_GamerX
AlliedModders Donor
Join Date: Jun 2011
Location: Fun Server
Old 11-08-2013 , 02:14   Re: Wallhang / Wallclimb
Reply With Quote #19

error:
Code:
 error 047: array sizes do not match, or destination array is too small
Line: if(get_distance_f(fOrigin[id],g_flWallOrigin[id]) > 10.0)

Last edited by _GamerX; 11-08-2013 at 02:14.
_GamerX is offline
Send a message via ICQ to _GamerX Send a message via Skype™ to _GamerX
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-08-2013 , 11:48   Re: Wallhang / Wallclimb
Reply With Quote #20

PHP Code:
new Float:g_flWallOrigin[33][3]; 
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
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 05:23.


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