Raised This Month: $51 Target: $400
 12% 

Hero: Changeling


Post New Thread Reply   
 
Thread Tools Display Modes
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 09-27-2010 , 02:06   Re: Hero: Random
Reply With Quote #21

I can see how this is more efficient in emp's version, and also punisherV2. But the difference in game will never to noticeable. I bet you can run 100's of heroes with those ones too without having problems.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 09-28-2010 , 07:48   Re: Hero: Random
Reply With Quote #22

Okay, so I changed it so it changes weapon model and player model each pcvar seconds. I get a warning, and I didn't use enum like you did. I guess that needs to be changed. I just upload it here so I can look at it while in school, so I will update it later.
Attached Files
File Type: sma Get Plugin or Get Source (sh_changeling.sma - 420 views - 4.0 KB)
__________________
No idea what to write here...

Last edited by Jelle; 09-28-2010 at 12:46.
Jelle is offline
Send a message via MSN to Jelle
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 09-28-2010 , 14:35   Re: Hero: Random
Reply With Quote #23

what didn't you understand in this enum ?
Fr33m@n is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 09-28-2010 , 15:30   Re: Hero: Random
Reply With Quote #24

I do understand it. It was just easier for me to do it this way. I can read the code much easier. However, I believe it is needed for it to get approved.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 09-28-2010 , 16:38   Re: Hero: Random
Reply With Quote #25

that also show that the only kind of var you know is boolean...


i wanted to be fast i made a mistake. remplace YouPlayerArray by the name given before...

Last edited by Fr33m@n; 09-28-2010 at 17:35.
Fr33m@n is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 09-29-2010 , 02:22   Re: Hero: Random
Reply With Quote #26

I don't get what you are actually trying to tell me here. I do indeed know the difference between a boolean and an integer. Also in an array.

We are talking enum here, and yes, I do know what it is. I just still think it makes the code so much easier for me to read if I just use a bunch of booleans for it.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 09-29-2010 , 03:57   Re: Hero: Changeling
Reply With Quote #27

Updated main post. New line to changelog:

1.5: Now it has only M4A1 and it changes multiplier and models each X amount of seconds.

And now uses enum!

I can't see how this can be optimized any further.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 09-29-2010 , 16:02   Re: Hero: Changeling
Reply With Quote #28

Quote:
Originally Posted by Jelle View Post
I can't see how this can be optimized any further.
Ham_Item_Deploy

Probably a lot more, too lazy to look through.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 09-29-2010 , 16:07   Re: Hero: Changeling
Reply With Quote #29

I used emp's code as a base.
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 09-29-2010 , 19:43   Re: Hero: Changeling
Reply With Quote #30

Quote:
Originally Posted by Jelle View Post
I used emp's code as a base.
So? Still an optimization. It's a hell of a lot better to use than CurWeapon, and currently you're not even pre-filtering weapon. You could optimize it just by doing that.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
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 03:06.


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