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

Bug Mod


Post New Thread Reply   
 
Thread Tools Display Modes
diamond-optic
Veteran Member
Join Date: May 2005
Old 03-15-2006 , 21:09  
Reply With Quote #21

heres something to make them turn a bit lol.. so they dont face the same direction when they move


add to prethink

Code:
		new Float:angle[3] 
		angle[0] = 0.0
		if(random_num(0,5)==1) angle[1]=float(random_num(0,360))
		angle[2] = 0.0
		entity_set_vector(i,EV_VEC_angles,angle)
btw this plugin is great lol... one of my current favorites...


**EDIT**

this might actually be better now that i think about it...

Code:
		new Float:angle[3] 
		entity_get_vector(i, EV_VEC_angles,angle)
		if(random_num(0,5)==1) angle[1]=angle[1]+float(random_num(-45,45))   //or whatever max angle you'd like
		entity_set_vector(i,EV_VEC_angles,angle)
__________________
diamond-optic is offline
[P]Latinum
Junior Member
Join Date: Mar 2006
Old 03-16-2006 , 15:56  
Reply With Quote #22

Cool plugin but does it work on TFC/NS
__________________
[P]latinum
[P]Latinum is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 03-25-2006 , 15:33  
Reply With Quote #23

Quote:
Originally Posted by [P
Latinum]Cool plugin but does it work on TFC/NS
yes
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 03-25-2006 , 15:46  
Reply With Quote #24

added version 1.2 where the bug's angles change.

@diamond-optic - You need a bit more coding than what you posted.

@VEN - No way to make bugs explode if they are hit with a nade, the bugs are just removed as if they dissappeared. I'll find a way to hook their HE death and then upload another version.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 03-25-2006 , 16:41   Re: Bug Mod
Reply With Quote #25

Quote:
Originally Posted by The Main Post
CAN NOW BE NADED TOO!
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
Guenhwyvar
AMX Mod X Beta Tester
Join Date: Jul 2005
Location: Berlin / Germany
Old 03-25-2006 , 16:57  
Reply With Quote #26

I see two times "GHW_Bugs.sma" attached, 1st is 8.18kb, 2nd 8.21.

I need the zip file .
Guenhwyvar is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 03-25-2006 , 17:00  
Reply With Quote #27

sorry, my fault, added the latest .sma and the .zip file again.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
diamond-optic
Veteran Member
Join Date: May 2005
Old 03-25-2006 , 17:21  
Reply With Quote #28

Quote:
Originally Posted by GHW_Chronic
@diamond-optic - You need a bit more coding than what you posted.
what you mean? pretty sure thats exactly what I added to the prethink and it works

get their angle..

Code:
new Float:angle[3]
entity_get_vector(i, EV_VEC_angles,angle)
then decide whether to set a new one or not, if so.. get the angle

Code:
if(random_num(0,5)==1) angle[1]=angle[1]+float(random_num(-45,45))   //or whatever max angle you'd like
and then set it it...


Code:
entity_set_vector(i,EV_VEC_angles,angle)
what else was needed there??


**also** you say you need the models and sounds posted for it to work right.. all i downloaded was the sma and everything shows up fine, just loads the stuff right outta the half-life.gcf
__________________
diamond-optic is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 03-25-2006 , 17:26  
Reply With Quote #29

Code:
        if(angles[1]>180) angles[1] -= 360         if(angles[1]<-180) angles[1] += 360
Make sure that their angles do not exceed or deceed 180/-180. If they did you would get horrific errors I am sure.

And also read note #2.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
diamond-optic
Veteran Member
Join Date: May 2005
Old 03-25-2006 , 17:35  
Reply With Quote #30

ohh ok.. i never noticed any errors myself...

also just a little customization here:

changing the

Code:
entity_set_float(ent,EV_FL_framerate,1.0)
to something like:

Code:
entity_set_float(ent,EV_FL_framerate,0.5)
just makes they're legs move a little slower so it doesnt look like theyre moving like mad when theyre not really moving that fast...
but thats all bout personal preference i suppose..

but anyways im looking into how i can do nades in dod, cuase unlike cs, there isnt the radio call thingy automatically when you throw one... i could probably call the little grunt throw noise thingy.. but then im not sure if thats used anywhere else.. but i think the smoke plugin i have probably uses it too.. not sure.. dont feel like looking right now lol.. but ill probably be able to come up with something hehe

but so many ppl are like "wtf did i just step on a bug??"

lol its great hehe
__________________
diamond-optic 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 19:04.


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