Raised This Month: $62 Target: $400
 15% 

Python scripts


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Relaxing
Veteran Member
Join Date: Jun 2016
Location: Catlands
Old 02-11-2018 , 09:09   Python scripts
Reply With Quote #1

I was browsing through my Downloads folder and saw some Python scripts dedicated to server side plugin. Can python scripts be loaded on HLDS? Can metamod load this stuff?
Python script file contains some anti exploit sort of stuff & since they are dedicated to HLDS, I feel sad losing them.
__________________
Relaxing is offline
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-11-2018 , 13:14   Re: Python scripts
Reply With Quote #2

Nobody can really tell you what you can do with that script or how to attach it to HLDS (if even possible) unless you post code.
__________________
KliPPy is offline
Relaxing
Veteran Member
Join Date: Jun 2016
Location: Catlands
Old 02-11-2018 , 14:05   Re: Python scripts
Reply With Quote #3

http://addons.eventscripts.com
Can this interact with amxx?
__________________
Relaxing is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-11-2018 , 16:15   Re: Python scripts
Reply With Quote #4

IIRC, EventScripts was an alternative to MetaMod:Source. What does this have to do with Python?
__________________

Last edited by fysiks; 02-11-2018 at 16:16.
fysiks is offline
Relaxing
Veteran Member
Join Date: Jun 2016
Location: Catlands
Old 02-12-2018 , 12:17   Re: Python scripts
Reply With Quote #5

AFAIK scripts are written in python language.
__________________
Relaxing is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-12-2018 , 22:29   Re: Python scripts
Reply With Quote #6

I've never heard of such a thing for HLDS.

The equivalent of EventScripts for HLDS is AMX Mod X, afaik. Also, it looks like EventScripts is dead and SourceMod seems to have replaced it anyways.

So, you'll probably need to write an AMX Mod X plugin do what you want it to do.
__________________
fysiks is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 02-12-2018 , 23:55   Re: Python scripts
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
I've never heard of such a thing for HLDS.

The equivalent of EventScripts for HLDS is AMX Mod X, afaik. Also, it looks like EventScripts is dead and SourceMod seems to have replaced it anyways.

So, you'll probably need to write an AMX Mod X plugin do what you want it to do.
There is also this (for Source Engine also): https://forums.sourcepython.com/
__________________

Last edited by WildCard65; 02-13-2018 at 00:05.
WildCard65 is offline
mohsen9010
Senior Member
Join Date: Jun 2011
Location: Iran
Old 02-16-2018 , 01:18   Re: Python scripts
Reply With Quote #8

Quote:
Originally Posted by fysiks View Post
I've never heard of such a thing for HLDS.

The equivalent of EventScripts for HLDS is AMX Mod X, afaik. Also, it looks like EventScripts is dead and SourceMod seems to have replaced it anyways.

So, you'll probably need to write an AMX Mod X plugin do what you want it to do.
I think python is better than pwn language for gamers because of this benefits:
  • Python is very simple to learn and use and it's very powerful
  • There are many documents and helpers for python
  • It is more understandable and you can't write ugly codes
  • There are many libraries for python so you can think bigger than pwn!
  • No need to compile

But for now i think it's too late to make that for HLDS!
I believe valve should be free the counter-stirke after many years and open the source engine!

Quote:
Originally Posted by WildCard65 View Post
There is also this (for Source Engine also): https://forums.sourcepython.com/
nyc!
__________________
Iman in Allah
mohsen9010 is offline
Send a message via Yahoo to mohsen9010 Send a message via Skype™ to mohsen9010
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 02-16-2018 , 08:50   Re: Python scripts
Reply With Quote #9

Quote:
Originally Posted by mohsen9010 View Post
  • Python is very simple to learn and use and it's very powerful
It depends, to me it's easy to understand languages with C-like syntax than python.

Quote:
Originally Posted by mohsen9010 View Post
  • There are many documents and helpers for python
Doesn't mean you can use every helper for gaming. Everything can be done with pawn. I would say python community is bigger than pawn amxmodx community but I'm mixing apples with strawberies...
I bet less than 5% of "many documents" available are usefull for us.

Quote:
Originally Posted by mohsen9010 View Post
  • It is more understandable and you can't write ugly codes
Quote:
Originally Posted by mohsen9010 View Post
  • There are many libraries for python so you can think bigger than pwn!
Nothing stops you to build anything for amxmodx/metamod.
All open source libraries are available for both projects, you just have to integrate them.

Quote:
Originally Posted by mohsen9010 View Post
  • No need to compile
Who said that?
Python is compiled on the fly (when the script is loaded).
Python is an interpreted language
Python scripts can be compiled to speed up
I bet interpreted python is slower than our loved pawn


You should elaborate why you should choose python over pawn.
For example:
* Python is object-oriented so it's easy to build and extend implementations.

Anyway, I think python has a huge community that is not oriented to our needs. We have a big community specialized for our game with a lot of experiences and know-how.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-16-2018 , 11:08   Re: Python scripts
Reply With Quote #10

Very good points joropito.
__________________

Last edited by HamletEagle; 02-16-2018 at 11:08.
HamletEagle 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 11:12.


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