Raised This Month: $ Target: $400
 0% 

TS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eggbert
Junior Member
Join Date: Jan 2005
Old 01-21-2005 , 21:09   TS
Reply With Quote #1

I searched up this here forum and couldn't find ANYTHING on these questions so....

Q; Can you make weapons/ and or change the weight of them for TS? as in, can you use a command that spawns a weapon that I can use?

if so how? im a MAJOR noob compared to some of you so patience would help....

I can't think of some of my other questions at the moment..... most revolved around the ability to add weapons but whatever..


thanks,
Mr.Eggbert
eggbert is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-21-2005 , 23:58  
Reply With Quote #2

This is one from TwilightSuzuka, and this spawns a weapon on the ground:

Code:
stock create_ts_wep(id,wepid[],ammo[],flags[]){    new ent = create_entity("ts_groundweapon")    DispatchKeyValue(ent, "tsweaponid", wepid)    DispatchKeyValue(ent, "wduration", "1")    DispatchKeyValue(ent, "wextraclip", ammo)    DispatchKeyValue(ent, "spawnflags", flags)    DispatchSpawn(ent)    new Float:fNewOrigin[3]    entity_get_vector(id, EV_VEC_origin, fNewOrigin)    entity_set_origin(ent, fNewOrigin)    return PLUGIN_HANDLED   }

You can use the ts_giveweapon command from the TSX module to directly give a weapon to a player, or you can take Twilight's code, force the player to "use" the entity, and then remove the entity.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
eggbert
Junior Member
Join Date: Jan 2005
Old 01-22-2005 , 08:50  
Reply With Quote #3

can you elaborate? what do I do with the code?
eggbert is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-22-2005 , 13:46  
Reply With Quote #4

What do you want to do with the code? Maybe you just want a plugin for giving weapons instead of adding it to one of your plugins. If so, try TwilightSuzuka's GunShop Creator:

http://hlrn.net/forum/index.php?showtopic=1270
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
eggbert
Junior Member
Join Date: Jan 2005
Old 01-22-2005 , 18:53  
Reply With Quote #5

thanks but I want to know how to change weapon properities and then spawn them
eggbert is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-22-2005 , 18:54  
Reply With Quote #6

It is not possible to change the weight, although if you know anything about scripting then you could catch the CurWeapon event and change their maxspeed based on what weapon they pulled out.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
eggbert
Junior Member
Join Date: Jan 2005
Old 01-22-2005 , 20:30  
Reply With Quote #7

how can i scratch build a weapon? can you give me the code for something basic?
eggbert is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-22-2005 , 23:46  
Reply With Quote #8

You cannot really add a weapon to a mod, the weapons are hard-coded into the C++ source code. There are ways to replicate certain aspects of weapons with AMXx, but to "add" your own in takes a lot of work.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
eggbert
Junior Member
Join Date: Jan 2005
Old 01-23-2005 , 09:21  
Reply With Quote #9

i don't mean i want my weapon in the TS dlls.... I mean I want them to just be an addon to the game as in I want it to be spawnable through amxx, so i make the gun in an sma file, compile and then use like a normal plugin
eggbert is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-23-2005 , 16:35  
Reply With Quote #10

As I already said, it will take a lot of work.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Reply


Thread Tools
Display Modes

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:16.


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